LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2011, 03:43 AM   #1
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Rep: Reputation: 16
Error while running script


Hello Friends,

I have Debian Lenny Installed in my server and i am trying to run one script but its not running but to the below error

Quote:
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Please help me to sorted out the issue The library "libstdc++.so.6" is in /usr/lib but system not able to load it as per the error message.

Thanks in advance,
 
Old 11-24-2011, 04:28 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Maybe the utility you're running in the script is a different architecture to the shared library, this is a common problem when running 32bit apps on a 64bit host. Try using the 'file' command to determine which architecture they both are and whether they match.
 
1 members found this post helpful.
Old 12-07-2011, 11:58 PM   #3
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Original Poster
Rep: Reputation: 16
Hello KBP,

Yeah i also checked the same thing in server and i think it is not compatible with the library.
 
Old 12-08-2011, 03:17 PM   #4
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
export LD_LIBRARY_PATH=/usr/lib

try that then run the "script"
 
Old 12-16-2011, 02:40 AM   #5
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Original Poster
Rep: Reputation: 16
Hello Trey85stang,

Sorry for the late reply but i tried your solution but it not works for me. do you have any other way to sortout this issue.

Thank You,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
error running shell script roaan General 5 01-31-2010 03:16 PM
Error while running the script imkornhulio Programming 5 09-17-2008 07:21 PM
why am getting error ksh: syntax error: `fi' unexpected while running script deb4you Linux - Newbie 4 09-06-2008 08:37 AM
error in running the script bhandu Linux - Newbie 4 07-03-2007 09:24 AM
i get an error message running php script inside a cgi script. repolona Linux - Software 0 02-22-2007 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration