rcconsult / rpostgresql

Automatically exported from code.google.com/p/rpostgresql
0 stars 0 forks source link

Compile under OSX Lion #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Install from source fails under OS X Lion (Xcode 4.2). Used to work perfectly 
under Snow Leopard and Xcode 3.2. The error message is 

> make: gcc-4.2: No such file or directory

I guess this has to do with Apple's switch to a new compiler,  llvm-gcc-4.2. 
gcc-4.2 does not seem to exist anymore. Would it be possible to set the 
compiler path manually?

Original issue reported on code.google.com by nils.wei...@gmail.com on 14 Dec 2011 at 2:12

GoogleCodeExporter commented 9 years ago
That is a bad interaction between OS X and R, nothing more.  

When R is built, it encodes the values of a (large) number of Make variables. 
CC is among them.  For the R binary you have, this is gcc-4.2. 

Now, your system no longer has /usr/bin/gcc-4.2, but just /usr/bin/gcc.  The 
answer hence is to create the link manually --- and it is _not something we can 
do_ as part of the build process.  The package is built from within R, and 
these values are given.

Original comment by dirk.eddelbuettel on 14 Dec 2011 at 4:05

GoogleCodeExporter commented 9 years ago
Thanks a bunch! "ln -s gcc gcc-4.2" solved the problem.

Best
Nils

Original comment by nils.wei...@gmail.com on 14 Dec 2011 at 4:13