2

I'm new to FreeBSD. I want to run phantomjs on it. I've run linux emulation according to FreeBSD Linux® Binary Compatibility I manually installed 32bit phantom in accordance to this answer phantom instalation. After all that steps, when I'm trying to run command phantomjs -v I'm getting an error like this

phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory I can't figure out, how shoud I install libfontconfig.so.1 library on FreeBSD to make it works. Thanks for all suggestion!

Community
  • 1
  • 1
Vladyslav Nikolaiev
  • 1,819
  • 3
  • 20
  • 39
  • 1
    Can you refer this - https://github.com/ariya/phantomjs/issues/10904 Let me know if that helps. – Soman Dubey Mar 12 '16 at 14:18
  • @SomanDubey , thank for response! I tried to run this command `pkg install phantomjs`, but I got this `pkg: No packages available to install matching 'phantomjs' have been found in the repositories `. – Vladyslav Nikolaiev Mar 12 '16 at 14:23
  • 1
    I was referring to this post - It is solved for my by running sudo apt-get install libfontconfig on that environment. Thanks to this answer: http://stackoverflow.com/questions/13046555/wkhtmltopdf-libfontconfig-so-1-cannot-open-shared-object-file in above link – Soman Dubey Mar 12 '16 at 14:26
  • try following sof link above – Soman Dubey Mar 12 '16 at 14:27
  • @SomanDubey unfortunately, I can't run this command because I have only possibility to run linux binaries in freebsd environment. It should be `pkg install phantomjs` command alternative to `apt-get install libfontconfig`, but it doesn't work (my comment above) – Vladyslav Nikolaiev Mar 12 '16 at 14:32
  • I haven't worked in freebsd environment. but as far as my knowledge goes, you will have to figure out a way to install libfontconfig. I'm sorry but this is far I can go. – Soman Dubey Mar 12 '16 at 14:34
  • @SomanDubey, thanks for your help – Vladyslav Nikolaiev Mar 12 '16 at 14:36

1 Answers1

3
g@crayon2:/usr/local/lib % pkg which /usr/local/lib/libfontconfig.so.1
/usr/local/lib/libfontconfig.so.1 was installed by package fontconfig-2.11.1_1,1

You should be able to install that library with:

pkg install x11-fonts/fontconfig

Then it should be placed in the /usr/local/lib folder (as in the example above).

Greg
  • 8,230
  • 5
  • 38
  • 53