Libtcl.so.0 error


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Libtcl.so.0 error
# 1  
Old 10-10-2014
Libtcl.so.0 error

Hi guys,

I have a Red Hat Enterprise Linux Server release 6.5 (Santiago) machine. When ever I try to switch user from root, I get the following error:

Code:
[root@server ~]# su - test1
/app/modules/0/bin/modulecmd: error while loading shared libraries: libtcl.so.0: cannot open shared object file: No such file or directory
/app/modules/0/bin/modulecmd: error while loading shared libraries: libtcl.so.0: cannot open shared object file: No such file or directory
server [3:03pm] [/home/test1] -> exit

This is what I have installed regarding tcl :

Code:
[root@server ~]# rpm -qa | grep tcl
tcl-8.5.7-6.el6.i686
tcl-devel-8.5.7-6.el6.i686
tcl-8.5.7-6.el6.x86_64

Any idea how to fix this error ?
# 2  
Old 10-10-2014
My guess is that something the PAM stack on your host is excuting modulecmd (a tcl program) and that it has a depending on a library name that is "off" from the the library you have installed. I would check with your systems administrator.
# 3  
Old 10-10-2014
Either that or you need a 'ld' linker supporting variable like $LD_LIBRARY_PATH or $LD_RUN_PATH or $DT_RUNPATH updated to point also to the dir where your lib resides. See man ld:
Code:
       -rpath=dir
       Add a directory to the runtime library search path.    This is used when linking an ELF
       executable with shared objects.  All -rpath arguments are concatenated and passed to
       the runtime linker, which uses them to locate shared objects at runtime.  The -rpath
       option is also used when locating shared objects which are needed by shared objects
       explicitly included in the link; see the description of the -rpath-link option.  If
       -rpath is not used when linking an ELF executable, the contents of the environment
       variable "LD_RUN_PATH" will be used if it is defined.
 
       The -rpath option may also be used on SunOS.  By default, on SunOS, the linker will
       form a runtime search patch out of all the -L options it is given.  If a -rpath option
       is used, the runtime search path will be formed exclusively using the -rpath options,
       ignoring the -L options.  This can be useful when using gcc, which adds many -L
       options which may be on NFS mounted file systems.
 
       For compatibility with other ELF linkers, if the -R option is followed by a directory
       name, rather than a file name, it is treated as the -rpath option.
 
       -rpath-link=dir
       When using ELF or SunOS, one shared library may require another.  This happens when an
       "ld -shared" link includes a shared library as one of the input files.
 
       When the linker encounters such a dependency when doing a non-shared, non-relocatable
       link, it will automatically try to locate the required shared library and include it
       in the link, if it is not included explicitly.  In such a case, the -rpath-link option
       specifies the first set of directories to search.  The -rpath-link option may specify
       a sequence of directory names either by specifying a list of names separated by
       colons, or by appearing multiple times.
 
       This option should be used with caution as it overrides the search path that may have
       been hard compiled into a shared library. In such a case it is possible to use
       unintentionally a different search path than the runtime linker would do.
 
       The linker uses the following search paths to locate required shared libraries:
 
       1.  Any directories specified by -rpath-link options.
 
       2.  Any directories specified by -rpath options.  The difference between -rpath and
           -rpath-link is that directories specified by -rpath options are included in the
           executable and used at runtime, whereas the -rpath-link option is only effective
           at link time. Searching -rpath in this way is only supported by native linkers and
           cross linkers which have been configured with the --with-sysroot option.
 
       3.  On an ELF system, for native linkers, if the -rpath and -rpath-link options were
           not used, search the contents of the environment variable "LD_RUN_PATH".
 
       4.  On SunOS, if the -rpath option was not used, search any directories specified
           using -L options.
 
       5.  For a native linker, the search the contents of the environment variable
           "LD_LIBRARY_PATH".
 
       6.  For a native ELF linker, the directories in "DT_RUNPATH" or "DT_RPATH" of a shared
           library are searched for shared libraries needed by it. The "DT_RPATH" entries are
           ignored if "DT_RUNPATH" entries exist.
 
       7.  The default directories, normally /lib and /usr/lib.
 
       8.  For a native linker on an ELF system, if the file /etc/ld.so.conf exists, the list
           of directories found in that file.
 
       If the required shared library is not found, the linker will issue a warning and
       continue with the link.

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Print Error in Console and both Error & Output in Log file - UNIX

I am writing a shell script with 2 run time arguments. During the execution if i got any error, then it needs to redirected to a error file and in console. Also both error and output to be redirected to a log file. But i am facing the below error. #! /bin/sh errExit () { errMsg=`cat... (1 Reply)
Discussion started by: sarathy_a35
1 Replies

2. Shell Programming and Scripting

IF section problem. syntax error: unexpected end of file error

Hello, I have another problem with my script. Please accept my apologies, but I am really nooby in sh scripts. I am writing it for first time. My script: returned=`tail -50 SapLogs.log | grep -i "Error"` echo $returned if ; then echo "There is no errors in the logs" fi And after... (10 Replies)
Discussion started by: jedzio
10 Replies

3. Solaris

Rpcinfo: can't contact portmapper: RPC: Authentication error; why = Failed (unspecified error)

I have two servers with a fresh install of Solaris 11, and having problems when doing rpcinfo between them. There is no firewall involved, so everything should theoretically be getting through. Does anyone have any ideas? I did a lot of Google searches, and haven't found a working solution yet. ... (2 Replies)
Discussion started by: christr
2 Replies

4. Shell Programming and Scripting

What is this error log = hda: irq timeout: error=0x00 and how to solve?

what is this error log = hda: irq timeout: error=0x00 and how to solve? every day upon checking the logs i see this error. hda: irq timeout: error=0x00 hda: irq timeout: error=0x00 hda: irq timeout: error=0x00 hda: irq timeout: error=0x00 hw_client: segfault at 0000000000000046 rip... (3 Replies)
Discussion started by: avtalan
3 Replies

5. UNIX for Dummies Questions & Answers

> 5 ")syntax error: operand expected (error token is " error

im kinda new to shell scripting so i need some help i try to run this script and get the error code > 5 ")syntax error: operand expected (error token is " the code for the script is #!/bin/sh # # script to see if the given value is correct # # Define errors ER_AF=86 # Var is... (4 Replies)
Discussion started by: metal005
4 Replies

6. Solaris

fssnap error :snapshot error: File system could not be write locked

Hi Guys. This is part of my filesystem structure : Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 47G 5.2G 42G 12% / /devices 0K 0K 0K 0% /devices ctfs 0K 0K 0K 0% ... (2 Replies)
Discussion started by: aggadtech08
2 Replies

7. AIX

nim mksysb error :/usr/bin/savevg[33]: 1016,07: syntax error

-------------------------------------------------------------------------------- Hello, help me please. I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? : Command : failed stdout: yes stderr: no... (9 Replies)
Discussion started by: astjen
9 Replies

8. UNIX for Advanced & Expert Users

VSI-FAX error - Cannot login to server and Connecto error to host

I encounters a VSIFAX related error: vfxstat: Cannot login to server on rsac3: Connect error to host 172.16.1.45: Invalid argument It started happening last night with a core dump. Then we can't start VSIFAX again. I am runing VSI-FAX 4.2 on AIX box (0 Replies)
Discussion started by: b_jin
0 Replies

9. UNIX for Dummies Questions & Answers

awk Shell Script error : "Syntax Error : `Split' unexpected

hi there i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies

10. UNIX for Dummies Questions & Answers

Error: Internal system error: Unable to initialize standard output file

Hey guys, need some help. Running AIX Version 5.2 and one of our cron jobs is writing errors to a log file. Any ideas on the following error message. Error: Internal system error: Unable to initialize standard output file I'm guessing more info might be needed, so let me know. Thanks (2 Replies)
Discussion started by: firkus
2 Replies
Login or Register to Ask a Question