R包rgdal / rgeos“不可用(R版本3.1.1)”[复制]

时间:2022-01-07 13:28:12

This question already has an answer here:

这个问题已经有了答案:

Having difficulty installing some packages in a new R build on OSX Mavericks. Both rgeos and rgdal return e.g.:

在OSX Mavericks的新版本中安装一些软件包有困难。rgeos和rgdal返回例:

package 'rgeos' is available as a source package but not as a binary

Warning in install.packages :
  package 'rgeos' is not available (for R version 3.1.1)

On my windows system both packages have installed fine for R 3.1.1, so is this a Mavericks/OSX version issue or do I have an issue with my build? Changing the library repository makes no difference. I've looked at building from binaries, but e.g. on the rgeos homepage it states "OS X Mavericks binaries: r-release: not available" so I'm snookered.

在我的windows系统上,两个包都安装了r3.1.1,所以这是一个Mavericks/OSX版本的问题,还是我的构建有问题?更改库存储库没有什么区别。我从二进制文件中看到了构建,但是,在rgeos的主页上,它声明了“OS X Mavericks二进制文件:r-release:不可用”,所以我被人打了。

Grateful for advice.

感激的建议。


Edit:

编辑:

Trying the suggestion by @Andrie:

@Andrie的建议:

> install.packages('rgeos', type='source')
Installing package into ‘/Users/robinedwards/Library/R/3.1/library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.ma.imperial.ac.uk/src/contrib/rgeos_0.3-6.tar.gz'
Content type 'application/x-gzip' length 240510 bytes (234 Kb)
opened URL
==================================================
downloaded 234 Kb

* installing *source* package ‘rgeos’ ...
** package ‘rgeos’ successfully unpacked and MD5 sums checked
configure: CC: clang
configure: CXX: clang++
configure: rgeos: 0.3-4
checking for /usr/bin/svnversion... yes
configure: svn revision: 450
checking geos-config usability... 
./configure: line 2056: geos-config: command not found
no
configure: error: geos-config not usable
ERROR: configuration failed for package ‘rgeos’
* removing ‘/Users/robinedwards/Library/R/3.1/library/rgeos’
Warning in install.packages :
  installation of package ‘rgeos’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/_s/ppznw4sx7p51kwv__hj3d8540000gn/T/RtmpK40xj7/downloaded_packages’

And a screenshot of the build page:

以及构建页面的屏幕截图:

R包rgdal / rgeos“不可用(R版本3.1.1)”[复制]

1 个解决方案

#1


6  

You need to install rgdal and rgeos from source.

您需要从源代码中安装rgdal和rgeos。

  1. First install the package rgeos
  2. 首先安装包rgeos。
  3. Then install rgdal from source.
  4. 然后从源代码安装rgdal。

Try this:

试试这个:

install.packages('rgeos', type="source")
install.packages('rgdal', type="source")

#1


6  

You need to install rgdal and rgeos from source.

您需要从源代码中安装rgdal和rgeos。

  1. First install the package rgeos
  2. 首先安装包rgeos。
  3. Then install rgdal from source.
  4. 然后从源代码安装rgdal。

Try this:

试试这个:

install.packages('rgeos', type="source")
install.packages('rgdal', type="source")