gjs does not work. Error loading libmozjs.so.

Bug #492369 reported by mat
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gjs (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: gjs

I wanted to try out gjs. But when calling it I just get an error :
"gjs: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory"

This does not seem to appear in dependencies.

I installed libmozjs.so, but removed it when gjs still did not work.

Thanks for any help.

Ask for any further information ^^

ProblemType: Bug
Architecture: i386
CheckboxSubmission: f367638674c5874a029847d564f7cc04
CheckboxSystem: fb26fe92060d6ed3dbf15afb2eb325a4
Date: Fri Dec 4 17:18:45 2009
DistroRelease: Ubuntu 9.10
Package: gjs 0.4-0ubuntu2
ProcEnviron:
 LANGUAGE=en_GB.UTF-8
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
SourcePackage: gjs
Uname: Linux 2.6.31-15-generic i686

Related branches

Revision history for this message
mat (sabourin-mathieu) wrote :
Changed in gjs (Ubuntu):
status: New → Confirmed
Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

not exactly sure what the solution is but
$LD_LIBRARY_PATH=/usr/lib/xulrunner-1.9.1.5/ gjs
will get it running (actual library path may be different depending on xulrunner version)

Revision history for this message
mat (sabourin-mathieu) wrote :

Thanks for your answer.
But I still get the same error.
I checked and /usr/lib/xulrunner-1.9.1.5/ does contain libmozjs.so.

Actually behaviour is different with the line you gave. While using it as a "normal" user i get :
"bash: =/usr/lib/xulrunner-1.9.1.5/: No such file or directory"
When using it as super user I get same message as before.

Changed in gjs (Ubuntu):
importance: Undecided → Low
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gjs - 0.4-3ubuntu3

---------------
gjs (0.4-3ubuntu3) lucid; urgency=low

  * Rebuild with the current xulrunner version (lp: #492369)
 -- Sebastien Bacher <email address hidden> Wed, 13 Jan 2010 18:04:18 +0100

Changed in gjs (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Jeff Sparkes (jsparkes) wrote :

This bug is also found in the Lucid Alpha 2 release.

Revision history for this message
Jeff Sparkes (jsparkes) wrote :

Seems like the fix didn't work for my Lucid Alpha 2 install. libmozjs.so is referenced twice, but only
found once

jsparkes@jsparkes-ubuntu:~$ ldd /usr/bin/gjs
 linux-gate.so.1 => (0x00e53000)
 libgjs.so.0 => /usr/lib/libgjs.so.0 (0x00e26000)
 libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00d49000)
 librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x005fa000)
 libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00bc3000)
 libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00110000)
 libmozjs.so => not found
 libplds4.so => /usr/lib/libplds4.so (0x00c84000)
 libplc4.so => /usr/lib/libplc4.so (0x00b31000)
 libnspr4.so => /usr/lib/libnspr4.so (0x0054f000)
 libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00986000)
 libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00672000)
 libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x001c7000)
 libmozjs.so => /usr/lib/xulrunner-1.9.1.7/libmozjs.so (0x0031b000)
 libpcre.so.3 => /lib/libpcre.so.3 (0x005a8000)
 /lib/ld-linux.so.2 (0x00f55000)
 libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x00a3a000)
 libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x003e2000)
 libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00fdc000)
jsparkes@jsparkes-ubuntu:~$ gjs
gjs: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory
jsparkes@jsparkes-ubuntu:~$

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :
Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

dh_shlibdeps gives a whole lot of these

dpkg-shlibdeps: warning: couldn't find library libmozjs.so needed by debian/gjs/usr/bin/gjs-console (ELF format: 'elf64-x86-64'; RPATH: '').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

manually adding the current xulrunner LD_LIBRARY_PATH still works here (current version is 1.9.1.7), i'm not sure the best way to fix the gjs package properly though

$ gjs
gjs: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory
$ LD_LIBRARY_PATH=/usr/lib/xulrunner-1.9.1.7/ gjs
gjs>

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

looks like debian solves the libmozjs.so dilemma by providing updated versions of libmozjs for xulrunner 1.9.*, installing libmozjs.so.* into /usr/lib. i don't know what ubuntu's plans for a similar package are

Changed in gjs (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Chris Halse Rogers (raof) wrote :

This is fixed in gjs 0.4-4ubuntu1 with the addition of an RPATH to libgjs-gi.so and removing the unnecessary explicit link of libmozjs to gjs-console.

I've also added a tightly versioned dependency of libgjs0 on xulrunner, which should prevent gjs silently breaking on firefox upgrades.

Changed in gjs (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Alberto Ruiz (alberto.ruiz) wrote :

I've found this bug is also present in Karmic.

Revision history for this message
Jason McMullan (jason-mcmullan) wrote :

This bug affects me in Lucid as of April 5, 2010

NOTE: As a workaround, I can set LD_LIBRARY_PATH to point to /usr/lib/xulrunner-1.9.1,
and all works well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.