您好我在向RStudio安装任何软件包时遇到问题。当我尝试在Rstudio中安装时,我进入了控制台:
--2016-08-04 17:05:11-- https://cran.rstudio.com/src/contrib/Thermimage_2.2.1.tar.gz
Překládám cran.rstudio.com (cran.rstudio.com)… 54.192.92.115
Navazuje se spojení s cran.rstudio.com (cran.rstudio.com)|54.192.92.115|:443… spojeno.
HTTP požadavek odeslán, program čeká na odpověď… 200 OK
Délka: 678953 (663K) [application/x-gzip]
Ukládám do: „/tmp/RtmpBir6CA/downloaded_packages/Thermimage_2.2.1.tar.gz“
0K .......... .......... .......... .......... .......... 7% 180K 3s
50K .......... .......... .......... .......... .......... 15% 272K 3s
100K .......... .......... .......... .......... .......... 22% 550K 2s
150K .......... .......... .......... .......... .......... 30% 537K 1s
200K .......... .......... .......... .......... .......... 37% 531K 1s
250K .......... .......... .......... .......... .......... 45% 513K 1s
300K .......... .......... .......... .......... .......... 52% 609K 1s
350K .......... .......... .......... .......... .......... 60% 554K 1s
400K .......... .......... .......... .......... .......... 67% 523K 1s
450K .......... .......... .......... .......... .......... 75% 1,93M 0s
500K .......... .......... .......... .......... .......... 82% 682K 0s
550K .......... .......... .......... .......... .......... 90% 2,54M 0s
600K .......... .......... .......... .......... .......... 98% 715K 0s
650K .......... ... 100% 208M=1,3s
2016-08-04 17:05:12 (513 KB/s) – „/tmp/RtmpBir6CA/downloaded_packages/Thermimage_2.2.1.tar.gz“ uloženo [678953/678953]
* installing *source* package ‘tiff’ ...
** package ‘tiff’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c common.c -o common.o
In file included from common.c:1:0:
common.h:5:18: fatal error: tiff.h: Adresář nebo soubor neexistuje
compilation terminated.
/usr/lib/R/etc/Makeconf:134: návod pro cíl „common.o“ selhal
make: *** [common.o] Chyba 1
ERROR: compilation failed for package ‘tiff’
* removing ‘/home/grix/R/x86_64-pc-linux-gnu-library/3.2/tiff’
Warning in install.packages :
installation of package ‘tiff’ had non-zero exit status
ERROR: dependency ‘tiff’ is not available for package ‘Thermimage’
* removing ‘/home/grix/R/x86_64-pc-linux-gnu-library/3.2/Thermimage’
Warning in install.packages :
installation of package ‘Thermimage’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpBir6CA/downloaded_packages’
你有什么建议吗?谢谢。
(我有Rstudio-0.99.903-amd64和Linux Mint 18)
答案 0 :(得分:1)
你找到了解决方案吗?另一种方法是使用devtools包从我的github存储库安装:
devtools::install_github("gtatters/Thermimage", force=T)