I am using Python 2.7 and am trying to import graph_tool, and it seems that my libboost_thread-mt.dylib is located in /opt/local/lib rather than /usr/local/lib.
If I start an X11 terminal and type in
export DYLD_LIBRARY_PATH='/opt/local/lib'
then Python successfully imports graph_tool. On the other hand, if I add
export DYLD_LIBRARY_PATH='/opt/local/lib':$DYLD_LIBRARY_PATH
to ~/.bash_profile
, X11 stops working. I am really confused as to what is happening here. Why can't I add /opt/local/lib
to $DYLD_LIBRARY_PATH
permanently without destroying my computer?
Any help is much appreciated. Thanks!