Setting up phantomjs on fedora

1,422 views
Skip to first unread message

bumbler

unread,
Jul 3, 2012, 11:53:30 AM7/3/12
to phan...@googlegroups.com
Hi, I am trying to get setup on fedora but I am not getting any luck. I have been through the posts and the web but not working yet.

The error I'm getting is:

[root@server]# phantomjs --version
phantomjs: /lib/libc.so.6: version `GLIBC_2.9' not found (required by /path/phantomjs-1.6.0-linux-i686-dynamic/bin/../lib/libQtGui.so.4)
phantomjs: /lib/libc.so.6: version `GLIBC_2.10' not found (required by /path/phantomjs-1.6.0-linux-i686-dynamic/bin/../lib/libQtNetwork.so.4)
phantomjs: /lib/libc.so.6: version `GLIBC_2.9' not found (required by /path/phantomjs-1.6.0-linux-i686-dynamic/bin/../lib/libQtCore.so.4)
phantomjs: /lib/libc.so.6: version `GLIBC_2.11' not found (required by /path/phantomjs-1.6.0-linux-i686-dynamic/bin/../lib/libfreetype.so.6)

I seem to have GLIBC installed?

[root@server]# ldd -v /usr/bin/gcc
        linux-gate.so.1 =>  (0x00110000)
        libc.so.6 => /lib/libc.so.6 (0x0071b000)
        /lib/ld-linux.so.2 (0x006fc000)

        Version information:
        /usr/bin/gcc:
                libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
        /lib/libc.so.6:
                ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
                ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
                ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2

I have installed the latest xvfb but am unable to find build-essential as stated in other posts:

[root@server]# yum install xorg-x11-server-Xvfb.i386
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-server-Xvfb.i386 0:1.3.0.0-33.fc8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 xorg-x11-server-Xvfb    i386       1.3.0.0-33.fc8   fedora            1.6 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 1.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): xorg-x11-server-Xv 100% |=========================| 1.6 MB    00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: xorg-x11-server-Xvfb         ######################### [1/1]

Installed: xorg-x11-server-Xvfb.i386 0:1.3.0.0-33.fc8
Complete!



Any help would be very appreciated.

bumbler

unread,
Jul 3, 2012, 12:03:04 PM7/3/12
to phan...@googlegroups.com

I have done a bit more searching and I have found the following:

[root@server]# find / -name libc.so*
/usr/lib/libc.so
/lib/libc.so.6
/lib/i686/nosegneg/libc.so.6
 

Jon Leighton

unread,
Jul 3, 2012, 2:41:15 PM7/3/12
to phan...@googlegroups.com
What version of Fedora are you using? What is the output of running
"uname -a"? Also, what is the output of "/lib/libc.so.6"?
--
http://jonathanleighton.com/


bumbler

unread,
Jul 4, 2012, 2:57:58 AM7/4/12
to phan...@googlegroups.com
Hi Jonathan, thank you for helping.

My output of uname is:

Linux server.uk2net.com 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007                        i686 i686 i386 GNU/Linux

The output of  "/lib/libc.so.6" is:

[server ~]$ /lib/libc.so.6
GNU C Library stable release version 2.7, by Roland McGrath et al.
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 20070925 (Red Hat 4.1.2-32).
Compiled on a Linux >>2.6.20-1.3001.fc6xen<< system on 2007-10-18.
Available extensions:
        The C stubs add-on version 2.1.2.
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
        RT using linux kernel aio
For bug reporting instructions, please see:

Thank you Chris

Jon Leighton

unread,
Jul 4, 2012, 3:32:33 AM7/4/12
to phan...@googlegroups.com
Hi Chris,

It looks like your system is simply too old to be able to work with the
binary packages (which are compiled on Ubuntu Lucid).

You should compile from source instead (see the docs for how to do that).

Jon
--
http://jonathanleighton.com/


Reply all
Reply to author
Forward
0 new messages