1. Lex Tsang

    Hi, thanks a lot for your build of phantomjs. I tried to download your binary into my openshift server. However, every time when I run it, it always gives me a “Segmentation Fault” error. Do you know how I can fix it? Thanks.

  2. Chris Maillard

    Hi Paolo,
    Nice post! I’m really interested into this solution, but I have not been able to make it work.
    When running “./phantomjs –webdriver=$OPENSHIFT_JBOSSEWS_IP:23456”, I also catch a segmentation fault. My cartridges: Tomcat 7 (JBoss EWS 2.0), MongoDB 2.4 and RockMongo 1.1.
    $ uname -a
    Linux ex-std-node431.prod.rhcloud.com 2.6.32-504.3.3.el6.x86_64 #1 SMP Fri Dec 12 16:05:43 EST 2014 x86_64 x86_64 x86_64 GNU/Linux
    $ ldd phantomjs
    statically linked
    Any idea why this error and how to solve it?
    Thanks 🙂

  3. wl

    I get Segmentation fault too. So I want to do compile myself. But I do not know which project to compile and how. Would you show me some light?

    • I think you can just follow the instructions on their build page (I did too, patching excluded): http://phantomjs.org/build.html

      Be careful about the external libraries, at least libfreetype, libfontconfig and libexpat: the phantomjs binary requires these, and they must be binary compatible with the environment that you will run phantomjs on. You’re probably getting a segfault because of binary library incompatibility.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.