[C++-sig] OS X boost.python tutorial question
Gary Robinson
grobinson at goombah.com
Sat Jun 25 23:28:46 CEST 2005
>
> Do you have the directory
>
/Users/garyrob/Desktop/boost_1_32_0/bin/boost/libs/python/build/libboost_python.dylib/darwin/release/shared-linkable-true
> in your $DYLD_LIBRARY_PATH environment variable?
No, I didn't -- and in fact I never heard of DYLD_LIBRARY_PATH before.
I am truly a newbie. A complete newbie to boost, but 99.5% a newbie to
unix development as well. Thanks for the tip!
But the thing that made it counterintuitive to me that to think that it
might be a matter of the path is the fact that when I tried to
import hello
it told me it couldn't load the libboost_python.dylib file, and the
error message named the exact location where it really was. If it knows
exactly where it is, why does it need an environment variable with the
path? I guess DYLD_LIBRARY_PATH must "bless" the directories it lists
to make their contents OK for use as dynamic libraries? Dunno. I found
some docs on it on Apple's site and will read about it.
The remaining mystery is that the tutorial docs say that
libboost_python.so should have been produced, but in fact
libboost_python.pylib was produced.
(http://www.boost.org/libs/python/doc/tutorial/doc/html/python/hello.html).
I'm not sure if the docs are wrong or if I'm missing something.
Gary
--
Gary Robinson
CEO
Transpose, LLC
grobinson at transpose.com
207-942-3463
Company: http://transpose.com
Blog: http://www.garyrobinson.net
More information about the Cplusplus-sig
mailing list