Solve Segmentation Fault on PhantomJS Ubuntu 11.10 Oneiric AMD64

After installing PhantomJS as build instruction, I run some example test and got segmentation fault end of results. Searching through google and can't find the right answer for me. Then, i uninstall my phantomJS and re-install again using branch "master" and it SOLVED my problem. Here are what you need to do to solve segmentation fault :

1. Install dependencies packages

sudo apt-get install xvfb git build-essential gtk2-engines-pixbuf xfonts-100dpi x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic
sudo apt-get install libqt4-dev libqtwebkit-dev qt4-qmake python-qt4



2. Install PhantomJS

cd ~/
git clone git://github.com/ariya/phantomjs.git && cd phantomjs
qmake-qt4 && make
echo 'export PATH=$HOME/phantomjs/bin:$PATH' >> ~/.profile
source ~/.profile


Now, test with twitter example. You will no see segmentation fault again :)



You should follow me here

Comments

I FUCKING LOVE YOU GOD DAMN.

...sorry, this post just solved so many problems I have it would blow your mind.

Add new comment