ld cannot find -l

前端 未结 4 1084
时光取名叫无心
时光取名叫无心 2021-01-01 17:23

I am having trouble installing pyipopt on ubuntu 12.04. During linking, I receive the error:

/usr/bin/ld: cannot find -lcoinhsl

Even though I know tha

相关标签:
4条回答
  • 2021-01-01 17:54

    I had a similar problem with another library and the reason why it didn't found it, was that I didn't run the make install (after running ./configure and make) for that library. The make install may require root privileges (in this case use: sudo make install). After running the make install you should have the so files in the correct folder, i.e. here /usr/local/lib and not in the folder mentioned by you.

    0 讨论(0)
  • 2021-01-01 17:58

    You may install your coinhsl library in one of your standard libraries directories and run 'ldconfig` before doing your ppyipopt install

    0 讨论(0)
  • 2021-01-01 18:12

    you can add the Path to coinhsl lib to LD_LIBRARY_PATH variable. May be that will help.

    export LD_LIBRARY_PATH=/xx/yy/zz:$LD_LIBRARY_PATH
    

    where /xx/yy/zz represent the path to coinhsl lib.

    0 讨论(0)
  • 2021-01-01 18:18

    -Ldir
    Add directory dir to the list of directories to be searched for -l.

    0 讨论(0)
提交回复
热议问题