Python pyipopt安装中的问题

Python pyipopt安装中的问题,python,gcc,ubuntu,linker,Python,Gcc,Ubuntu,Linker,我在安装pyipopt时遇到问题。问题与此类似`python setup.py install'包含下一个输出 /usr/bin/ld: cannot find -lipopt /usr/bin/ld: cannot find -lcoinmumps /usr/bin/ld: cannot find -lcoinmetis collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 我使用s

我在安装pyipopt时遇到问题。问题与此类似`python setup.py install'包含下一个输出

/usr/bin/ld: cannot find -lipopt
/usr/bin/ld: cannot find -lcoinmumps
/usr/bin/ld: cannot find -lcoinmetis
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 
我使用synaptic软件包管理器安装了ipopt,发现 下一个文件
/usr/lib/coin/libipot.la
/usr/lib/coin/libipot.la

我试过这个

export LD_LIBRARY_PATH=/xx/yy/zz:$LD_LIBRARY_PATH
我还尝试运行了
ldconfig


可能是我做错了什么,但这对我没有帮助。

如果您使用安装的非标准目录(例如进入~/bin/ipopt/),则必须向编译器指定这些目录,以便它找到库和头文件

C_INCLUDE_PATH=$HOME/bin/ipopt/INCLUDE/coin/LIBRARY_PATH=$HOME/bin/ipopt/lib/LD_LIBRARY_PATH=$HOME/bin/ipopt/lib/python setup.py build

然而,我仍然得到-lcoinmips和-lcoinmetis错误,因为我没有这些库。我在这里打开了一个bug: