Skip to content

Installation of RPostgreSQL fails : no acceptable C compiler found in $PATH

3 messages · christiaan pauw, Brian Ripley, Kasper Daniel Hansen

14 days later
#
On Wed, 10 Mar 2010, Christiaan Pauw wrote:

            
It is not R which is asking but RPostgreSQL, so you should take 
this up with the package maintainer (but see the posting guide).
(RPostgreSQL does not pick up the compiler from the R, as required in 
'Writing R Extensions'.)

But first, was R compiled with gcc-4.0?  R 2.9.2 is not current, and 
if you update your OS (10.5.8 is the latest), Xcode and R you may find 
this works.  (I do have

tystie% which gcc
/usr/bin/gcc

under an up-to-date 2.5.8 system, and R 2.10.1 was compiled with 
gcc-4.2 according to

tystie% R CMD config CC
gcc-4.2 -arch i386 -std=gnu99
.)

The normal way to tell a configure script the version of the compiler 
is to set the environment variable CC.

  
    
#
On Wed, Mar 24, 2010 at 5:56 AM, Prof Brian Ripley
<ripley at stats.ox.ac.uk> wrote:
Most likely you will need to upgrade your Xcode.  Do you have gcc-4.2
which is the default on newer systems?  Older versions of Xcode had
gcc 3.something as well as 4.0, whereas newer versions have gcc 4.0 as
well as gcc 4.2.

If I was better at remembering the Apple build numbers for the
compiler, I could tell you for sure.

Kasper