Bizzarrely (to me) /usr/lib/firefox is a real directory, not a symlink to the current version. Hmm. So it seems I need to use a firefox-version-specific-fix for gxine. Which is rubbish, obviously.
So, here's a shellscript I use to launch gxine (I've called it gxine_hack.sh). Also attached.
Cheers, al.
--
gxine_hack.sh 20100502
--
#! /bin/sh
# gxine_hack.sh by allankelly AT gmail DOT com
# 2010-05-02
# Under Ubuntu 10.04 LTS, gxine install fails to run due to dependency on
# Firefox library libmozjs.so. This library is installed under version-specific
# Firefox dir under /usr/lib. So, code below gets the highest numeric
# /usr/lib/firefox-* directory and appends it to LD_LIBRARY_PATH, then runs
# gxine. This should continue to work through Firefox upgrades.
for DIR in `ls -d /usr/lib/firefox-* | grep -v addons | sort -n`
do
FF_LIB_DIR=$DIR
done
if [ -z $LD_LIBRARY_PATH ]
then
export LD_LIBRARY_PATH=/usr/lib/firefox && gxine
else
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox && gxine
fi
I have this in 10.04 LTS, for gxine:
akelly@big-blue:~$ gxine
gxine: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory
The fix in the posts above doesn't work because:
akelly@big-blue:~$ find /usr/lib -name "libmozjs*" firefox- 3.6.3/libmozjs. so xulrunner- 1.9.2.3/ libmozjs. so
/usr/lib/
/usr/lib/
Bizzarrely (to me) /usr/lib/firefox is a real directory, not a symlink to the current version. Hmm. So it seems I need to use a firefox- version- specific- fix for gxine. Which is rubbish, obviously.
So, here's a shellscript I use to launch gxine (I've called it gxine_hack.sh). Also attached.
Cheers, al.
--
gxine_hack.sh 20100502
--
#! /bin/sh PATH=/usr/ lib/firefox && gxine PATH=$LD_ LIBRARY_ PATH:/usr/ lib/firefox && gxine
# gxine_hack.sh by allankelly AT gmail DOT com
# 2010-05-02
# Under Ubuntu 10.04 LTS, gxine install fails to run due to dependency on
# Firefox library libmozjs.so. This library is installed under version-specific
# Firefox dir under /usr/lib. So, code below gets the highest numeric
# /usr/lib/firefox-* directory and appends it to LD_LIBRARY_PATH, then runs
# gxine. This should continue to work through Firefox upgrades.
for DIR in `ls -d /usr/lib/firefox-* | grep -v addons | sort -n`
do
FF_LIB_DIR=$DIR
done
if [ -z $LD_LIBRARY_PATH ]
then
export LD_LIBRARY_
else
export LD_LIBRARY_
fi