JAlbum libc error

THIS IS A TECHNICAL POST

Hoping to be helpful to my readers and not only, here is a short workaround for a problem I noticed this morning using the wonderful JAlbum. Shortly, JAlbum is a Java Web Album generator, really well done and completely costomizable. I usef it for the IYC 2005 galleries section.

I was looking for the new version when I noticed the old one, still installed on my nice Linux Gentoo powered laptop did not start and gave out some nasty errors, concerning glibc linking problems. The new version did not even install, as the installer binary had the same problem.

Well, since I just did a major update of my box, actually reemerging the whole system and world sets (not without pain, by the way) I understood something happened. And in fact, crawling the web, I stumbled upon some pages (this one and this other), where it was clearly exposed how the two USE keyword nptl and ntplonly i use for reemerging my system just collided with some java applications.

Not really happy to reemerge glibc just to let JAlbum work, even if it’s a program worth the effort, I followed the instructions on the second page I already mentioned.

This is what I actually did in order to let the installer start and then run the program:


$ hexedit JAlbuminstall.bin

In the hexeditor I looked (pressing the / [slash] ) for the string “export LD_ASSUME_KERNEL” and substituted the export word with #xport as said in the mentioned page.

Doing so, a simple
$ sh ./JAlbuminstall.bin
worked smooth letting the install program run.

I repeated the hexedit trick with the JAlbum executable once installed and I had a shiny new 6.4 version.

I hope this could turn out to be useful to someone! And, by the way, feel free to contact me if you need further help on this topic!

UPDATE: as Kelly pointed out in the comments, there is a much simplier way to do the trick, using regular expressions. As I simply can’t use them, I copy&paste what he wrote! Thanks Kelly!

cat JAlbuminstall.bin | sed -e ā€™s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/gā€™ > JAlbuminstall2.bin

Then install from the second bin file.

If you run then the binary file and not the .jar, i suppose you have to do the same to JAlbum.

the “cat … | sed … > … ” does automatically the same thing (but much cleaner and with elegance!) I did with hexeditor… šŸ™‚

3 thoughts on “JAlbum libc error

  1. You have GOT to be kidding me. This is insane. If this is what it takes to install or run this software I don’t want to use it. I’ve been gryping about Linux, but this sounds like poor programming/testing. These idiots just didn’t do any testing on machines that did not include their personal boxes. I’m ashamed to say that I use this software.

    BAH!!!

  2. It looks like the following command works too.

    cat JAlbuminstall.bin | sed -e ‘s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/g’ > JAlbuminstall2.bin

    Then install from the second bin file.
    Forgive the earlier rant. Thank you very much for your help.

  3. yeah! you are right. actually have not much experience and skill with regular expressions.. so your way is much cleaner than mine… i’ll update the post! šŸ™‚

Comments are closed.