본문 바로가기

프로그래밍/개발환경

우분투에서 electron/puppeteer 실행시 오류 (libX11-xcb.so 등)

출처 https://whiumisc.tistory.com/93

 

우분투 electron 실행 시 libX11-xcb.so 에러

야심차게 electron으로 데스크탑 앱을 만들어야겠다고 설치하려는 순간! error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory 이런 식으로 에러..

whiumisc.tistory.com

출처2 https://skyksit.tistory.com/entry/%EC%9A%B0%EB%B6%84%ED%88%ACUbuntu-puppeteer-%EC%8B%A4%ED%96%89%EC%8B%9C-%EC%97%90%EB%9F%AC%EB%82%A0%EB%95%8C-libX11-xcbso

 

우분투(Ubuntu) puppeteer 실행시 에러날때 (libX11-xcb.so)

에러코드 error while loading shared libraries: libX11-xcb.so: cannot open shared object file: No such file or directory 원인 puppeteer 에서 사용하는 chrome 브라우저를 실행시킬 라이브러리가 우분투 OS..

skyksit.tistory.com

 

 

결론 : 필요한 패키지가 없어서 생기는 문제니 설치해주면 됩니다.

 

sudo apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

 

sudo apt-get install libgbm-dev