/usr/bin/ld: cannot find -lXmu

╄→尐↘猪︶ㄣ 提交于 2019-12-08 04:53:00

问题


I want to install netgen and try to compile the source code. During this I got the error message:

U -L/usr/lib/x86_64-linux-gnu -ltk8.6 -ltcl8.6 -lGL -lXmu -lX11 -fopenmp -Wl,-rpath -Wl,/opt/netgen/lib
/usr/bin/ld: cannot find -lXmu
collect2: error: ld returned 1 exit status
make[2]: *** [netgen] Error 1

Maybe I have to install an additional package? Does anyone have an idea?


回答1:


You can check, depending on your specific OS, if you are not missing the missing the non-versioned named (i.e. libXmu.so).

Check for ls /usr/lib/libXmu*.*, and if not found, type:

ln -s /usr/lib/libXmu.so libXmu.so.6
ln -s /usr/lib/libXuu.so libXmuu.so.1

If you don't have any libXmu*.* files, then you need to install first libxmu-dev:

sudo apt-get install libxmu-dev


来源:https://stackoverflow.com/questions/26322603/usr-bin-ld-cannot-find-lxmu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!