gpt4 book ai didi

R:如何在 Mac OS X Mavericks 上安装包 tiff?

转载 作者:行者123 更新时间:2023-12-04 22:30:31 27 4
gpt4 key购买 nike

我想在 Mac OS X Mavericks 上从 rforge ( http://www.rforge.net/tiff/index.html ) 安装包 tiff。

R-版本是

    > version
_
platform x86_64-apple-darwin13.1.0
arch x86_64
os darwin13.1.0
system x86_64, darwin13.1.0
status
major 3
minor 1.0
year 2014
month 04
day 10
svn rev 65387
language R
version.string R version 3.1.0 (2014-04-10)
nickname Spring Dance

尝试安装它时出现以下错误:
    > install.packages("tiff","http://rforge.net/",type="source")
Warning in install.packages :
'lib = "http://rforge.net/"' is not writable
Would you like to use a personal library instead? (y/n) y
versuche URL 'http://cran.rstudio.com/src/contrib/tiff_0.1-5.tar.gz'
Content type 'application/x-gzip' length 28925 bytes (28 Kb)
URL geöffnet
==================================================
downloaded 28 Kb

* installing *source* package ‘tiff’ ...
** Paket ‘tiff’ erfolgreich entpackt und MD5 Summen überprüft
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c common.c -o common.o
In file included from common.c:1:
./common.h:5:10: fatal error: 'tiff.h' file not found
#include <tiff.h>
^
1 error generated.
make: *** [common.o] Error 1
ERROR: compilation failed for package ‘tiff’
* removing ‘/Users/stingl/Library/R/3.1/library/tiff’
Warning in install.packages :
installation of package ‘tiff’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/8_/1kgvxblj3ss4pzmsgx3pkysc0000gn/T/RtmpYmsCmF/downloaded_packages’

有任何想法吗?

最佳答案

如果您有 macportshomebrew安装后,您应该使用它们来安装 libtiff。

以下是使用自制软件安装 libtiff 所需的运行:

brew install libtiff

完成后,您可以在 R 中安装 tiff 包:
install.packages("tiff", type="source") 

干杯,

乔治

关于R:如何在 Mac OS X Mavericks 上安装包 tiff?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24775252/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com