Ubuntu / Can't run installer / "libc.so.6: cannot open shared object" and "IllegalArgumentException: Malformed \uxxxx encoding"

Bertgold

Joined: 2006-10-21
Posts: 12
Posted: Tue, 2007-08-28 17:47

Hi!

My first try was the Version with Java VM:

$ ./GalleryRemote.1.5.Linux.VM.bin
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
nawk: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Launching installer...

grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/tmp/install.dir.24991/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

So as you can see it fails very early

So I has tried the version without Java VM:

$ ./GalleryRemote.1.5.Linux.NoVM.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
nawk: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Launching installer...

grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/usr/lib/jvm/java-6-sun/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

So you can see, that is the same problem.

According to http://forum.ubuntuusers.de/goto?post=817637 I tried to transform the shell script without vm:

$ cp ./GalleryRemote.1.5.Linux.NoVM.bin ./GalleryRemote.1.5.Linux.NoVM.bin.bak

$ cat ./GalleryRemote.1.5.Linux.NoVM.bin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > ./GalleryRemote.1.5.Linux.NoVM.bin

Now I'm one step in the right direction, but my installer don't want to run:

$ ./GalleryRemote.1.5.Linux.NoVM.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

An internal LaunchAnywhere application error has occured and this application cannot proceed. (LAX)

Stack Trace:
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at java.util.Properties.loadConvert(Properties.java:552)
        at java.util.Properties.load0(Properties.java:375)
        at java.util.Properties.load(Properties.java:325)
        at com.zerog.common.java.util.PropertiesUtil.loadProperties(DashoA8113)
        at com.zerog.lax.LAX.<init>(DashoA8113)
        at com.zerog.lax.LAX.main(DashoA8113)

Has anybody an idea, what the problem is?

I'm using Kubuntu 7.04

$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)

$ uname -a
Linux mypc 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux

Thanks a lot

 
Bertgold

Joined: 2006-10-21
Posts: 12
Posted: Tue, 2007-08-28 18:01

The Jar-File-Version runs.

 
Bertgold

Joined: 2006-10-21
Posts: 12
Posted: Tue, 2007-08-28 18:07

Same problem with running that programm:

$ Gallery_Remote
nawk: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/usr/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

$ cp Gallery_Remote Gallery_Remote.bak

$ cat Gallery_Remote.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > Gallery_Remote

$ Gallery_Remote
An internal LaunchAnywhere application error has occured and this application cannot proceed. (LAX)

Stack Trace:
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at java.util.Properties.loadConvert(Properties.java:552)
        at java.util.Properties.load0(Properties.java:375)
        at java.util.Properties.load(Properties.java:325)
        at com.zerog.common.java.util.PropertiesUtil.loadProperties(DashoA8113)
        at com.zerog.lax.LAX.<init>(DashoA8113)
        at com.zerog.lax.LAX.main(DashoA8113)

Perhaps anybody can help...

 
Bertgold

Joined: 2006-10-21
Posts: 12
Posted: Tue, 2007-08-28 18:13

But it is possible to start Gallery Remote with one simple call:
$ java -jar GalleryRemote.jar

 
david_syer

Joined: 2009-04-13
Posts: 1
Posted: Mon, 2009-04-13 16:25

When I run the .jar file it is just an installer. The error from nawk comes later when you run the installed script. I fixed it by removing a section from the Gallery_Remote script (which was an avowed hack anyway, and irrelevant if your kernel is modern enough) - the section to remove is the "if" block following a comment "# LD_ASSUME_KERNEL for Native POSIX Threading Library on some Linux distros". Line 1478 in the version I have.