igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] problem installing igraph 0.3.2


From: Dominik Heide
Subject: Re: [igraph] problem installing igraph 0.3.2
Date: Wed, 27 Dec 2006 21:14:58 +0100
User-agent: KMail/1.8.2

On Wednesday 27 December 2006 21:08, Gabor Csardi wrote:
> Hmmm, this works for me for all version i've tried:
> http://sourceforge.net/projects/igraph/
> http://cneurocvs.rmki.kfki.hu/igraph/#downl
> http://cran.r-project.org/src/contrib/Descriptions/igraph.html
>
> Tamas is right, R does not pass '-shared' to g++ when trying to make a
> library, this is strange. There is a thread about the same error here:
> http://tolstoy.newcastle.edu.au/R/help/05/09/11479.html
> Unfortunately it does not lead very far....
> I've tried it with older R versions (2.0.1) and older gcc, g++ versions
> (2.95.4) and it works with these as well.
>
> Dominik, can you tell me something about your system, both the Linux and
> the R parts? Thanks.
>
> You could also try to build other packages which contains C and/or C++
> sources just to see whether the problem is igraph specific. Thanks again.
>
> Gabor
>
> On Wed, Dec 27, 2006 at 04:27:58PM +0100, Tamas Nepusz wrote:
> > Dear Dominik,
> >
> > For me it looks like the last command line (the one which starts with
> > g++) is apparently missing the '-shared' switch. I don't really know
> > the reason since I develop the Python interface of igraph, but until
> > you find a useful solution, you might try to make R leave the files
> > created during compilation intact in a temporary directory and then
> > issue the last command manually after extending it with '-shared'. If
> > everything goes well, it should create a file called igraph.so and
> > you should copy it manually afterwards to the appropriate directory
> > where R is able to find it.
> >
> > I think the version number of R and gcc would also be of great help
> > to us to resolve the issue.

Thank you very much. The '-shared' switch was the problem. I had to set 
SHLIB_CXXFLAGS=-shared in the makeconf-file. Now it works.

Dominik




reply via email to

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