尝试安装R软件包ggforce
遇到以下错误,因为安装依赖项polyclip导致我进入config.log。但是,config.log在〜/,/ tmp或/ var / log下找不到我通过[]检查了此内容
find . | grep config[.]log
已尝试
install.packages("ggforce",keep_outputs = TRUE)
,未提供任何其他信息;
install.packages("ggforce",keep_outputs = TRUE,verbose = TRUE)
“配置:错误:在`/tmp/RtmpAkq4Vm/R.INSTALL6c31457f19ba/polyclip中”“
但是安装后不存在/tmp/RtmpAkq4Vm
。
有人可以告诉我它在哪里吗?
错误详细信息:
install.packages("ggforce") Installing package into ‘/home/dutky/R/x86_64-pc-linux-gnu-library/3.6’ (as ‘lib’ is unspecified) also installing the dependency ‘polyclip’ trying URL 'https://cloud.r-project.org/src/contrib/polyclip_1.10-0.tar.gz' Content type 'application/x-gzip' length 79619 bytes (77 KB) ================================================== downloaded 77 KB trying URL 'https://cloud.r-project.org/src/contrib/ggforce_0.3.1.tar.gz' Content type 'application/x-gzip' length 857814 bytes (837 KB) ================================================== downloaded 837 KB [1] "sourcing Rprofile.site" * installing *source* package ‘polyclip’ ... ** package ‘polyclip’ successfully unpacked and MD5 sums checked ** using staged installation compiling under C++11 checking whether the C++ compiler works... no configure: error: in `/tmp/RtmpCWyOfl/R.INSTALL3a4b31b841d7/polyclip': configure: error: C++ compiler cannot create executables See `config.log' for more details ERROR: configuration failed for package ‘polyclip’ * removing ‘/home/dutky/R/x86_64-pc-linux-gnu-library/3.6/polyclip’ Warning in install.packages : installation of package ‘polyclip’ had non-zero exit status [1] "sourcing Rprofile.site" ERROR: dependency ‘polyclip’ is not available for package ‘ggforce’ * removing ‘/home/dutky/R/x86_64-pc-linux-gnu-library/3.6/ggforce’ Warning in install.packages : installation of package ‘ggforce’ had non-zero exit status The downloaded source packages are in ‘/tmp/RtmpTKDy0n/downloaded_packages’
正在运行ubuntu 16.04.12,64位,gcc / g ++:
dutky@stillbill:/var/log$ g++ --version
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
dutky@stillbill:/var/log$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
尝试安装R软件包ggforce遇到以下错误,因为安装依赖项polyclip导致我进入config.log。但是,在〜/,/ tmp或/ var / log I下找不到config.log ...
在我的.Rprofile中安装软件包polyclip时遇到了麻烦。我将其移开,ggforce安装成功完成。