Cannot find modules error when try to install

We’re installing PowerHub using its installer in Linux machine. The installer is built using InstallAnyWhere, that use JRE inside the installer.

The problem happen when we try to install as a user which its home directory is not mounted. We tried to set the HOME to other directory by setting up HOME environment variable. But, we got:
No module find error

Then we try to debug the installation by:
sh -x setup.bin
It come back with a lot of debug messages, and at the end we will see a line with:
CLASSPATH=/tmp/install.829388/jar/...
exec /tmp/install.829388/jre/bin/java ....

What we did is to manipulate the user home by
$export CLASSPATH=/tmp/install.829388/jar/...
/tmp/install.829388/jre/bin/java -Duser.home=/tmp/tmpdir ...

This way, we will force the installer to use different HOME directory

LD_ASSUME_KERNEL to set thread library that will be used by JVM

My first aquintance with this environment variables when I was installing Oracle 9i. The notes that written by Werner Puschitz is my oracle installation guidance, back on my early days. Now, I’ve to deal with the same environment variable again.

As a reminder to myself, the LD_ASSUME_KERNEL should be set as:
# Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9,
# RHEL AS 3, and RHEL AS 4 !!
# Use the "Linuxthreads with floating stacks" implementation instead of NPTL:
export LD_ASSUME_KERNEL=2.4.1 # for RH 9 and RHEL AS 3
export LD_ASSUME_KERNEL=export LD_ASSUME_KERNEL=2.4.19 # for RHEL AS 4

Honestly, I don’t know why we have to set differently between RH9 & RHEL AS 3 vs RHEL AS 4. I’ll do it anyway.

As I read from the Red Hat Release Notes, it says:
export LD_ASSUME_KERNEL=2.4.19 — Linuxthreads with floating stacks
export LD_ASSUME_KERNEL=2.2.5 — Linuxthreads without floating stacks

Once we set the environment, we can check which thread library that active, we can use ‘getconf GNU_LIBPTHREAD_VERSION’ command as follow:
bash-3.00$ unset LD_ASSUME_KERNEL
bash-3.00$ getconf GNU_LIBPTHREAD_VERSION
NPTL 2.3.4
bash-3.00$ export LD_ASSUME_KERNEL=2.4.1
bash-3.00$ getconf GNU_LIBPTHREAD_VERSION
linuxthreads-0.10
bash-3.00$ export LD_ASSUME_KERNEL=2.4.19
bash-3.00$ getconf GNU_LIBPTHREAD_VERSION
linuxthreads-0.10
bash-3.00$ export LD_ASSUME_KERNEL=2.5.2
bash-3.00$ getconf GNU_LIBPTHREAD_VERSION
NPTL 2.3.4
bash-3.00$ unset LD_ASSUME_KERNEL
bash-3.00$ getconf GNU_LIBPTHREAD_VERSION
NPTL 2.3.4

Information about NPTL can be found in wikipedia.

ITIL V3 On One Page

I always admire people that able to simplify things by putting together some knowledge into single page. I recently found this website: traffix.de, that contains ITIL information in one page.

I download it, and nail it in my office desk wall. So, it’ll remind and guide me how my work should like.

I wonder if there’s such form (knowledge on a page) for other department. Could you please let me know if you find it?

Subscribe to RSS Feed Follow me on Twitter!