Results 1 to 6 of 6
Hello,
I'm new to this forum.. Need some suggestion on the below error. Feedback will be really appreciated.
When I try to run a script it points to library which ...
- 10-19-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 2
wrong ELF class: ELFCLASS64
Hello,
I'm new to this forum.. Need some suggestion on the below error. Feedback will be really appreciated.
When I try to run a script it points to library which looks like not compatible with this module.
Is there any way to rectify the issue.
[root~]# /usr/local/bin/tstart.tcl
tclent: error while loading shared libraries: /usr/local/lib/tnm3.0.0.so: wrong ELF class: ELFCLASS64
Thanks inadvance
Manikandan KS
- 10-19-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
Where did that /usr/local/lib/tnm3.0.0.so library come from? Is it 64-bit, and you are running 32-bit OS/tcl, or vice versa?
- 10-19-2011 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
It sounds like your tcl stack is 32-bit, but the library it is trying to load is a 64-bit one. Are you running 32-bit, or 64-bit Linux?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 10-20-2011 #4Just Joined!
- Join Date
- Oct 2011
- Posts
- 2
Hi,
I'm running 64bit linux (Redhat 5.5).
How can we resolve this issue.. Do I need to manually install 32 bit library modules? If so can I find those modules in iso image?
- 10-20-2011 #5Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
I can't find a native package containing that library in the official RHEL repos. Where did you get that /usr/local/lib/tnm3.0.0.so library?
What happens if you were to move that file temporarily (e.g. "mv /usr/local/lib/tnm3.0.0.so /usr/local/lib/tnm3.0.0.so.bak", then run your tstart.tcl program?
Is there an interpreter listed at the top of tstart.tcl (usually the first line)? What is it?
How did you install tcl/tk?
And are you sure you are running 64-bit? Check for long-mode in your processor flags:
Code:grep ^flags /proc/cpuinfo|grep --color [[:space:]]lm
- 10-20-2011 #6Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Did you install the x86_64 version of TCL, or did you install the i686 (32bit) version? To find out, execute the command "yum list tcl" and it will show what's installed and what's available. On my system the output is:
Installed Packages
tcl.x86_64 1:8.5.7-6.el6 @sl
Available Packages
tcl.i686 1:8.5.7-6.el6 slSometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote