jamiebullock / LibXtract

LibXtract is a simple, portable, lightweight library of audio feature extraction functions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not calling ldconfig after install

noisygecko opened this issue · comments

It looks like a call to "/sbin/ldconfig" is missing when installing for Ubuntu 12.04. When I try to use the Python bindings I get an error that libxtract.so.0 is not found:

In [2]: import libxtract.xtract
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/home/sim/Downloads/LibXtract/swig/python/<ipython-input-2-df994e04a1f2> in <module>()
----> 1 import libxtract.xtract

/usr/local/lib/python2.7/dist-packages/libxtract/xtract.py in <module>()
     24                 fp.close()
     25             return _mod
---> 26     _xtract = swig_import_helper()
     27     del swig_import_helper
     28 else:

/usr/local/lib/python2.7/dist-packages/libxtract/xtract.py in swig_import_helper()
     20         if fp is not None:
     21             try:
---> 22                 _mod = imp.load_module('_xtract', fp, pathname, description)
     23             finally:
     24                 fp.close()

ImportError: libxtract.so.0: cannot open shared object file: No such file or directory

I found that the library is installed to /usr/local/lib and this goes away when I run the following:

sudo /sbin/ldconfig