[R] Installing rgdal in R: correct -configure flags for GDAL install on Linux Redhat

From: Katrina Bennett <kebennett_at_alaska.edu>
Date: Thu, 05 May 2011 17:23:56 -0800

Hi, I'm installing rgdal but I keep having failures because I have not been able to find a good source of information for the correct configuration settings when installing GDAL.

My error from the R install.packages("rgdal") is below.

Can someone point me to a good source to tell me how to set after
./configure when installing GDAL?

I'd like to be able to work with raster images, geotiffs, netCDF files, and other raster-based image processing in R.

Right now I'm running ./configure for GDAL as follows:

./configure --prefix=$HOME/local/gdal/gdal-1.8.0 --with

Any insight would be greatly appreciated! Thank you.

Error output from R:
* installing *source* package 'rgdal' ... gdal-config: gdal-config
checking for gcc... gcc -std=gnu99
checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables...
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 ANSI C... none needed checking how to run the C preprocessor... gcc -std=gnu99 -E checking for egrep... 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 proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
Error: proj_api.h not found.
If the PROJ.4 library is installed in a non-standard location, use --configure-args='--with-proj-
for example, replacing /opt/local/* with appropriate values for your installation. If PROJ.4 is not installed, install it. ERROR: configuration failed for package 'rgdal' * removing
Katrina E. Bennett
PhD Student
University of Alaska Fairbanks
International Arctic Research Center
930 Koyukuk Drive, PO Box 757340
Fairbanks, Alaska 99775-7340
907-474-1939 office
907-385-7657 cell

Personal Address:
UAF, PO Box 752525
Fairbanks, Alaska 99775-2525

	[[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 06 May 2011 - 01:44:55 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 06 May 2011 - 02:50:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive