为Linux安装R软件包时出错

切线3:

我试图在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

有什么线索如何con安装此软件包?

切线3:

似乎在Linux上运行R时,必须安装一些构建工具。在这种情况下,在终端中:

sudo apt-get install libgeos-dev

然后再次尝试安装软件包。

来自这里的提示

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章