![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SuSE SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| stupid question: the path | Leilah | AIX | 4 | 04-25-2008 04:44 AM |
| $PWD shows absolute path vs path w/symbolic links | kornshellmaven | Shell Programming and Scripting | 3 | 06-13-2007 01:15 PM |
| Question about the hareware path and device name | bluepluto | HP-UX | 1 | 03-13-2007 08:32 AM |
| Question about Restricting Search path of FIND to current directory | super_duper_guy | UNIX for Dummies Questions & Answers | 2 | 10-17-2005 10:10 AM |
| Question regarding the PATH | owange_county | UNIX for Dummies Questions & Answers | 1 | 10-12-2005 03:10 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
PATH question
How does one decide where to un-zip a tar file ? I've downloaded one and placed it in my own directory but it has created USR and various sub libraries such as BIN.
In trying to run the executable, I'm getting hercules: error while loading shared libraries: libherc.so: cannot open shared object file: No such file or directory This module is indeed in a library within the structure that I created. |
|
||||
|
This is the file that the executable is complaining about
-rwxr-xr-x 1 stan users 111229 2009-05-12 09:22 libhercu.so PWD shows this /home/stan/usr/local/herc64/hercules-SVN-5345/bin The library that libhercu.so is in is LIB under hercules-SVN-5345 - is that my problem here ? Last edited by stansaraczewski; 05-14-2009 at 12:27 AM.. |
|
||||
|
Quick Solution: In the terminal, type: Code:
cd ~ mkdir -p .local cd .local cp -rf ~/usr/local/* ./ echo 'export PATH="$PATH":"$HOME/.local/bin"' >> ~/.bashrc echo 'setenv PATH "$PATH":"$HOME/.local/bin"' >> ~/.cshrc echo 'export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"$HOME/.local/lib"' >> ~/.bashrc echo 'setenv LD_LIBRARY_PATH "$LD_LIBRARY_PATH":"$HOME/.local/lib"' >> ~/.cshrc Then close and reopen the terminal, and then type: Code:
hercules More Complex Answer: The ".so" file is a dynamic library (a.k.a. "shared object", hence the ".so" extension). Whereas the PATH environment variable is used for finding executable files, the LD_LIBRARY_PATH environment variable is used by the dynamic loader for finding dynamic libraries. These days, almost all executables depend on one or more dynamic libraries for some of their functionality. |
|
||||
|
I must defer on a response till I download the correct and complete Hercules package tonite. I located a .rpm version and all may be well as it did appear that some items were missing.
Afterwards all may be well this time. I will test, and followup with a response. Thank you very much for your assistance. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|