尝试安装 R 包ggforce
时遇到了安装依赖项 polyclip 的错误,该错误将我引至 config.log。但是,在 ~/、/tmp 或 /var/log 下找不到 config.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.