Menu

"Could not link test program to Python" error when running configure

Help
kmc100
2018-06-27
2018-06-29
  • kmc100

    kmc100 - 2018-06-27

    Hello,

    I am following the tutorial to create an acoustic model (https://cmusphinx.github.io/wiki/tutorialam/) using the sample training database, an4. I am trying to configure sphinxbase by running the configure script using the following command.

    PYTHON=python3.6 ./configure LDFLAGS="-L/lib/python3.6/"
    

    However, I obtained the following error.

    configure: error:
    Could not link test program to Python. Maybe the main Python library has been
    installed in some non-standard library path. If so, pass it to configure,
    via the LDFLAGS environment variable.
    Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
    

    I am using the 64-bit version of Cygwin on Windows 7 Professional. I used the Cygwin installer to install the Python 2.7 and 3.6.

    How can I solve this error?

     

    Last edit: kmc100 2018-06-27
  • kmc100

    kmc100 - 2018-06-27

    Attached is the log file.

     
    • Nickolay V. Shmyrev

      Cygwin is always a very bad idea. Use Linux.

       
  • kmc100

    kmc100 - 2018-06-28

    Thank you for your help. I am now using Linux Mint 12. I was able to run configure without error, but I obtained the following error when I ran make.

    libtool: link: cannot find the library `Sphinx/tutorial/sphinxbase/src/libsphinxbase/libsphinxbase.la' or unhandled argument `Sphinx/tutorial/sphinxbase/src/libsphinxbase/libsphinxbase.la'
    make[2]: *** [sphinx_pitch] Error 1
    make[2]: Leaving directory `/home/xxxxxxxxxx/Documents/CMU Sphinx/tutorial/sphinxbase/src/sphinx_adtools'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/xxxxxxxxxx/Documents/CMU Sphinx/tutorial/sphinxbase/src'
    make: *** [all-recursive] Error 1
    

    What can I do to fix this error?

     
  • kmc100

    kmc100 - 2018-06-29

    I figured it out. I had a space in my directory.

     

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.