Error "expr: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory" on Linux® for zSeries®
 Technote (FAQ)
 
Problem
The following errors might appear when running Java™ on Linux for zSeries:

expr: 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
/usr/bin/expr: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/usr/bin/expr: 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
Error: can't find libjava.so
 
Cause
Older Java versions have problems with floating stacks of glibc's that have been optimized for Intel® i686 architecture
 
Solution
Comment out the following line in the JAVA_HOME/bin/java file:
export LD_ASSUME_KERNEL=2.2.5

This line disables the use of floating stacks on RedHat® distributions; you must comment out the line to enable floating stacks. We recommend that you enable floating stacks if this feature is supported in your hardware.

Do not do this unless all of the following configuration elements match.
  • Running Linux on S/390®,
  • Kernel version is 2.4 or higher, or
  • glibc version 2.2.1 or higher

These commands return the relevant results.
uname -m
uname -r
rpm -qv glibc
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Java SDK
Operating system(s): Linux
Software version: 4.0
Software edition:
Reference #: 1163566
IBM Group: Software Group
Modified date: Mar 17, 2004