VERIFIED SOLUTION i
X

Can't start e2renderd on Redhat Linux

Issue

I'm trying to start e2render on a linux machine but it returns this error: 
 
[render]$ ./e2renderd 
./e2renderd: error while loading shared libraries: libXt.so.6: cannot open shared object file: No such file or directory 
 
I'm using Vault-6.1M0p0118 with Red Hat Linux 6.2 ( [/]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.2 (Santiago)) 
 
On my .bash_profile file I am exporting the LD_LIBRARY_PATH variable: 
 
export LD_LIBRARY_PATH="/opt/pb/e2vault/lib":$LD_LIBRARY_PATH 
 
Only e2render gives me this error, e2server and e2loader are running normally. 
 
[~]$ uname -r
2.6.32-220.el6.x86_64
 
glibc:
[]$ ./libc.so.6 GNU C Library stable release version 2.12, by Roland McGrath et al.
Compiled by GNU CC version 4.4.7 20120313 (Red Hat 4.4.7-3).
Compiled on a Linux 2.6.32 system on 2013-08-01.
The C stubs add-on version 2.1.2.
 
To start e2render I just type on console "./e2renderd"
 
The e2render is installed on /opt/pb/e2vault/render/

With LD_LIBRARY_PATH like this:
 
[]$ echo $LD_LIBRARY_PATH
/opt/pb/e2vault/lib:/usr/lib64:
 
I got this error:
[svc_conta@brtlvlts0143sl render]$ ./e2renderd
./e2renderd: error while loading shared libraries: libXt.so.6: wrong ELF class: ELFCLASS64


From e2renderd:
[]$ ldd e2renderd
        linux-gate.so.1 =>  (0x00bd6000)
        libicui18n.so.40 => /opt/pb/e2vault/lib/libicui18n.so.40 (0x00e67000)
        libicuuc.so.40 => /opt/pb/e2vault/lib/libicuuc.so.40 (0x009cb000)
        libicudata.so.40 => /opt/pb/e2vault/lib/libicudata.so.40 (0xf6a53000)
        libicuio.so.40 => /opt/pb/e2vault/lib/libicuio.so.40 (0x0037a000)
        libxerces-c-3.0.so => /opt/pb/e2vault/lib/libxerces-c-3.0.so (0x005b1000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00170000)
        libcrypto.so.0.9.8 => /opt/pb/e2vault/lib/libcrypto.so.0.9.8 (0x0018b000)
        libssl.so.0.9.8 => /opt/pb/e2vault/lib/libssl.so.0.9.8 (0x00518000)
        libg1licver.so => /opt/pb/e2vault/lib/libg1licver.so (0x00403000)
        libgs.so.8 => /opt/pb/e2vault/lib/libgs.so.8 (0x00fe9000)
        librt.so.1 => /lib/librt.so.1 (0x00110000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00bd7000)
        libm.so.6 => /lib/libm.so.6 (0x00119000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00143000)
        libc.so.6 => /lib/libc.so.6 (0x00cc4000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x002d1000)
        /lib/ld-linux.so.2 (0x00591000)
        libdl.so.2 => /lib/libdl.so.2 (0x00161000)
        libxerces-c-g1lm.so.27 => /opt/pb/e2vault/lib/libxerces-c-g1lm.so.27 (0x077e2000)
        libXt.so.6 => not found
        libSM.so.6 => not found
        libICE.so.6 => not found
        libXext.so.6 => not found
        libX11.so.6 => not found

From e2serverd:
[]$ ldd e2serverdafp
        linux-gate.so.1 =>  (0x00a50000)
        libicui18n.so.40 => /opt/pb/e2vault/lib/libicui18n.so.40 (0x00bd3000)
        libicuuc.so.40 => /opt/pb/e2vault/lib/libicuuc.so.40 (0x00110000)
        libicudata.so.40 => /opt/pb/e2vault/lib/libicudata.so.40 (0xf6a41000)
        libicuio.so.40 => /opt/pb/e2vault/lib/libicuio.so.40 (0x00862000)
        libxerces-c-3.0.so => /opt/pb/e2vault/lib/libxerces-c-3.0.so (0xf668d000)
        libcrypto.so.0.9.8 => /opt/pb/e2vault/lib/libcrypto.so.0.9.8 (0x0065e000)
        libssl.so.0.9.8 => /opt/pb/e2vault/lib/libssl.so.0.9.8 (0x002ed000)
        libz.so.1 => /opt/pb/e2vault/lib/libz.so.1 (0x00f48000)
        libg1licver.so => /opt/pb/e2vault/lib/libg1licver.so (0x00333000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x0023f000)
        librt.so.1 => /lib/librt.so.1 (0x0025a000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00420000)
        libm.so.6 => /lib/libm.so.6 (0x00263000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0028d000)
        libc.so.6 => /lib/libc.so.6 (0xf64e1000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x002ab000)
        libdl.so.2 => /lib/libdl.so.2 (0x002c6000)
        libxerces-c-g1lm.so.27 => /opt/pb/e2vault/lib/libxerces-c-g1lm.so.27 (0xf60ec000)
        /lib/ld-linux.so.2 (0x00591000)

Cause

I'm trying to start e2render on a linux machine but it returns this error: 
 
[render]$ ./e2renderd 
./e2renderd: error while loading shared libraries: libXt.so.6: cannot open shared object file: No such file or directory 
 
I'm using Vault-6.1M0p0118 with Red Hat Linux 6.2 ( [/]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.2 (Santiago)) 
 
On my .bash_profile file I am exporting the LD_LIBRARY_PATH variable: 
 
export LD_LIBRARY_PATH="/opt/pb/e2vault/lib":$LD_LIBRARY_PATH 
 
Only e2render gives me this error, e2server and e2loader are running normally. 
 
[~]$ uname -r
2.6.32-220.el6.x86_64
 
glibc:
[]$ ./libc.so.6 GNU C Library stable release version 2.12, by Roland McGrath et al.
Compiled by GNU CC version 4.4.7 20120313 (Red Hat 4.4.7-3).
Compiled on a Linux 2.6.32 system on 2013-08-01.
The C stubs add-on version 2.1.2.
 
To start e2render I just type on console "./e2renderd"
 
The e2render is installed on /opt/pb/e2vault/render/

With LD_LIBRARY_PATH like this:
 
[]$ echo $LD_LIBRARY_PATH
/opt/pb/e2vault/lib:/usr/lib64:
 
I got this error:
[svc_conta@brtlvlts0143sl render]$ ./e2renderd
./e2renderd: error while loading shared libraries: libXt.so.6: wrong ELF class: ELFCLASS64


From e2renderd:
[]$ ldd e2renderd
        linux-gate.so.1 =>  (0x00bd6000)
        libicui18n.so.40 => /opt/pb/e2vault/lib/libicui18n.so.40 (0x00e67000)
        libicuuc.so.40 => /opt/pb/e2vault/lib/libicuuc.so.40 (0x009cb000)
        libicudata.so.40 => /opt/pb/e2vault/lib/libicudata.so.40 (0xf6a53000)
        libicuio.so.40 => /opt/pb/e2vault/lib/libicuio.so.40 (0x0037a000)
        libxerces-c-3.0.so => /opt/pb/e2vault/lib/libxerces-c-3.0.so (0x005b1000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00170000)
        libcrypto.so.0.9.8 => /opt/pb/e2vault/lib/libcrypto.so.0.9.8 (0x0018b000)
        libssl.so.0.9.8 => /opt/pb/e2vault/lib/libssl.so.0.9.8 (0x00518000)
        libg1licver.so => /opt/pb/e2vault/lib/libg1licver.so (0x00403000)
        libgs.so.8 => /opt/pb/e2vault/lib/libgs.so.8 (0x00fe9000)
        librt.so.1 => /lib/librt.so.1 (0x00110000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00bd7000)
        libm.so.6 => /lib/libm.so.6 (0x00119000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00143000)
        libc.so.6 => /lib/libc.so.6 (0x00cc4000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x002d1000)
        /lib/ld-linux.so.2 (0x00591000)
        libdl.so.2 => /lib/libdl.so.2 (0x00161000)
        libxerces-c-g1lm.so.27 => /opt/pb/e2vault/lib/libxerces-c-g1lm.so.27 (0x077e2000)
        libXt.so.6 => not found
        libSM.so.6 => not found
        libICE.so.6 => not found
        libXext.so.6 => not found
        libX11.so.6 => not found

From e2serverd:
[]$ ldd e2serverdafp
        linux-gate.so.1 =>  (0x00a50000)
        libicui18n.so.40 => /opt/pb/e2vault/lib/libicui18n.so.40 (0x00bd3000)
        libicuuc.so.40 => /opt/pb/e2vault/lib/libicuuc.so.40 (0x00110000)
        libicudata.so.40 => /opt/pb/e2vault/lib/libicudata.so.40 (0xf6a41000)
        libicuio.so.40 => /opt/pb/e2vault/lib/libicuio.so.40 (0x00862000)
        libxerces-c-3.0.so => /opt/pb/e2vault/lib/libxerces-c-3.0.so (0xf668d000)
        libcrypto.so.0.9.8 => /opt/pb/e2vault/lib/libcrypto.so.0.9.8 (0x0065e000)
        libssl.so.0.9.8 => /opt/pb/e2vault/lib/libssl.so.0.9.8 (0x002ed000)
        libz.so.1 => /opt/pb/e2vault/lib/libz.so.1 (0x00f48000)
        libg1licver.so => /opt/pb/e2vault/lib/libg1licver.so (0x00333000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x0023f000)
        librt.so.1 => /lib/librt.so.1 (0x0025a000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00420000)
        libm.so.6 => /lib/libm.so.6 (0x00263000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0028d000)
        libc.so.6 => /lib/libc.so.6 (0xf64e1000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x002ab000)
        libdl.so.2 => /lib/libdl.so.2 (0x002c6000)
        libxerces-c-g1lm.so.27 => /opt/pb/e2vault/lib/libxerces-c-g1lm.so.27 (0xf60ec000)
        /lib/ld-linux.so.2 (0x00591000)

Resolution

UPDATED: April 28, 2017


The more recent versions of RHEL seem to have dropped a number of the open source libraries that used to be automatically included in Linux builds. The customer will have to install the libXT.so.6 library on his system. This library is called in by the Ghostscript portion of the renderer. The process for installing libraries on RHEL seem to be different than for open source linux (and require a valid RHEL license based on what we have seen).
 
libXt.so.6 is a shared library needed by the X Window System . Redhat Linux is your test system or a customer system? can you check if the lib is on your system or not? general speaking, the lib will be under /usr/lib, you can find/check from there. you can check using what is inside the path : echo $LD_LIBRARY_PATH if the lib is there you can add into LD_LIBRARY_PATH, otherwise you need to install it first.
 
Things to check:
 
echo $LD_LIBRARY_PATH
confirm directory where libXt.so.6 is located on the server.  i.e., /usr/lib or /usr/lib64
 
run ldd against both e2serverd and e2renderd, compare to see what dependencies are missing

Engineering says that wrong ELF class error comes from using the 64 bit version (usr/lib64)
 
you might need to install the 32bit version of these libs and then point LD_Library_path to that directory.
$ ldd e2renderd
 
        linux-gate.so.1 =>  (0x003cc000)
        libicui18n.so.40 => /opt/pb/e2vault/lib/libicui18n.so.40 (0x00110000)
        libicuuc.so.40 => /opt/pb/e2vault/lib/libicuuc.so.40 (0x00292000)
        libicudata.so.40 => /opt/pb/e2vault/lib/libicudata.so.40 (0xf6aae000)
        libicuio.so.40 => /opt/pb/e2vault/lib/libicuio.so.40 (0x003c1000)
        libxerces-c-3.0.so => /opt/pb/e2vault/lib/libxerces-c-3.0.so (0x0063c000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x003cd000)
        libcrypto.so.0.9.8 => /opt/pb/e2vault/lib/libcrypto.so.0.9.8 (0x00e63000)
        libssl.so.0.9.8 => /opt/pb/e2vault/lib/libssl.so.0.9.8 (0x003e8000)
        libg1licver.so => /opt/pb/e2vault/lib/libg1licver.so (0x0042e000)
        libgs.so.8 => /opt/pb/e2vault/lib/libgs.so.8 (0x00fa9000)
        librt.so.1 => /lib/librt.so.1 (0x0051b000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x009ef000)
        libm.so.6 => /lib/libm.so.6 (0x00524000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0054e000)
        libc.so.6 => /lib/libc.so.6 (0x00adc000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x0056c000)
        /lib/ld-linux.so.2 (0x00591000)
        libdl.so.2 => /lib/libdl.so.2 (0x00587000)
        libxerces-c-g1lm.so.27 => /opt/pb/e2vault/lib/libxerces-c-g1lm.so.27 (0x0593b000)
        libXt.so.6 => /opt/pb/e2vault/lib/libXt.so.6 (0x005b1000)
        libSM.so.6 => /opt/pb/e2vault/lib/libSM.so.6 (0x00de7000)
        libICE.so.6 => /opt/pb/e2vault/lib/libICE.so.6 (0x04452000)
        libXext.so.6 => /opt/pb/e2vault/lib/libXext.so.6 (0x00cff000)
        libX11.so.6 => /opt/pb/e2vault/lib/libX11.so.6 (0x03674000)
        libXau.so.6 => /opt/pb/e2vault/lib/libXau.so.6 (0x0058c000)
        libXdmcp.so.6 => /opt/pb/e2vault/lib/libXdmcp.so.6 (0x00609000) [svc_conta@brtlvlts0143sl render]$ ./e2renderd

[]$ ps -eaf|grep e2

4302     23707     1  6 18:51 ?        00:00:00 ./e2renderd
4302     23910 23627  0 18:51 pts/1    00:00:00 grep e2
 

Environment Details

Linux

Downloads

  • No Downloads