[Botan-devel] Problems building Botan-1.9.7

Jack Lloyd lloyd at randombit.net
Wed May 26 12:30:24 EDT 2010


On Wed, May 26, 2010 at 06:24:05PM +0200, Bud P. Bruegger wrote:

> However, running python and importing botan fails:
> 
> Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
> [GCC 4.3.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import botan
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.6/dist-packages/botan/__init__.py", line 1, in <module>
>     from _botan import *
> ImportError: libbotan-1.9.7.so: cannot open shared object file: No such file or directory
> 
> I have a libbotan-1.9.7.so in /usr/local/lib/
> 
> Any idea what fails?

Nothing really obvious is coming to me, but some possible debugging
ideas:

 - ldd the _botan.so file, see if it finds the library that way
 - Perhaps /usr/local/lib is not included /etc/ld.so.conf?
 - Try running ldconfig?

By the way, fair warning before you spend more time on this, the
Python code is very preliminary and limited; what is there should work
well, and there are some examples in doc/python, but the feature set
is very limited right now. Patches welcome, of course. :)

-Jack



More information about the botan-devel mailing list