问题
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