Hi guys,
First time posting to the list. I’m looking a bit of guidance trying to install rgdal, a package that implements gdal in R. I’ve followed previous postings closely, but I’ve been tripped up.
I was able to successfully download the gdal binaries and compile it to my home directory ( I do not have root access).
I successfully showed the rgdal package where my gdal configure file was, and got over that hurtle. However now I’m still getting:
checking gdal: linking with --libs only... no
checking gdal: linking with --libs and --dep-libs... no
/nfs/user08/bw4sz/Gdal/gdal-1.9.0/libgdal.la: file not recognized: File format not recognized
collect2: ld returned 1 exit status
/nfs/user08/bw4sz/Gdal/gdal-1.9.0/libgdal.la: file not recognized: File format not recognized
collect2: ld returned 1 exit status
configure: Install failure: compilation and/or linkage problems.
configure: error: GDALAllRegister not found in libgdal.
Did I download the wrong source? The file libgdal.la is there, just where it it supposed to be.
Any input is greatly appreciated.
Best,
Ben Weinstein
Full readout below.
install.packages("rgdal",configure.args=c("--with-gdal-config=/nfs/user08/bw4sz/Gdal/gdal-1.9.0/apps/gdal-config"),.libPaths()[1])
trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rgdal_0.7-18.tar.gz'
Content type 'application/x-gzip' length 1433864 bytes (1.4 Mb)
opened URL
==================================================
downloaded 1.4 Mb
* installing *source* package ârgdalâ ...
** package ârgdalâ successfully unpacked and MD5 sums checked
configure: gdal-config: /nfs/user08/bw4sz/Gdal/gdal-1.9.0/apps/gdal-config
checking gdal-config usability... yes
configure: GDAL: 1.9.0
checking GDAL version > 1.5.4... 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
/nfs/user08/bw4sz/Gdal/gdal-1.9.0/libgdal.la: file not recognized: File format not recognized
collect2: ld returned 1 exit status
/nfs/user08/bw4sz/Gdal/gdal-1.9.0/libgdal.la: file not recognized: File format not recognized
collect2: 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 â/nfs/user08/bw4sz/library/rgdalâ
The downloaded packages are in
â/tmp/RtmpOE6lPB/downloaded_packagesâ
Updating HTML index of packages in '.Library'
Making packages.html ... done
Warning message:
In install.packages("rgdal", configure.args = c("--with-gdal-config=/nfs/user08/bw4sz/Gdal/gdal-1.9.0/apps/gdal-config"), :
installation of package ârgdalâ had non-zero exit status