2019년 8월 21일 수요일

[Ubuntu] error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory 에러 해결

* SEP 프로그램 중 Ricksep을 3차원 binary file 출력에 많이 사용 함

* SEP를 다 설치하는 것 보다 Ricksep 실행파일만 가져와서 실행하는게 간편함(...)

* Ricksep을 원하는 리눅스 환경에 가져와서 실행해보면 실행이 되는 경우도 있고 안되는 경우도 있음

* 안되는 경우 아래와 같은 에러가 주로 발생 함
Ricksep: error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory

* 이 때 libmotif4를 설치해주면 됨

* 하지만 아래와 같이 바로 설치하면 에러가 발생 함
sudo apt-get install libmotif4

E: Package 'libmotif4' has no installation candidate

* 해결 방법:
아래를 차례로 실행하면 됨

sudo su

echo 'deb http://cz.archive.ubuntu.com/ubuntu trusty main universe' >> /etc/apt/sources.list.d/extra.list

apt-get update

apt-get install libmotif4


댓글 없음:

댓글 쓰기