Skip to content

Rgdal on osx 10.8 (homebrew)

3 messages · Roger Bivand, Massimo Di Stefano

#
I suggest posting on R-SIG-Mac for possibly more rapid and accurate 
feedback. The rgdal developers have no access to OSX at all, let alone 
10.8. It appears in addition that your compile train may be running the 
configure tests with clang rather than gcc, and that the GDAL shared 
objects are not being found where gdal-config says they are located. 
Please report back on this thread when you solve the problem.

Roger
On Mon, 26 Nov 2012, rpi wrote:

            

  
    
#
Thanks Roger!


the compiler was the problem :)

using the terminal instead of R.app (GUI)
i was able to install rgdal correctly exptoring CC & CXX  using gcc & g++  
(the default on OSX 10.8.x , Xcode 4.5.x are :  clang & clang++)

so what i had to do :

wget http://cran.cs.wwu.edu/src/contrib/rgdal_0.7-22.tar.gz

export CC=/usr/bin/gcc
export CXX=/usr/bin/g++ 

R CMD INSTALL rgdal_0.7-22.tar.gz

--Massimo.



Il giorno 26/nov/2012, alle ore 02:40, Roger Bivand <Roger.Bivand at nhh.no> ha scritto: