[MacPorts] #34932: py27-igraph cannot find include on Lion

MacPorts noreply at macports.org
Fri Jun 22 04:24:06 PDT 2012


#34932: py27-igraph cannot find include on Lion
------------------------------+---------------------------------------------
 Reporter:  snc@…             |       Owner:  snc@…           
     Type:  defect            |      Status:  new             
 Priority:  Normal            |   Milestone:                  
Component:  ports             |     Version:                  
 Keywords:                    |        Port:  py27-igraph     
------------------------------+---------------------------------------------

Comment(by hakanterelius@…):

 I had the same problem. It seems like the error is in the pkg-config file
 for igraph.

 {{{
 $ pkg-config igraph --cflags
 -I/opt/local/include/igraph/igraph
 }}}
 while the include path is actually
 {{{
 /opt/local/include/igraph
 }}}

 Modifying /opt/local/lib/pkgconfig/igraph.pc to

 {{{
 prefix=/opt/local
 exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
 includedir=/opt/local/include

 Name: libigraph
 Description: A library for creating and manipulating graphs
 Version: 0.6
 URL: http://igraph.sourceforge.net
 Libs: -L${libdir} -ligraph
 Libs.private: -lxml2 -lz -lm
 Cflags: -I${includedir}/igraph
 }}}

 solved the problem for me.

-- 
Ticket URL: <https://trac.macports.org/ticket/34932#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list