cd ~/ git clone git://github.com/ariya/phantomjs.git && cd phantomjs qmake-qt4 && make sudo cp bin/phantomjs /usr/local/bin/