igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Trouble installing R igraph 0.6 on Mac OS X Lion


From: Tamás Nepusz
Subject: Re: [igraph] Trouble installing R igraph 0.6 on Mac OS X Lion
Date: Tue, 17 Jan 2012 22:59:24 +0100

Hi Marcel,

I'm not sure whether this is the cause of your problem, but I'm using Mac OS X 
Lion and I have a perfectly functioning gcc in /usr/bin/gcc -- which is a 
symlink to /usr/bin/llvm-gcc-4.2, which is a symlink to 
/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2.

My experience is that whenever a configure script says that "C compiler cannot 
create executables", this is almost always caused by either 1) a wrong gcc 
executable or 2) some compiler option that is always passed on to gcc but that 
gcc cannot interpret.

-- 
T.

On 17 Jan 2012, at 22:54, Marcel Salathé wrote:

> Hi all
> 
> I have some igraph R code that used to work one year ago. Since then I've 
> upgraded to Lion, uninstalled igraph 0.6, and now I'm trying to reinstall it.
> 
> I run 
> R CMD INSTALL /Users/marcel/Desktop/igraph_nightly_0.6-1825-20100330.tar.gz 
> 
> (because that was my last version of 0.6 that I used)
> 
> At first, I get the complaint that no C compiler can be found. This is 
> apparently quite common since the compilers got moved around during the Lion 
> upgrade process. A workaround is to put 
> 
> export PATH=${PATH}:/Developer/usr/bin
> 
> in the ~./bash_profile file.
> 
> Now it DOES find the compiler but gives me the following error message:
> 
> * installing to library 
> ‘/Library/Frameworks/R.framework/Versions/2.13/Resources/library’
> * installing *source* package ‘igraph’ ...
> checking for gcc... gcc
> checking for C compiler default output file name... 
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
> ERROR: configuration failed for package ‘igraph’
> * removing 
> ‘/Library/Frameworks/R.framework/Versions/2.13/Resources/library/igraph’
> * restoring previous 
> ‘/Library/Frameworks/R.framework/Versions/2.13/Resources/library/igraph’
> 
> I don't understand why it can't create executables. There is also no 
> config.log file that I could consult for more details. 
> 
> Anyone any idea of what's going on?
> 
> Thanks!
> Marcel
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]