error with manual compilation
Hi, I tried to intall graph-tool on my mac, but failed.... cmd I typied is: ./configure --prefix=/Users/zhangxuejin/anaconda --with-python-module-path=/Users/zhangxuejin/anaconda/lib/python3.6/site-packages I have attached the configure.log and entire output of the ./configure script as configure.out. But I am sure that I have installed boost-python: My packages in environment at /Users/zhangxuejin/anaconda: boost 1.65.1 py36_4 anaconda boost-cpp 1.65.1 1 conda-forge boost-python 1.55.0 0 meznom libboost 1.65.1 hcc95346_4 I also tried install like: ./configure --prefix=/Users/zhangxuejin/anaconda --with-python-module-path=/Users/zhangxuejin/anaconda/lib/python3.6/site-packages --with-boost-python=-mt.a PYTHON=/Users/zhangxuejin/anaconda/bin/python CPPFLAGS=/Users/zhangxuejin/anaconda/include LDFLAGS=/Users/zhangxuejin/anaconda/lib but same error msg appeared... Please help with installation. Thank you very much! -- Best regards, JJ
On 25.02.2018 15:16, JJ Zhang wrote:
I also tried install like: ./configure --prefix=/Users/zhangxuejin/anaconda --with-python-module-path=/Users/zhangxuejin/anaconda/lib/python3.6/site-packages --with-boost-python=-mt.a PYTHON=/Users/zhangxuejin/anaconda/bin/python CPPFLAGS=/Users/zhangxuejin/anaconda/include LDFLAGS=/Users/zhangxuejin/anaconda/lib
The above is wrong for several reasons. First CPPFLAGS and LDFLAGS are invalid. They must be compiler/linker flags, not just directories. This means that they should be CPPFLAGS="-I/Users/zhangxuejin/anaconda/include" and LDFLAGS="-L/Users/zhangxuejin/anaconda/lib". Furthermore, "-with-boost-python=-mt.a" does not make any sense, as this would point to statically shared object. Please take a careful look at the documentation: https://git.skewed.de/count0/graph-tool/wikis/installation-instructions#inst... Compiling graph-tool (or any other C++ library) without understanding how compiling and linking works in general is not advisable. Instead you should use macports or homebrew, if using MacOS. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Hi, I have tried macports or homebrew before, they don’t not work either. I do not like to compile it myself either, but it seems that compiling is the only option. Best, JJ On Tue, Feb 27, 2018 at 9:32 PM, Tiago de Paula Peixoto <tiago@skewed.de> wrote:
On 25.02.2018 15:16, JJ Zhang wrote:
I also tried install like: ./configure --prefix=/Users/zhangxuejin/anaconda --with-python-module-path=/Users/zhangxuejin/anaconda/ lib/python3.6/site-packages --with-boost-python=-mt.a PYTHON=/Users/zhangxuejin/anaconda/bin/python CPPFLAGS=/Users/zhangxuejin/anaconda/include LDFLAGS=/Users/zhangxuejin/anaconda/lib
The above is wrong for several reasons. First CPPFLAGS and LDFLAGS are invalid. They must be compiler/linker flags, not just directories. This means that they should be CPPFLAGS="-I/Users/zhangxuejin/anaconda/include" and LDFLAGS="-L/Users/zhangxuejin/anaconda/lib". Furthermore, "-with-boost-python=-mt.a" does not make any sense, as this would point to statically shared object.
Please take a careful look at the documentation:
https://git.skewed.de/count0/graph-tool/wikis/installation- instructions#installing-in-a-specific-location-eg-in-a-home-directory
Compiling graph-tool (or any other C++ library) without understanding how compiling and linking works in general is not advisable. Instead you should use macports or homebrew, if using MacOS.
Best, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool
-- Best regards, JJ Zhang
On 28.02.2018 09:12, JJ Zhang wrote:
I have tried macports or homebrew before, they don’t not work either. I do not like to compile it myself either, but it seems that compiling is the only option.
If you have problems with macports or homebrew, you should open an issue in their respective websites. Any issue encountered is usually easy to solve, and the developers tend to be helpful. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Sure, I will try it. Thanks :) On Wed, Feb 28, 2018 at 2:58 PM, Tiago de Paula Peixoto <tiago@skewed.de> wrote:
On 28.02.2018 09:12, JJ Zhang wrote:
I have tried macports or homebrew before, they don’t not work either. I do not like to compile it myself either, but it seems that compiling is the only option.
If you have problems with macports or homebrew, you should open an issue in their respective websites. Any issue encountered is usually easy to solve, and the developers tend to be helpful.
Best, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de> _______________________________________________ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool
-- Best regards, JJ Zhang
participants (2)
-
JJ Zhang -
Tiago de Paula Peixoto