7 easy steps:
For 64-bit system, download phantomjs-1.9.7-linux-x86_64.tar.bz2 (12.6 MB).
For 32-bit system, download phantomjs-1.9.7-linux-i686.tar.bz2 (12.9 MB).
Step 1> $ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
Step 2> $ tar -xvf phantomjs-1.9.7-linux-x86_64.tar.bz2
Step 3> $ cd phantomjs-1.9.7-linux-x86_64
Step 4> $ cd bin
Step 5> $ sudo cp phantomjs /usr/bin
To check phantomjs installed properly perform the following step :
For 32-bit system, download phantomjs-1.9.7-linux-i686.tar.bz2 (12.9 MB).
Step 1> $ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
Step 2> $ tar -xvf phantomjs-1.9.7-linux-x86_64.tar.bz2
Step 3> $ cd phantomjs-1.9.7-linux-x86_64
Step 4> $ cd bin
Step 5> $ sudo cp phantomjs /usr/bin
To check phantomjs installed properly perform the following step :
Step 6> $ phantomjs -h
To install the dependencies on Red Hat based systems:
Step 7> $ sudo yum install fontconfig freetype libfreetype.so.6 libfontconfig.so.1 libstdc++.so.6
Thanks :) It was really helpful
ReplyDeleteinstalling lib package gives nothing to do.
ReplyDeleteLoaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
No package libfreetype.so.6 available.
No package libfontconfig.so.1 available.
No package libstdc++.so.6 available.
Nothing to do
On RHEL7 I needed to use this:
ReplyDeleteyum install fontconfig libstdc++.i686 libstdc++ glibc glibc.i686 gcc -y