use*_*881 11 redhat r geos rgdal
我rgdal adn rgoes在redhat linux机器上编译包时遇到错误.我试图做一些研究,但找不到可能的解决方案.能不能帮我解决这个问题,因为这对我来说非常重要.
**ERROR WHILE COMPILING RGDAL in R 3.0**
**strong text**
* installing *source* package ârgdalâ ...
** package ârgdalâ successfully unpacked and MD5 sums checked
configure: CC: gcc -std=gnu99
configure: CXX: g++
configure: rgdal: 0.8-10
checking for /usr/bin/svnversion... yes
configure: svn revision: 496
configure: gdal-config: gdal-config
checking gdal-config usability... ./configure: line 1397: gdal-config: command not found
no
Error: gdal-config not found
The gdal-config script distributed with GDAL could not be found.
If you have not installed the GDAL libraries, you can
download the source from http://www.gdal.org/
If you have installed the GDAL libraries, then make sure that
gdal-config is in your path. Try typing gdal-config at a
shell prompt and see if it runs. If not, use:
--configure-args='--with-gdal-config=/usr/local/bin/gdal-config'
with appropriate values for your installation.
ERROR: configuration failed for package ârgdalâ
*****ERROR WHILE COMPILING RGEOS:*****
**strong text**
* installing *source* package ârgeosâ ...
** package ârgeosâ successfully unpacked and MD5 sums checked
configure: CC: gcc -std=gnu99
configure: CXX: g++
configure: rgeos: 0.2-17
checking for /usr/bin/svnversion... yes
configure: svn revision: 413M
checking geos-config usability... ./configure: line 1385: geos-config: command not found
no
configure: error: geos-config not usable
ERROR: configuration failed for package ârgeosâ
Run Code Online (Sandbox Code Playgroud)
del*_*aye 13
在Fedora 20上你需要安装geos和geos-devel!
sudo yum install geos geos-devel
Run Code Online (Sandbox Code Playgroud)
之后,R中的编译工作得很好!
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (gstat)
The downloaded source packages are in
‘/tmp/Rtmp9ciIzG/downloaded_packages’
Run Code Online (Sandbox Code Playgroud)
Jus*_*tin -2
我不在 redhat 上(我在 Ubuntu 上),所以有人可能能够提供更好的包名称...... 但是,从源代码安装软件包时,您需要dev所需的库。在这种情况下,您可能需要安装:
libgdal1-dev
libgeos-dev
Run Code Online (Sandbox Code Playgroud)
所以:
yum install libgdal1 libgdal1-dev libgeos libgeos-dev
Run Code Online (Sandbox Code Playgroud)
然后在R中:
install.packages('gdal')
Run Code Online (Sandbox Code Playgroud)
这是未经测试的,因为我不想要与这两个相关的所有额外包!
| 归档时间: |
|
| 查看次数: |
7704 次 |
| 最近记录: |