![](/img/trans.png)
[英]Error of Install R in linux/Red hat(error while loading shared libraries: libRblas.so)
[英]Unable to install rgdal and rgeos R libraries on Red hat linux
我在redhat linux機器上編譯rgdal adn rgoes
包時rgdal adn rgoes
錯誤。 我試圖做一些研究,但找不到可能的解決方案。 能不能幫我解決這個問題,因為這對我來說非常重要。
**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â
在fedora 20上,你需要安裝geos
和geos-devel
!
sudo yum install geos geos-devel
之后,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’
我不是在使用redhat(我在Ubuntu上),所以有人可以提供更好的軟件包名稱。 但是,從源代碼安裝軟件包時,需要dev
所需的庫。 在這種情況下,您可能需要安裝:
libgdal1-dev
libgeos-dev
所以:
yum install libgdal1 libgdal1-dev libgeos libgeos-dev
然后在R:
install.packages('gdal')
這是未經測試的,因為我不希望所有額外的包與這兩個相關聯!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.