Menu

pocketsphinx$ sudo make install .... result in an error: /usr/bin/ld: cannot find -lsphinxbase

Help
2018-10-26
2018-11-01
  • Esteban  Lorantino

    I am building (make) pocketsphinx on Linux (Mint 17.2)
    Anyone have an idea of what I can fit it ?

    1) I previously have done those steps:

    sudo apt-get install gcc automake autoconf libtool bison swig python-dev libpulse-dev
    mkdir sphinx
    cd sphinx
    git clone https://github.com/cmusphinx/sphinxbase...
    cd sphinxbase
    ./autogen.sh
    ./configure
    make clean all
    make check
    sudo make install

    export LD_LIBRARY_PATH=/usr/local/lib
    sudo nano /etc/ld.so.conf
    include /etc/ld.so.conf.d/*.conf <<< this line was already there
    /usr/local/lib <<< added this line
    sudo ldconfig

    git clone https://github.com/cmusphinx/pocketsphinx
    cd pocketsphinx
    ./autogen.sh
    ./configure
    make clean all
    make check

    2) All success until here, then I do:
    sudo make install

    ...and here is the error result :

    esteban@STB-00104:~/git/sphinx/pocketsphinx$ sudo make install 
    Making install in src
    make[1]: entrant dans le répertoire « /home/esteban/git/sphinx/pocketsphinx/src »
    Making install in libpocketsphinx
    make[2]: entrant dans le répertoire « /home/esteban/git/sphinx/pocketsphinx/src/libpocketsphinx »
    make[3]: entrant dans le répertoire « /home/esteban/git/sphinx/pocketsphinx/src/libpocketsphinx »
     /bin/mkdir -p '/usr/local/lib'
     /bin/bash ../../libtool   --mode=install /usr/bin/install -c   libpocketsphinx.la '/usr/local/lib'
    libtool: install: warning: relinking `libpocketsphinx.la'
    libtool: install: (cd /home/esteban/git/sphinx/pocketsphinx/src/libpocketsphinx; /bin/bash /home/esteban/git/sphinx/pocketsphinx/libtool  --tag CC --mode=relink gcc -I../../include -I../../include -DMODELDIR=\"/usr/local/share/pocketsphinx/model\" -g -O2 -Wall -version-info 3:0:0 -lm -L/home/esteban/git/sphinx/pocketsphinx/../sphinxbase/lib -L/home/esteban/git/sphinx/pocketsphinx/../sphinxbase/src/libsphinxad -L/home/esteban/git/sphinx/pocketsphinx/../sphinxbase/src/libsphinxbase -o libpocketsphinx.la -rpath /usr/local/lib acmod.lo bin_mdef.lo blkarray_list.lo dict.lo dict2pid.lo fsg_history.lo fsg_lextree.lo fsg_search.lo allphone_search.lo kws_search.lo kws_detections.lo hmm.lo mdef.lo ms_gauden.lo ms_mgau.lo ms_senone.lo ngram_search.lo ngram_search_fwdtree.lo ngram_search_fwdflat.lo phone_loop_search.lo ps_alignment.lo ps_lattice.lo ps_mllr.lo ptm_mgau.lo s2_semi_mgau.lo state_align_search.lo tmat.lo vector.lo pocketsphinx.lo -lsphinxbase )
    libtool: relink: gcc -shared  -fPIC -DPIC  .libs/acmod.o .libs/bin_mdef.o .libs/blkarray_list.o .libs/dict.o .libs/dict2pid.o .libs/fsg_history.o .libs/fsg_lextree.o .libs/fsg_search.o .libs/allphone_search.o .libs/kws_search.o .libs/kws_detections.o .libs/hmm.o .libs/mdef.o .libs/ms_gauden.o .libs/ms_mgau.o .libs/ms_senone.o .libs/ngram_search.o .libs/ngram_search_fwdtree.o .libs/ngram_search_fwdflat.o .libs/phone_loop_search.o .libs/ps_alignment.o .libs/ps_lattice.o .libs/ps_mllr.o .libs/ptm_mgau.o .libs/s2_semi_mgau.o .libs/state_align_search.o .libs/tmat.o .libs/vector.o .libs/pocketsphinx.o   -lm -L/home/esteban/git/sphinx/pocketsphinx/../sphinxbase/lib -L/home/esteban/git/sphinx/pocketsphinx/../sphinxbase/src/libsphinxad -L/home/esteban/git/sphinx/pocketsphinx/../sphinxbase/src/libsphinxbase -L/usr/local/lib -lsphinxbase  -O2   -Wl,-soname -Wl,libpocketsphinx.so.3 -o .libs/libpocketsphinx.so.3.0.0
    /usr/bin/ld: cannot find -lsphinxbase
    collect2: error: ld returned 1 exit status
    libtool: install: error: relink `libpocketsphinx.la' with the above command before installing it
    make[3]: *** [install-libLTLIBRARIES] Erreur 1
    make[3]: quittant le répertoire « /home/esteban/git/sphinx/pocketsphinx/src/libpocketsphinx »
    make[2]: *** [install-am] Erreur 2
    make[2]: quittant le répertoire « /home/esteban/git/sphinx/pocketsphinx/src/libpocketsphinx »
    make[1]: *** [install-recursive] Erreur 1
    make[1]: quittant le répertoire « /home/esteban/git/sphinx/pocketsphinx/src »
    make: *** [install-recursive] Erreur 1
    esteban@STB-00104:~/git/sphinx/pocketsphinx$ locate lsphinxbase
    esteban@STB-00104:~/git/sphinx/pocketsphinx$ make test
    make: Rien à faire pour « test ».
    esteban@STB-00104:~/git/sphinx/pocketsphinx$ 
    
     
    • Nickolay V. Shmyrev

      Probably there were errors on sphinxbase installation, you'd better check sphinxbase installation logs and sphinxbase library files in /usr/local/lib if they are actually installed.

       
  • Esteban  Lorantino

    Thank you.
    Do you know where I can find the "sphinxbase installation logs" ?
    What should I see in /usr/local/lib ? Currently, I don't see anything related to sphinx!

     

    Last edit: Esteban Lorantino 2018-10-31
    • Nickolay V. Shmyrev

      Do you know where I can find the "sphinxbase installation logs" ?

      They are printed on terminal when you run installation

      What should I see in /usr/local/lib ? Currently, I don't see anything related to sphinx!

      This is a bad sign

       
  • Esteban  Lorantino

    Thank you. Now it work: I restarted from scratch and instead of "make clean all" I did just "make"
    and now I have something in "/usr/local/lib" !

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.