LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error regarding libstdc++-libc6.1-2.so.3 (https://www.linuxquestions.org/questions/linux-software-2/error-regarding-libstdc-libc6-1-2-so-3-a-191759/)

kirti 06-09-2004 11:29 PM

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!!

elluva 06-10-2004 03:51 AM

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

kirti 06-10-2004 05:00 AM

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.

elluva 06-10-2004 06:14 AM

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.

kirti 06-10-2004 07:19 AM

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.

elluva 06-10-2004 07:29 AM

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

kirti 06-11-2004 01:14 AM

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.

elluva 06-11-2004 01:45 AM

Nope, can't help you with this, try the programming forum...

good luck,
elluva


All times are GMT -5. The time now is 04:34 PM.