Skip to content
Prev 2970 / 15075 Next

Problems installing rgdal from source

I am going through some similar problems getting rgdal running on macos x:

sudo ./usr/local/bin/R64 CMD INSTALL
--configure-args='--with-proj-include=/usr/local/include
--with-proj-lib=/usr/local/lib' rgdal

...
checking proj_api.h usability... yes
checking proj_api.h presence... yes
checking for proj_api.h... yes
checking for pj_init_plus in -lproj... no
libproj.a and/or proj_api.h not found.
If the PROJ.4 library is installed in a non-standard location,
use --configure-args='--with-proj-include=/opt/local/include
--with-proj-lib=/opt/local/lib' 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 '/usr/local/lib64/R/library/rgdal'
** Restoring previous '/usr/local/lib64/R/library/rgdal'

Response from ls /usr/local/lib/libproj*:

/usr/local/lib/libproj.0.5.0.dylib      /usr/local/lib/libproj.dylib
/usr/local/lib/libproj.0.dylib          /usr/local/lib/libproj.la
/usr/local/lib/libproj.a

***

I did a standard ./configure, make, sudo make install for proj-4.4.9 (after
going through the same fink issue as the previous poster).  Any suggestions?
You'll note the only real difference (I can't imagine why this would matter)
is that I'm running the 64 bit version of R found at
http://r.research.att.com/

--j