Firefox 3 for SLED 10
Wednesday, February 24, 2010 12:50:29 PM Etc/GMT+5
Well, your running SLED 10 SP2 because it's the best corporate linux desktop around.
SLED 10 SP2 only comes with GTK 2.8. Thats not a problem for most applications.
However, Firefox 3 is out and requires GTK 2.10. So how do you get Firefox on your SLED 10 desktop?
Well, it's not too bad. You can build GTK 2.12 into a new directory structure and link Firefox 3 directly to it
These instructions are based off an excellent article over here: http://blogs.warwick.ac.uk/mikewillis/entry/of_firefox_3/
I've added the GTK engines to give firefox a more natural look. And I chose to build GTK and all the other libraries directly under firefox.
We would not want to build and install GTK 2.12 into the normal paths becuase that would break alot.
I've chosen to install them right under the firefox directory in a folder called opt.
That way the entire firefox and all it's dependency are right in a neat little package
The bad news is, to build GTK 2.12 you'll need these too:
Glib - http://ftp.gnome.org/pub/gnome/sources/glib/2.16/glib-2.16.3.tar.bz2
Cairo - http://www.cairographics.org/releases/cairo-1.2.6.tar.gz
Pango - http://ftp.gnome.org/pub/GNOME/sources/pango/1.20/pango-1.20.3.tar.bz2
ATK - http://ftp.gnome.org/pub/gnome/sources/atk/1.22/atk-1.22.0.tar.bz2
GTK Engines - http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.15/gtk-engines-2.15.1.tar.bz2
Extract them out to a temp directory.
Now we need to set some environment variables.
Set these and make the path to the location you will be installing the new libraries.
$ export CPPFLAGS="-I/Firefox3/opt/gtk/include"
$ export LDFLAGS="-L/Firefox3/opt/gtk/lib"
$ export PKG_CONFIG_PATH=/Firefox3/opt/lib/pkgconfig:$PKG_CONFIG_PATH
$ export LD_LIBRARY_PATH=/Firefox3/opt/lib:$LD_LIBRARY_PATH
$ export PATH=/Firefox3/opt/bin:$PATH
Now it's time to build.....Build them in this order:
Glib, Cairo, Pango, ATK, GTK and then GTK Engines.
Go into each directory and build them with this command.
./configure --prefix=/firefox3/opt && make && make install
When your done you will have GTK 2.12 compiled into your new firex3/opt directory.
That firefox3/opt directory can be anywhere but as I noted, I choose to stick it right under firefox.
Now when we launch firefox we just need to tell it to use those new libraries. A simple script will do fine.
#!/bin/bash
export LD_LIBRARY_PATH=/firefox3/opt/lib
/firefox3/firefox
Now your ready to go!
Note: When building GTK, I was getting an error
libtool: unrecognized option `-o'
To get around this I simply removed the "test" sub directory from the Makefile file.
In the GTK source directory, edit each Makefile.* file and look for this
SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
Remove tests. Then run the build command.
Too lazy to build yourself?? Grab my build of Firefox 3 for SLED 10 SP2 right here
http://www.thesumit-grp.com/firefox3SLED10.zip
Just extract it to a directory of your choice. Edit the startfirefox3.sh file and
make sure the last part of this line points to where you extarcted it.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/$HOME/Downloads/firefox/opt/lib
Now, just run startfirefox3.sh !!!!
Posted in News
By

