R:无法在Ubuntu 14.04上安装'rgdal'软件包

时间:2015-12-23 18:55:40

标签: r ubuntu package rgdal

我安装了R(版本3.1.2),我尝试安装rgdal包。首先,我从here下载了包源(tar.gz)。最后,我安装了sp依赖的rgdal包。然后我运行R并输入install.packages("/home/umberto/Scaricati/rgdal_1.1-3.tar.gz")

似乎无法找到lgdal,下面是我收到的错误:

Installing package into ‘/home/umberto/R/x86_64-pc-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
inferring 'repos = NULL' from 'pkgs'
* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
configure: CC: gcc -std=gnu99
configure: CXX: g++
configure: rgdal: 1.1-3
checking for /usr/bin/svnversion... yes
configure: svn revision: 594
checking for gdal-config... /usr/local/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 1.11.0
checking GDAL version >= 1.6.3... yes
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking gdal.h usability... yes
checking gdal.h presence... yes
checking for gdal.h... yes
checking gdal: linking with --libs only... no
checking gdal: linking with --libs and --dep-libs... no
/usr/bin/ld: cannot find -lgdal
collect2: error: ld returned 1 exit status
/usr/bin/ld: cannot find -lgdal
collect2: error: ld returned 1 exit status
configure: Install failure: compilation and/or linkage problems.
configure: error: GDALAllRegister not found in libgdal.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/home/umberto/R/x86_64-pc-linux-gnu-library/3.1/rgdal’
Warning message:
In install.packages("/home/umberto/Scaricati/rgdal_1.1-3.tar.gz") :
  installation of package ‘/home/umberto/Scaricati/rgdal_1.1-3.tar.gz’ had non-zero exit status

0 个答案:

没有答案