The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux > SuSE
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-13-2009
stansaraczewski stansaraczewski is offline
Registered User
  
 

Join Date: Jun 2006
Location: Sunny Southern California
Posts: 21
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.
  #2 (permalink)  
Old 05-13-2009
devtakh devtakh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore
Posts: 514
Does the direcories that were created have all the permission for you to able to read/write a file?
  #3 (permalink)  
Old 05-14-2009
stansaraczewski stansaraczewski is offline
Registered User
  
 

Join Date: Jun 2006
Location: Sunny Southern California
Posts: 21
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..
  #4 (permalink)  
Old 05-14-2009
Michael Safyan Michael Safyan is offline
Registered User
  
 

Join Date: May 2009
Posts: 9
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.
  #5 (permalink)  
Old 05-14-2009
stansaraczewski stansaraczewski is offline
Registered User
  
 

Join Date: Jun 2006
Location: Sunny Southern California
Posts: 21
Entered each of the lines - closed the terminal, reopened it - and -

stan@linux-3kun:~> hercules
bash: hercules: command not found
stan@linux-3kun:~>
  #6 (permalink)  
Old 05-14-2009
Michael Safyan Michael Safyan is offline
Registered User
  
 

Join Date: May 2009
Posts: 9
Would you mind posting the results of executing the following commands?


Code:
echo "$PATH"
echo "$LD_LIBRARY_PATH"
ls "~/.local/bin"
ls "~/.local/lib"

  #7 (permalink)  
Old 05-14-2009
stansaraczewski stansaraczewski is offline
Registered User
  
 

Join Date: Jun 2006
Location: Sunny Southern California
Posts: 21
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0