Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

cannot open shared object file: No such file or directory on pcoketsphinx #6

Closed
titusjoyson opened this issue Sep 18, 2015 · 1 comment

Comments

@titusjoyson
Copy link

I installed as you directed and when i tried to run the sample file I got the below error how to fix this on ubuntu 15. Please reply as soon as possible.

python test.py

Traceback (most recent call last):
File "test.py", line 3, in
from pocketsphinx.pocketsphinx import *
File "/usr/local/lib/python2.7/dist-packages/pocketsphinx/init.py", line 37, in
from pocketsphinx import *
File "/usr/local/lib/python2.7/dist-packages/pocketsphinx/pocketsphinx.py", line 42, in
_pocketsphinx = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/pocketsphinx/pocketsphinx.py", line 38, in swig_import_helper
_mod = imp.load_module('_pocketsphinx', fp, pathname, description)
ImportError: libpocketsphinx.so.3: cannot open shared object file: No such file or directory

@nshmyrev
Copy link

The error message tells you that the system failed to load shared library libpocketsphinx.so.3. You have to configure linker to look in /usr/local/lib to load shared libraries. You can do it with LD_LIBRARY_PATH environment variable or with configuration file /etc/ld.so.conf

To learn more about shared libraries in Linux read

http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

nshmyrev pushed a commit that referenced this issue Feb 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants