brew link boost to homebrew python

698 views Asked by At

After installing boost with brew using the system layout option --layout=system (set using brew edit boost155)

brew install boost155 --with-python --with-mpi --without-single

I discovered that my boost library talks to the osx python, not the homebrew version

$ otool -L `brew list boost155 | grep python.dylib` | grep -i python 
/usr/local/Cellar/boost155/1.55.0_1/lib/libboost_mpi_python.dylib:  
   /usr/local/opt/boost155/lib/libboost_mpi_python.dylib (compatibility version 0.0.0, current version 0.0.0)   @loader_path/libboost_python.dylib (compatibility version 0.0.0, current version 0.0.0)
   /usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0) 
   /usr/local/Cellar/boost155/1.55.0_1/lib/libboost_python.dylib:   /usr/local/opt/boost155/lib/libboost_python.dylib (compatibility version 0.0.0, current version 0.0.0)  
  /usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)

How can I link boost to the homebrew python libraries?

1

There are 1 answers

1
Tim Smith On BEST ANSWER

That is the Homebrew Python. The system Python framework is in /System/Library/Frameworks.