On 07.11.2014 20:50, Smith, Steven - 1004 - MITLL wrote:
Tiago,
Looking into this issue, I see from graph_tool.show_config() that openmp is not enabled on the default Macports install. So now I’m really motivated to reinstall from the latest git with openmp compilation enabled. I’m using your macports instructions <http://graph-tool.skewed.de/download> with the Portfile you provide for the latest git <http://downloads.skewed.de/graph-tool/macosx/graph-tool-devel.Portfile>, along with the Macports guide for modifying Portfiles <https://trac.macports.org/wiki/howto/Upgrade>.
I'm afraid it is not this simple. Clang does not yet have support for openmp (that is why it is not enabled in the Portfile), and GCC does not really work in MacOS (but you can try, and see how far you go).
I’ve run into this error with the latest git build with the Portfile linked above:
cd $(port dir py-graph-tool) sudo cp Portfile Portfile.orig sudo cp ~/Downloads/graph-tool-devel.Portfile.txt Portfile sudo port edit py-graph-tool sudo port -d checksum py-graph-tool sudo port -d install py-graph-tool
:info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-graph-tool/py-graph-tool/work/graph-tool-devel" && ./configure --prefix=/opt/local --prefix=`python2.7-config --prefix` :info:configure Exit code: 127 :error:configure org.macports.configure for port py-graph-tool returned: configure failure: command execution failed
Looking in the directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-graph-tool/py-graph-tool/work/graph-tool-devel, I see that there’s a file ./configure.ac, but no ./configure, so there’s some autoconf glitch.
Would you please advise on building graph-tool with the Portfile graph-tool-devel.Portfile? It ow;d be great to have openmp enabled.
I guess this Portfile is very outdated, I have to update it. In the mean time take at look at the official Portfile: https://trac.macports.org/browser/trunk/dports/python/py-graph-tool/Portfile Just modify it to fetch from git: fetch.type git git.url https://git.skewed.de/count0/graph-tool.git git.branch origin/master Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>