IT/nodejs

nodejs 해결방법 /phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory

조원태 2016. 10. 12. 15:47
반응형

아래와 같은 에러가 나올 경우 대처법

/usr/local/node/lib/node_modules/phantomjs/lib/phantom/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory


위 에러를 해결하기 위해 많은 것을 설치 했어요. 
전부 설치를 해야 하는지 마지막만 수행하면 되는지는 모르겠습니다.




위 라이브러리를 설치 해도 해결 되지 않습니다.

yum install -y bzip2 tar npm nodejs-inherits.noarch fontconfig-2.11.1-5.fc21.i686

설치하기

아직도 동일한 에러가 발생합니다.

npm install -g inherits

npm install -g uncss

여전히 동일한 에러가 발생합니다.

yum install freetype-devel fontconfig-devel


casperjs today.js 하니 

정상적으로 실행되는 것을 확인 할 수 있습니다.


반응형

'IT > nodejs' 카테고리의 다른 글

리눅스 node.js 초기설정 npm init  (0) 2016.10.11
리눅스 node.js express 모듈설치  (0) 2016.10.11
node.js 웹서버 만들기  (0) 2016.10.11
리눅스 node.js 설치  (0) 2016.10.11