Hi Tiago, On 31 Ιαν 2008, at 12:01 ΠΜ, Tiago de Paula Peixoto wrote:
> It looks like there's something > wrong with your python installation. You are right, of course. Python on Mac OS X is supposed to be installed as a 'framework'. I'll pretend to understand what this means by saying it's some kind of special library. So, I did the framework installation of Python. Now it looks like that you can no longer link to Python with '-lpython2.5' but you need to use '- framework Python' instead. Here's what the 'ld' man says: " -framework name[,suffix] Specifies a framework to link against. Frameworks are dynamic shared libraries, but they are stored in different locations, and therefore must be searched for differently. When this option is specified, ld searches for framework `name.framework/name' first in any directories specified with the -F option, then in the standard framework directories /Library/ Frameworks, /Net- work/Library/Frameworks, and /System/Library/ Frameworks. The placement of the -framework option is significant, as it deter- mines when and how the framework is searched. If the optional suffix is specified the framework is first searched for the name with the suffix and then without. " As you can understand, ./configure fails now with: checking for Python library path... -L/Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5 -lpython2.5 checking for Python site-packages path... /Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5/site-packages checking python extra libraries... -ldl checking python extra linking flags... -u _PyMac_Error Python.framework/Versions/2.5/Python checking consistency of all components of python development environment... no configure: error: Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable. Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" ======================================================================== ==== ERROR! You probably have to install the development version of the Python package for your distribution. The exact name of this package varies among them. ======================================================================== ==== Could you please tell me how/where to make the change so that it uses -framework instead of -l? Cheers, Spiros _______________________________________________ graph-tool mailing list graph-tool@forked.de http://lists.forked.de/mailman/listinfo/graph-tool