Hi guys,


I had looked for help on the debian gis list, but given this thread and
others (https://stat.ethz.ch/pipermail/r-sig-debian/2011-April/001590.html ),
maybe someone here could assist. I’m looking a bit of guidance trying to
install rgdal  on a beowulf cluster where i don't have root access.



I was able to successfully download the gdal binaries and compile it to my
home directory.I successfully showed the rgdal package where my gdal
configure file was, and got over that hurtle. However now I’m still getting
an error searching for the libgdal.la. It reads:



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, as suggested by others? The file libgdal.la is
there, just where it it supposed to be. My best guess is that i have a
non-debian version? Or that i need another flag when i ./ configure. Where
should i specifically go to get the correct libgdal.la?



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<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


-- 
Ben Weinstein
Graduate Student
Ecology and Evolution
Stony Brook University

http://life.bio.sunysb.edu/~bweinste/index.html

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Debian mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Reply via email to