Menu

libpocketsphinx.so.1: cannot open shared obj

Help
2011-03-06
2012-09-22
  • baoxiang li

    baoxiang li - 2011-03-06

    when i run the first program with pocketsphinx, an error is found, below
    ./hello_world:
    error while loading shared libraries: libpocketsphinx.so.1: cannot open shared
    object file: No such file or directory
    i search the file libpocketsphinx.so.1, it is in the usr/local/lib.
    who can help me?

     
  • Nickolay V. Shmyrev

    Linux dynamic loader doesn't use libraries in /usr/local/lib by default, it
    only looks in /usr/lib. To configure the loader you can use environment
    variable:

    export LD_LIBRARY_PATH=/usr/local/lib
    

    or edit configuration file /etc/ld.so.conf

     
  • baoxiang li

    baoxiang li - 2011-03-07

    thank you very much. I edit configuration file /etc/ld.so.conf adding
    /usr/loacl/bin ,and run command-line :ldconfig. Finally, I can run the program
    success.

     

Log in to post a comment.