WSL에서 Xwindows 프로그램 실행 에러 시 해결

Posted at 2021/02/11 14:47 // in Tips // by Daniel

(Windows10 64bit WSL V1 사용중이다)

$ texmaker
texmaker: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

위와 같은 에러메시지가 나서,
연관될 것 같은 갖은 프로그램을 깔아봤지만
문제해결되지 않았고, 해당 패키지도 깔려있는 상태였다.

이 때 $ sudo strip —remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
명령으로 해결할 수 있었다.
참고 레퍼런스: https://stackoverflow.com/questions/63627955/cant-load-shared-library-libqt5core-so-5

선행작업은
XMing 설치 (무료 X서버) https://sourceforge.net/projects/xming/
Machine ID 생성
$ sudo systemd-machine-id-setup
$ sudo dbus-uuidgen —ensure
XWindows 구성요소 설치
$ sudo apt-get install x11-apps xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic
기본 디스플레이포트 설정
$ export DISPLAY=:0
https://www.tuwlab.com/ece/29485 참고하였다.

동작시험
$ xeyes

*터미널 프로그램은 wsltty 을 사용했다. https://github.com/mintty/wsltty/releases

크리에이티브 커먼즈 라이센스
Creative Commons License

이 글에는 트랙백을 보낼 수 없습니다

1 2 3 4 5 6 7 8 9 ... 763