igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] OS X (Lion) Compilation Issues


From: Laurence Muller
Subject: Re: [igraph] OS X (Lion) Compilation Issues
Date: Thu, 28 Jul 2011 05:31:28 -0700 (PDT)
User-agent: G2/1.0

Hi Tamas,

thanks! That works for compiling igraph from source.


I have applied the same fix on the macports version (OS X Lion) that
now compiles without any problems. This is what I did:

(1) Attempt to install py27-igraph (or igraph if you don't need python
bindings)
greenline:igraph-0.5.4 lmuller$ sudo port install py27-igraph
--->  Computing dependencies for py27-igraph
--->  Dependencies to be installed: igraph
--->  Building igraph
Error: Target org.macports.build returned: shell command failed (see
log for details)
Error: Failed to install igraph
Log for igraph is at: /opt/local/var/macports/logs/
_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_igraph/
igraph/main.log
Error: The following dependencies were not installed: igraph
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

(2) After the error go to the source directory
greenline:igraph-0.5.4 lmuller$ cd /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_igraph/
igraph/work/igraph-0.5.4

(3) Configure the project using the non-LLVM gcc
greenline:igraph-0.5.4 lmuller$ sudo CC=/usr/bin/gcc-4.2 CXX=/usr/bin/g
++-4.2 ./configure

(4) Go back to your homedir
greenline:igraph-0.5.4 lmuller$ cd ~

(5) Run the install command again
greenline:~ lmuller$ sudo port install py27-igraph
--->  Computing dependencies for py27-igraph
--->  Dependencies to be installed: igraph
--->  Building igraph
--->  Staging igraph into destroot
Warning: violation by /usr
Warning: igraph violates the layout of the ports-filesystems!
Warning: Please fix or indicate this misbehavior (if it is intended),
it will be an error in future releases!
--->  Installing igraph @0.5.4_0
--->  Activating igraph @0.5.4_0
--->  Cleaning igraph
--->  Fetching archive for py27-igraph
--->  Fetching py27-igraph
--->  Verifying checksum(s) for py27-igraph
--->  Extracting py27-igraph
--->  Applying patches to py27-igraph
--->  Configuring py27-igraph
--->  Building py27-igraph
--->  Staging py27-igraph into destroot
--->  Installing py27-igraph @0.5.4_0
--->  Activating py27-igraph @0.5.4_0
--->  Cleaning py27-igraph

(6) Test igraph in python
greenline:~ lmuller$ python
Python 2.7.2 (default, Jul 28 2011, 03:26:08)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import igraph.test
>>> igraph.test.test()
testAdjacency (igraph.test.basic.BasicTests) ... ok
testEdgeAdjacency (igraph.test.basic.BasicTests) ... ok
..
testAdvancedGradientPalette (igraph.test.colortests.ColorTests) ... ok
testGradientPalette (igraph.test.colortests.ColorTests) ... ok

----------------------------------------------------------------------
Ran 137 tests in 0.593s

OK

(7) Done!


On Jul 28, 1:58 pm, Tamas Nepusz <address@hidden> wrote:
> Oh yeah, I forgot that this is a C++ file, so you should probably use
> CC=/usr/bin/gcc-4.2 CXX=/usr/bin/g++-4.2 ./configure && make && make install
>
> --
> T.
>
> On 07/28/2011 01:54 PM, Laurence Muller wrote:
>
>
>
>
>
>
>
>
>
> > Hi Tamas,
>
> > I've tried your suggestion, but it seems it is failing as well when
> > using the non-LLVM compiler:
> >http://www.multigesture.net/files/igraph-error.txt
>
> > On Jul 28, 12:59 pm, Tamas Nepusz <address@hidden> wrote:
> >> Hi Laurence,
>
> >> If you want to follow the path of least effort, just compile igraph with 
> >> the
> >> non-LLVM gcc that should still be supported in OS X Lion. On my Mac (after
> >> having upgraded to Lion), I have it in /usr/bin/gcc-4.2 (while /usr/bin/gcc
> >> symlinks to /usr/bin/llvm-gcc-4.2). So, try this in igraph's source folder:
>
> >> CC=/usr/bin/gcc-4.2 ./configure && make && make install
>
> >> Best,
> >> --
> >> T.
>
> >> On 07/28/2011 12:50 PM, Laurence Muller wrote:
>
> >>> Hi Tamas,
>
> >>> I'm using Mac OS X Lion as well and stumbled upon the same problem.
> >>> Since the macports version fails to compile (same problems as Thomas
> >>> listed), what do you recommend? Should I try to patch 0.5.4 manually
> >>> or try to compile 0.6 myself?
>
> >>> Best,
> >>> - Laurence
>
> >>> On 25 jul, 20:11, Tamás Nepusz <address@hidden> wrote:
> >>>> Hi Thomas,
>
> >>>> Just realized that this is already fixed; see the following commit:
>
> >>>>http://bazaar.launchpad.net/~igraph/igraph/0.6-main/revision/2387
>
> >>>> --
> >>>> Tamas
>
> >>>> On 24 Jul 2011, at 21:15, Thomas Gorochowski wrote:
>
> >>>>> Hi there,
>
> >>>>> I am attempting to compile igraph 0.5.4 onOSX10.7 (Lion) with the 
> >>>>> following error being reported:
>
> >>>>> DensityGrid.cpp:76: internal compiler error: Segmentation fault: 11
> >>>>> Please submit a full bug report,
> >>>>> with preprocessed source if appropriate.
> >>>>> See <URL:http://developer.apple.com/bugreporter> for instructions.
> >>>>> make[3]: *** [libigraph_la-DensityGrid.lo] Error 1
> >>>>> make[2]: *** [all] Error 2
> >>>>> make[1]: *** [all-recursive] Error 1
> >>>>> make: *** [all] Error 2
> >>>>> Eve:igraph-0.5.4 Tom$ gcc
> >>>>> i686-apple-darwin11-llvm-gcc-4.2: no input files
>
> >>>>> I am using the standard configure, make, make install process. It seems 
> >>>>> Apple have updated their compilers to LLVM 
> >>>>> (i686-apple-darwin11-llvm-gcc-4.2) which might be part of the problem. 
> >>>>> As they it seems they will be depreciating support for gcc it might be 
> >>>>> good to ensure igraph builds under this compiler.
>
> >>>>> Many thanks,
>
> >>>>> Tom.
>
> >>>>> --
> >>>>> Thomas E. Gorochowski
> >>>>> University of Bristol, Centre for Complexity Sciences (BCCS)
> >>>>>http://www.chofski.co.uk, address@hidden
>
> >>>>> _______________________________________________
> >>>>> igraph-help mailing list
> >>>>> address@hidden
> >>>>>https://lists.nongnu.org/mailman/listinfo/igraph-help
>
> >>>> _______________________________________________
> >>>> igraph-help mailing list
> >>>> address@hidden://lists.nongnu.org/mailman/listinfo/igraph-help
>
> >>> _______________________________________________
> >>> igraph-help mailing list
> >>> address@hidden
> >>>https://lists.nongnu.org/mailman/listinfo/igraph-help
>
> >> _______________________________________________
> >> igraph-help mailing list
> >> address@hidden://lists.nongnu.org/mailman/listinfo/igraph-help
>
> > _______________________________________________
> > igraph-help mailing list
> > address@hidden
> >https://lists.nongnu.org/mailman/listinfo/igraph-help
>
> _______________________________________________
> igraph-help mailing list
> address@hidden://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

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