LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-10-2004, 12:29 AM   #1
kirti
LQ Newbie
 
Registered: Jun 2004
Posts: 9

Rep: Reputation: 0
Error regarding libstdc++-libc6.1-2.so.3


Hello friends!
I am novice to this forum as well novice to Linux. While running one application i have faced the following error

s51 error while loading shared libraries: libstdc++-libc6.1-2.so.3: cannot open shared object file: No such file or directory
where s51 is a executable program it is basically a simulator.
So what could be the solution for this. From where i could get this file. Please, Please help me ASAP becaz my whole project struct at this point.
Thanks in advance!!
 
Old 06-10-2004, 04:51 AM   #2
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
the error is quite clear, the file isn't on your system or isn't where it is supposed to be, what distro do you use, SUSE, Mandrake, Slackware, RedHat...? Plz fill that in on your form, otherwise it is hard to help.

There are 2 things you could do:
1* use your package system (urpmi (rpm-based distro's ), apt-get (debian-based), swaret (slack)) to install a package called libstdc++ (if that doesn't work you'll need libstdc++-devel). I can't help on how to use your package system till you tell me what distro you're on...

2* Compile it from scratch. I would only do this if it doesn't work using the package system. Often compiling software isn't hard, but in the beginning it will look frightening. Even worse, it is discouraged to build this library on its own.

So, just give me your distro and I'll give you a straight answer .

greetingz,
elluva
 
Old 06-10-2004, 06:00 AM   #3
kirti
LQ Newbie
 
Registered: Jun 2004
Posts: 9

Original Poster
Rep: Reputation: 0
I am using Redhat Linux 9.0

Thank you for responding Elluva! I am using redhat linux 9.0. On my pc GCC and GDB works properly but as per my project request i have downloaded SDCC compiler . And from which i am using SDCDB debugger. while running that it is giving the above error. So now is it possible to solve my query. Please reply me.
 
Old 06-10-2004, 07:14 AM   #4
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
then there should be a package on one of your install cd's. It should be named libstdc++<version>.rpm. Just do

$ su
# rpm --install libstdc++<version>.rpm

from the directory where the package is located. I am quite sure this package will be on one the redhat cdroms.
 
Old 06-10-2004, 08:19 AM   #5
kirti
LQ Newbie
 
Registered: Jun 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you very much!

Thank you elluva! Actually before your mail i got the answer from ibiblio site. Where i found the downloadable version of same file. But now i have a different problem. I am invoking the debugger SDCDB through JSP page but it is not working. Before that when i invoked compiler it worked properly but the debugger is not. What could be the problem. Could you find out some solution? Please reply.
 
Old 06-10-2004, 08:29 AM   #6
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
I don't really understand what you mean, can you explain a little more plz...
If this has something to do with the compiler or debugger itself, you should ask this in the programming forum, then I really can't help you with this (I had never even heard of that compiler )

good luck,
elluva
 
Old 06-11-2004, 02:14 AM   #7
kirti
LQ Newbie
 
Registered: Jun 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Running a debugger from JSP.....

Thanks for reply! Actually What i am doing is that i am invoking the debugger SDCDB( it is like GDB only) from JSP page. But it is not invoking that. Do i have to find out how shell scripting is written for GDB invocation. Could you help me for thats?? Please Please do it. Or suggest some other forums.
After running the JSP page it shows
" sending request to host". Here is my code.

<%@ page import="java.util.*" %> <%@ page import="java.io.*" %> <%@ page import="java.lang.*" %> <html> <head> </head> <body>
Just testing ....................
<% boolean display = true;
String[] cmd={"/usr/local/bin/sdcdb","/usr/local/kirti/h.cdb"};
int ch; String s,s1; display = false;
Process p = Runtime.getRuntime().exec(cmd);
try{ p.waitFor(); }catch (Exception e) {%> ERROR <%}%>
Executed <% BufferedReader stdInput = new BufferedReader(new
InputStreamReader(p.getInputStream()));
BufferedReader stdError = new BufferedReader(new
InputStreamReader(p.getErrorStream())); // read the output from the command
try{out.println("Here is the standard output of the command:\n");
while ((s = stdError.readLine()) != null) { out.println(s); out.println(" \n\n\n");}} catch(IOException t) { t.printStackTrace(); }
while((s1=stdError.readLine())!=null){ out.println(s1); }%>
</body> </html>Do i have to find out how shell scripting is written for GDB invokation.
 
Old 06-11-2004, 02:45 AM   #8
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Nope, can't help you with this, try the programming forum...

good luck,
elluva
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: libstdc++-libc6.2-2 .so.3 ceenu99 Linux - Software 2 07-15-2005 12:53 AM
error while loading shared libraries: libstdc++-libc6.1-1.so.2 pikiemeow Linux - Software 2 10-27-2004 09:49 PM
libstdc++-libc6.2-2.so.3 tommytomato Linux - General 1 12-12-2003 02:07 AM
Maple 9 Installation Error (libstdc++-libc6.1-1.so.2) mmr_85 Linux - Software 1 11-30-2003 01:23 PM
libstdc++-libc6.2? jpbarto Linux From Scratch 1 04-13-2003 10:35 PM


All times are GMT -5. The time now is 11:07 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration