[R] Problem installing rgdal from source -- Makevars issue

From: Thomas Adams <Thomas.Adams_at_noaa.gov>
Date: Tue 23 May 2006 - 04:27:36 EST


I have installed R, contributed packages, and supporting libraries in a non-standard location (but under the same sub-directory tree). This was necessary for systems reasons beyond my control. When I attempt to use Makevars (as shown below) to install rgdal from source, I get the following error:

R CMD INSTALL rgdal_0.4-3.tar.gz


checking proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
libproj.a and proj_api.h not found in standard search locations, edit src/Makevars manually, adding -I<directory with proj_api.h> to PKG_CPPFLAGS = , and -L<directory with libproj.a> to PKG_LIBS = ERROR: configuration failed for package 'rgdal' ** Removing '/awips/rep/lx/local_apps/R/lib/R/library/rgdal' ** Restoring previous '/awips/rep/lx/local_apps/R/lib/R/library/rgdal'

I get this error regardless of where I put the Makevars file: $HOME/.R/Makevars, in the local build directory, or in the rgdal source directory src/Makevars runing ./configure

My Makevars contains this:

PKG_CPPFLAGS = -I/awips/rep/lx/local_apps/proj4/include PKG_LIBS = -L/awips/rep/lx/local_apps/proj4/lib

I have also tried using the file name: Makevars and Makevars-i686-pc-linux-gnu

I'm sure I am doing *something* wrong; any suggestions?


Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:	thomas.adams@noaa.gov

VOICE:	937-383-0528
FAX:	937-383-0033

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue May 23 05:45:44 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 23 May 2006 - 10:10:17 EST.

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