ch0wned – Firefox 4 in Redhat 5 (EL5) / CentOS 5 / CentOS 5.5

Written by max on March 29, 2011

ch0wned. adj. This is the state when you are a Linux user and don't have root access.

Intro

The latest Firefox 4 Beta (rc2) requires GCC 4.x and a libstdc++ to match. Unfortunately, Redhat EL5 and CentOS 5 / CentOS 5.5 do not meet this requirement, no matter how many packages you update. But, luckily for us our friend rkl found a solution and posted it on mozillazine. Much to our dismay, the mozilla developers have decided to stop supporting these old of libraries in bug 621704.

Downloads

Installing

  1. Unpackage Firefox

    tar xvfj firefox-4.0rc2.tar.bz2
    mv firefox firefox-4.0rc2

  2. Unpackage RPM and copy library file into firefox directory

    mkdir tmp
    cd tmp
    rpm2cpio ../libstdc++-4.3.0-8.i386.rpm | cpio -i --make-directories
    cp usr/lib/libstdc++.so.6.0.10 ../firefox-4.0rc2/libstdc++.so.6

Running

Firefox should run just fine now :

firefox-4.0rc2/firefox &
Share and Enjoy!