Compiling and Installing pyactivemq on mac osx with macports
$ python Python 2.5.4 (r254:67916, Jan 5 2010, 17:58:16) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pyactivemk Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap
$ otool -L /opt/local/lib/libboost_python-mt.dylib | grep Python /System/Library/Frameworks/Python.framework/Versions/2.5/Python (compatibility version 2.5.0, current version 2.5.1) $ otool -L build/lib.macosx-10.5-i386-2.5/pyactivemq.so | grep Python /System/Library/Frameworks/Python.framework/Versions/2.5/Python
$ /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python src/test/alltests.py ................................................ ---------------------------------------------------------------------- Ran 48 tests in 4.795s OK
$ cd /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config $ ls -ld libpython2.5.a libpython2.5.a -> /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Python $ rm libpython2.5.a $ ln -s ../../../Python libpython2.5.a $ ln -s ../../../Python libpython2.5.dylib $ ls -ld libpython* lrwxr-xr-x 1 root wheel 15 Jan 6 12:46 libpython2.5.a -> ../../../Python lrwxr-xr-x 1 root wheel 15 Jan 6 12:46 libpython2.5.dylib -> ../../../Python $ otool -L /opt/local/lib/libboost_python-mt.dylib | grep Python /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Python (compatibility version 2.5.0, current version 2.5.0) $ cd /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config
$ cd /opt/local/lib $ ls -l ../Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 $ sudo rm ../Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 $ sudo mkdir ../Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 $ sudo cp -R /opt/local/lib/python2.5/* ../Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ $ sudo rm -rf /opt/local/lib/python2.5 $ sudo ln -s ../Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 python2.5
$ sudo port install boost +python25 $ otool -L /opt/local/lib/libboost_python-mt.dylib | grep Python /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Python (compatibility version 2.5.0, current version 2.5.0)
http://stackoverflow.com/questions/2013765/compiling-and-installing-pyactivemq-on-osx


