Good day! Trying to raise phantomjs on FreeBSD. After a manual installation of its 32-bit version compatible with linux in accordance with the guide set forth here for installing a phantom and running compatibility of Linux binaries on freebsd in accordance with the compatibility launch guide, the phantom -v command returns an error:

phantomjs: error while loading shared libraries: libfontconfig.so.1

Of the documentation says that you need to run $ sudo pkg install phantomjs to install the necessary dependencies, but this command swears the absence of this package in the repository. How can I solve the problem of installing libfontconfig.so.1 libraries in freebsd? Thanks for any answer!

  • Software versions do not specify? Can you literally show an error when running sudo pkg install phantomjs ? - Andrew Hobbit

1 answer 1

The phantom documentation says that if ready-made binaries from the site are used, then some dependencies need to be resolved manually. To solve the problem with missing libfontconfig.so you need to install fontconfig :

 pkg install fontconfig 

Or from ports to collect:

 cd /usr/ports/x11-fonts/fontconfig/ make install clean 

But as far as I remember, Phantomjs is in the ports . You can try to install from ports:

 cd /usr/ports/lang/phantomjs/ make install clean