Issue 37 in rpostgresql: Compile under OSX Lion

0 views
Skip to first unread message

rpost...@googlecode.com

unread,
Dec 14, 2011, 9:13:19 AM12/14/11
to rpostgr...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 37 by nils.wei...@gmail.com: Compile under OSX Lion
http://code.google.com/p/rpostgresql/issues/detail?id=37

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?


rpost...@googlecode.com

unread,
Dec 14, 2011, 11:06:39 AM12/14/11
to rpostgr...@googlegroups.com
Updates:
Status: Invalid
Labels: -Type-Defect -Priority-Medium Type-Other Priority-Low

Comment #1 on issue 37 by dirk.eddelbuettel: Compile under OSX Lion
http://code.google.com/p/rpostgresql/issues/detail?id=37

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.

rpost...@googlecode.com

unread,
Dec 14, 2011, 11:13:47 AM12/14/11
to rpostgr...@googlegroups.com

Comment #2 on issue 37 by nils.wei...@gmail.com: Compile under OSX Lion
http://code.google.com/p/rpostgresql/issues/detail?id=37

Thanks a bunch! "ln -s gcc gcc-4.2" solved the problem.

Best
Nils

Reply all
Reply to author
Forward
0 new messages