- Xcode (Not necessary)
- Command Line Tools for Xcode
- ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
- brew doctor
- brew update
- brew install python
- vim ~/.bash_profile
- and insert this code:
export ARCHFLAGS="-arch x86_64"
export PATH=/usr/local/bin:$PATH
test -f ~/.bashrc && source ~/.bashrc
- . ~/.bash_profile
- easy_install pip # If you don't have already pip installed
- brew install gcc
- pip install numpy
- pip install scipy
- brew install freetype
- pip install matplotlib
- brew tap homebrew/science
- brew install graph-tool
I am trying to install graph-tool on my Mac machine and I want to be installed on python 2.7. Well it seemed it got installed using both
port
andbrew
but when I imported it in python I got this error:Segmentation fault: 11
. I tried to install it by compiling it by myself using the following configuration line:./configure CC=clang CXX=clang++ CPPFLAGS="-I/usr/local/Celler/py2cairo/1.17.1/include" PYTHON_EXTRA_LDFLAGS="-L/usr/local/bin"
when I ran
make install
, I got this error:Is there any way to solve this error? Thanks.