Hi Tiago, On 29 Ιαν 2008, at 7:48 ΜΜ, Tiago de Paula Peixoto wrote:
On 01/29/2008 02:02 PM, Spiros Spirou wrote:
Hi Tiago, On 28 Ιαν 2008, at 9:11 ΜΜ, Tiago de Paula Peixoto wrote:
Try the link with -lbz2 and -lz. You can set LDFLAGS to "-lbz2 -lz" when issuing configure. I don't know why it is trying to link to those libraries directly, since graph_tool uses them only through boost_iostreams, and we're making a dynamic library. I suspect this must be related either to the way things are linked in MacOS X, or maybe how things are installed on your system, I'm not sure. If this works, I'll add "-lbz2 -lz" to graph_tool build by default, since it doesn't really hurt. This looked better: (cd .libs && rm -f libgraph_tool.la && ln -s ../libgraph_tool.la libgraph_tool.la) Making all in graph_tool make[3]: Nothing to be done for `all'. Making all in . make[3]: Nothing to be done for `all-am'. make[2]: Nothing to be done for `all-am'. But, when I did 'graph-tool --help', here's what I got: File "/opt/local/bin/graph-tool", line 128 return "|".join(metavars) if len(metavars) > 0 else None ^ SyntaxError: invalid syntax
Are you sure you are using python 2.5? What is the result of 'python --version'?
'python -V' gives 'Python 2.3.5'. 'which python' gives '/usr/bin/ python', which is a symbolic link to '/usr/bin/python2.3'. The version I'd like to use is '/opt/local/bin/python2.5'. That's why in configure options I set 'PYTHON_VERSION=2.5'. According to 'configure --help', "This string will be appended to the Python interpreter canonical name.". If it did that and called 'python2.5' it would execute the desired version, because 'opt/local/bin/' in in PATH earlier than '/usr/bin/'. Anyhow, I changed the '/usr/bin/python' symbolic link to point to '/ opt/local/bin/python2.5' and here's what I got: /opt/local/lib/python2.5/site-packages/graph_tool/__init__.py:40: RuntimeWarning: Python C API version mismatch for module libgraph_tool: This Python has API version 1013, module libgraph_tool has version 1012. import libgraph_tool Traceback (most recent call last): File "/opt/local/bin/graph-tool", line 19, in <module> from graph_tool import * File "/opt/local/lib/python2.5/site-packages/graph_tool/ __init__.py", line 45, in <module> import os, os.path, re, struct, fcntl, termios, gzip, bz2, string,\ File "/opt/local/lib/python2.5/gzip.py", line 9, in <module> import zlib ImportError: No module named zlib I'm attaching config.log, which in my inexperienced eyes looks to be using python2.5 in /opt/local. Cheers, Spiros