Skip to content

Source package compile under OS X Lion

3 messages · Nils B. Weidmann, Berend Hasselman, Adam Strzelecki

#
I've been trying to compile the RPostgreSQL package under Lion. 
Compilation fails using the most recent 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.

Any suggestions? Would it be possible to set the compiler path manually?

Thanks a lot!
Nils
#
On 14-12-2011, at 17:00, Nils B. Weidmann wrote:

            
See this from this morning

http://thread.gmane.org/gmane.comp.lang.r.mac/6716/focus=6717

Berend
#
I've made myself a workaround:
sudo ln -s /usr/bin/gcc /usr/local/bin/gcc-4.2

I know it is ugly hack, but it does work.