【发布时间】:2016-12-19 20:52:00
【问题描述】:
我试图在 R 3.3 上安装一个名为“rgeos”的包,但是当我输入时
install.packages("rgeos")
但它返回了以下错误(其他包也会发生同样的情况,但不是所有包):
> * installing *source* package ‘rgeos’ ...
** package ‘rgeos’ successfully unpacked and MD5 sums checked
configure: CC: gcc
configure: CXX: g++
configure: rgeos: 0.3-19
checking for /usr/bin/svnversion... no
configure: svn revision: 524
checking for geos-config... no
no
configure: error: geos-config not found or not executable.
ERROR: configuration failed for package ‘rgeos’
* removing ‘/home/kdg/R/x86_64-pc-linux-gnu-library/3.3/rgeos’
>
> The downloaded source packages are in
> ‘/tmp/Rtmpsa5pDo/downloaded_packages’ Warning message: In
> install.packages("rgeos") : installation of package ‘rgeos’ had
> non-zero exit status
任何线索如何安装这个包?
【问题讨论】:
-
您是否安装了任何地理库?在我的系统上,我有 geos 和 geos-devel
-
谢谢@user20650 成功了!!