2
I tried to compile Firefox 24 on RHEL 5.9 and ran into dependency hell.
I have no root privileges and I compiled several of the dependencies (glib, cairo and whatnot) in one of my directories. I failed on compiling pango (1.20.5) with this error I could not manage to resolve: /work/usr/lib/libcairo.so: undefined reference to `XRenderFindVisualFormat'.
Now my question is: is it possible to compile FF24 on RHEL 5.9 and if so, can you recommend a procedure how to go about systematically?
Edit:
I tried the gentoo prefix solution: After installing prefix with bootstrap-prefix.sh to /work/gentoo:
- Added a line
USE="-*"
to$EPREFIX/etc/portage/make.conf
- Added a line PYTHON_TARGETS="python2_7" to
$EPREFIX/etc/portage/make.conf
- nasm on host was too old (NASM version 0.98.39 compiled on Jul 12 2006), so building media-libs/libjpeg-turbo-1.3.1 failed.
emerge nasm
fixed it. emerge --autounmask-write '<media-libs/mesa-10.2'
emerge --autounmask-write firefox
To start firefox, I use a script:
#!/bin/bash
PREFIX=/work/gentoo
COMMAND="${PREFIX}/usr/lib/firefox/firefox $1"
env -i HOME=$HOME TERM=$TERM USER=$USER $PREFIX/bin/bash -l -c "export DISPLAY=:0.0 ; ${COMMAND}"
Unfortunately, I can't pass a file to that script so firefox opens the file automatically. Plus - and that's a more serious problem - scrolling with the mouse wheel is buggy and switching tabs by clicking on them does not work. So all the effort was in vain )o:
What happens when you pass a file to Firefox? Also, I don't think resetting the environment is necessary -- in a normal shell (i.e. not prefix) just call the direct path to the firefox binary. – Wilfred Hughes – 2014-07-14T08:58:47.260