[問題] Ubuntu 安裝R package {biOps}

看板Linux作者 (ljta)時間11年前 (2013/05/17 20:45), 編輯推噓0(004)
留言4則, 3人參與, 最新討論串1/1
作業系統 Ubuntu 12.10 使用統計軟體 R 3.0,因為需要用影像分析, 安裝 package {biOps} 時出現以下列訊息: > install.packages("biOps") Installing package into ‘/home/ljta/R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) 嘗試 URL 'http://cran.rstudio.com/src/contrib/biOps_0.2.2.tar.gz' Content type 'application/x-gzip' length 1162278 bytes (1.1 Mb) 開啟了 URL ================================================== downloaded 1.1 Mb * installing *source* package ‘biOps’ ... ** package ‘biOps’ successfully unpacked and MD5 sums checked checking for gcc... gcc -std=gnu99 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc -std=gnu99 accepts -g... yes checking for gcc -std=gnu99 option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -std=gnu99 -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fftw3.h usability... no checking fftw3.h presence... no checking for fftw3.h... no configure: WARNING: Can't find fftw3 header checking jpeglib.h usability... yes checking jpeglib.h presence... yes checking for jpeglib.h... yes checking tiff.h usability... no checking tiff.h presence... no checking for tiff.h... no configure: WARNING: Can't find libtiff header checking for jpeg_destroy_compress in -ljpeg... yes checking for TIFFOpen in -ltiff... no Try static libs needed on OS X checking for TIFFOpen in -ltiff... no Error: Could not find libtiff. ERROR: configuration failed for package ‘biOps’ * removing ‘/home/ljta/R/x86_64-pc-linux-gnu-library/3.0/biOps’ Warning in install.packages : installation of package ‘biOps’ had non-zero exit status The downloaded source packages are in ‘/tmp/RtmpUwoWIh/downloaded_packages’ 我稍微 google 了一下,感覺並不是 R 的問題,而是ubuntu 少了些什麼東西。 但本身對 Linux 是初學者,看不懂相關的文章。還請了解的人幫忙解決。謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.114.34.156

05/17 20:52, , 1F
看起來是找不到 tiff,搜套件庫把有 dev 結尾的 tiff 裝上
05/17 20:52, 1F

05/17 21:06, , 2F
sudo aptitude update && sudo aptitude search tiff
05/17 21:06, 2F

05/17 21:06, , 3F
sudo aptitude install libtiff-dev
05/17 21:06, 3F

05/17 21:13, , 4F
謝謝!已解決 (sudo apt-get install libtiff-dev)
05/17 21:13, 4F
文章代碼(AID): #1HbYPMas (Linux)