phantomjs: error while loading shared libraries: libfontconfig.so.1: what do I have to do?

3,597 views
Skip to first unread message

Marco Ippolito

unread,
Sep 25, 2013, 3:05:39 AM9/25/13
to phan...@googlegroups.com
Hi everybody,
I just installed casperjs and phantomjs. In order to try its functionalities, I typed casperjs googlelinks.js. This is the result:
"casperjs googlelinks.js
phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory"
googling I found that this problem occurs when phantomjs is an older version than 1.6.0 (https://github.com/yeoman/yeoman/issues/446 )
So:
I uninstalled my PhantomJS from my package manager with sudo apt-get remove phantomjs
and then
I downloaded from here: http://phantomjs.org/download.html the latest (1.9.2) version of the binary code for Linux: https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2

I extracted the directory phantomjs-1.9.2-linux-x86_64 but the problem persists:  casperjs googlelinks.js
phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory

What do I have to do in order to solve the situation?

Thank you for you kind help
Kind regards
Marco

Marco Ippolito

unread,
Sep 25, 2013, 3:09:59 AM9/25/13
to phan...@googlegroups.com

Ariya Hidayat

unread,
Sep 25, 2013, 3:22:49 AM9/25/13
to phan...@googlegroups.com
Please read http://phantomjs.org/download.html, it already mentions
that "...some base libraries necessary for rendering (FreeType,
Fontconfig)..." should be installed. It's likely just a few apt-get
anyway.


--
Ariya Hidayat, http://ariya.ofilabs.com
http://twitter.com/ariyahidayat
http://gplus.to/ariyahidayat

Marco Ippolito

unread,
Sep 25, 2013, 3:42:53 AM9/25/13
to phan...@googlegroups.com
Thank you very much
Kind regards
Marco


2013/9/25 Ariya Hidayat <ariya....@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "phantomjs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phantomjs/uR8uBaH5rko/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phantomjs+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phantomjs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages