Tikejhya: Ashish Nepal

Knowledgebase

Category: Testing Web Application

PhantomJS 1.6. And Centos 5.6

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by phantomjs)
phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by phantomjs)
phantomjs: /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libc.so.6: version `GLIBC_2.7' not found (required by phantomjs)
phantomjs: /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libc.so.6: version `GLIBC_2.7' not found (required by /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libQtGui.so.4)
phantomjs: /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libc.so.6: version `GLIBC_2.11' not found (required by /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libQtGui.so.4)
phantomjs: /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libc.so.6: version `GLIBC_2.9' not found (required by /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libQtGui.so.4)
phantomjs: /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libc.so.6: version `GLIBC_2.10' not found (required by /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libQtNetwork.so.4)
phantomjs: /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libc.so.6: version `GLIBC_2.9' not found (required by /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libQtCore.so.4)
phantomjs: /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libc.so.6: version `GLIBC_2.11' not found (required by /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libfreetype.so.6)
phantomjs: /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libc.so.6: version `GLIBC_2.7' not found (required by /usr/phantomjs-1.6.0-linux-x86_64-dynamic/bin/../lib/libfontconfig.so.1

SOLUTION:
Applies to: PhantomJS 1.6. And Tested on Centos 5.6

You can compile it from source and it will work as charm.

considering you downloaded file to /usr/local/src

cd /usr/local/src/
tar -zxvf file.tar.gz (whatever)
./build.sh

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

After building do deploy which you can run anywhere you want simply copy and replace files where its giving you that error.

I had same issue i compiled it from source, and copied required file. (i am assuming as i did: complied in diff server and copied files across but you can always do that in same server aswell)

Downloaded into usr/local/src and compiled. copied required file to original place

cp -rP /usr/local/src/phantomjs-1.6.0-linux-x86_64-dynamic/bin/phantomjs* /data/phantomjs/bin/
cp -rP /usr/local/src/phantomjs-1.6.0-linux-x86_64-dynamic/lib/* /data/phantomjs/lib/

Warnning: Compiling PhantomJS from source takes a long time, mainly due to thousands of files in the WebKit module. With 4 parallel compile jobs on a modern machine, the entire process takes roughly 30 minutes. It is highly recommended to install the ready-made binary package if it is available. Linux

Note 1: build.sh by default will launch 4 (four) parallel compile jobs. When building on a virtual machine/server or other limited environment, reduce the jobs by passing a number, e.g ./build.sh –jobs 1 to set only one compile job at a time.

Selenium Server (includes: Centos, Java, Rubygem )

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Hi, please cross check selenium office website for other language and detailed description.

This would be sufficient for those who are using, Centos, and Ruby.

Install the Selenium RC Server.
Set up a programming project using a language specific client driver.

Installing Selenium Server
Download: Latest: http://seleniumhq.org/download/

java -jar selenium-server-standalone-.jar

Check Java if Installed otherwise, “yum install java”

java -version
If you get a version number (which needs to be 1.5 or later),

Ready Seady Go.

Check ports if its running: (Default)
ngrep -l -q -d eth0 tcp and port 4444
If not running
java -jar selenium-server-standalone-2.4.0.jar
If no ngrep command found.
yum install ngrep

Once setup is done,

Testing from any client PC with PHPUnit,

Read More

Powered by WordPress & Theme by Anders Norén