LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-16-2002, 04:10 AM   #1
Gameon
Member
 
Registered: Jan 2002
Location: Kuopio, Finland
Distribution: Debian
Posts: 37

Rep: Reputation: 15
Libraries not found (but they're definitely there)


Hello!

I've been trying to install a few rpm-packages and run some programs. In both of these occasions either the rpm-manager or the program in question gives the following error message:

./programfile: error while loading shared libraries: libstdc++-libc6.1-2.so.3: cannot open shared object file: No such file or directory

or as for the rpm-manager (while installing xIrc):

error: failed dependencies:
libstdc++-libc6.1-2.so.3 is needed by xIrc-2.3.8-1

Now to my knowledge, this would mean that I would have to install the libstdc++ -libraries. Right? "rpm -q libstdc++" gives the following output:

libstdc++-2.96-112 (so I have that already installed)

Well of course to me this would seem that the package is out of date. But whenever I do a search for "libstdc++" OR "libstdc++-libc6.1-2.so.3" I'm directed to the "libstdc++-2.96-112" package. So it would seem that I AM up-to-date. But the problem still desists.

Have I missed something or perhaps forgotten something. I'm running Red Hat 7.3 and all the attempts to run/install the programs have made as root (su and su -) and a normal user. Thanks for any insight!

-- Erik
 
Old 08-17-2002, 04:13 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
If you are absolutely sure that you have a dependency listed in the output, you can always force the install. But if it's in the wrong place, or you actually DON'T have the file, this could cause some neat little problems.

I actually would get the source and compile it myself. You may still run into the same problem, but then you could more easily specify the location of the file in question.

Also, try this:
run LDCONFIG (in lowercase) and then updatedb. That will sometimes help to get the system to see the location of the files. A man rpm will also give you some better info on how to override error messages and force an install.

Cool
 
Old 08-17-2002, 04:43 AM   #3
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
Also make sure the path to those "missing" libraries is in
/etc/ld.so.conf if it's not add it and run ldconfig, then try installing again.
Hope that helps
-NSKL
 
Old 08-17-2002, 03:38 PM   #4
Gameon
Member
 
Registered: Jan 2002
Location: Kuopio, Finland
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
More problems

Well I've run into an another problem. I added the path to the conf-file, ran ldconfig and updatedb... to no effect.

I then tried to reinstall the source rpm containing the libraries. I receive the following error almost every time I try to install a source-rpm. There must be something wrong with my system... something I messed up during install.

The first part of the source rebuild goes very smoothly, but near the end ( or so I believe) it throws the following error.

====================================================
ln -s ../../gcc/../libiberty/obstack.c obstack.c
gcc -c -DIN_GCC -DHAIFA -g -DHAVE_CONFIG_H -I. -I../../gcc -I../../gcc/config -I../../gcc/../include obstack.c
gcc -DIN_GCC -DHAIFA -g -DHAVE_CONFIG_H -o cccp cccp.o cexp.o intl.o prefix.o version.o mbchar.o obstack.o ../libiberty/libiberty.a
rm -f cpp
ln cccp cpp
cd cp && make ../../../gcc/cp/parse.c
make[3]: Entering directory `/usr/src/redhat/BUILD/egcs/obj-i386-redhat-linux/gcc/cp'
expect 30 shift/reduce conflicts and 42 reduce/reduce conflicts.
cd ../../../gcc/cp; bison -d -o parse.c parse.y
parse.y:483: warning: previous rule lacks an ending `;'
parse.y:524: warning: previous rule lacks an ending `;'
parse.y:902: warning: previous rule lacks an ending `;'
parse.y:909: warning: previous rule lacks an ending `;'
parse.y:925: warning: previous rule lacks an ending `;'
parse.y:940: warning: previous rule lacks an ending `;'
parse.y:1177: warning: previous rule lacks an ending `;'
parse.y:1180: warning: previous rule lacks an ending `;'
parse.y:1334: warning: previous rule lacks an ending `;'
parse.y:1937: warning: previous rule lacks an ending `;'
parse.y:2023: warning: previous rule lacks an ending `;'
parse.y:2060: warning: previous rule lacks an ending `;'
parse.y:2092: warning: previous rule lacks an ending `;'
parse.y:2567: warning: previous rule lacks an ending `;'
parse.y:2743: warning: previous rule lacks an ending `;'
parse.y contains 30 shift/reduce conflicts and 42 reduce/reduce conflicts.
cd ../../../gcc/cp; grep '^#define[ ]*YYEMPTY' parse.c >>parse.h
make[3]: Leaving directory `/usr/src/redhat/BUILD/egcs/obj-i386-redhat-linux/gcc
/cp'
echo '/*WARNING: This file is automatically generated!*/' >tmp-objc-prs.y
sed -e "/^ifc$/,/^end ifc$/d" \
-e "/^ifobjc$/d" -e "/^end ifobjc$/d" \
../../gcc/c-parse.in >>tmp-objc-prs.y
../../gcc/move-if-change tmp-objc-prs.y ../../gcc/objc/objc-parse.y
cd ../../gcc/objc; \
`if [ -f /usr/src/redhat/BUILD/egcs/obj-i386-redhat-linux/gcc/../bison/bison ] ;
then case ../../gcc in /*) echo /usr/src/redhat/BUILD/egcs/obj-i386-redhat-linu
x/gcc/../bison/bison -L ../../gcc/../bison/ ;; *) echo /usr/src/redhat/BUILD/egc
s/obj-i386-redhat-linux/gcc/../bison/bison -L /usr/src/redhat/BUILD/egcs/obj-i38
6-redhat-linux/gcc/../../gcc/../bison/ ;; esac; else echo bison ; fi` -o objc-p
arse.c objc-parse.y
objc-parse.y:1711: warning: previous rule lacks an ending `;'
objc-parse.y:2070: warning: previous rule lacks an ending `;'
objc-parse.y:2387: warning: previous rule lacks an ending `;'
objc-parse.y:2393: warning: previous rule lacks an ending `;'
objc-parse.y contains 72 shift/reduce conflicts.
expected 66 shift/reduce conflicts
make[2]: *** [../../gcc/objc/objc-parse.c] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/egcs/obj-i386-redhat-linux/gcc
'
make[1]: *** [bootstrap-lean] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/egcs/obj-i386-redhat-linux/gcc
'
make: *** [bootstrap-lean] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.38031 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.38031 (%build)
(And then it returns to the shell)

====================================================

Should you understand ANYTHING of this batch of lines, I'd be very appreciative of any insight. If not... please tell me, so I can start thinking about reinstalling the OS.

And yeah... probably in the end this will again be just a serious case of PEBKAC (Problem Exists Between Keyboard And Chair)
 
  


Reply



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
Qt headers and libraries not found c-- Ubuntu 12 03-03-2009 07:16 PM
'Wine libraries will not be found!' thevdo Linux - Software 1 01-02-2005 07:26 PM
Simple C Libraries Not Found brunnopessoa Linux - General 1 08-28-2004 10:26 AM
X11 libraries not found dannymacom Linux - Software 6 02-22-2004 06:31 PM
Quake 2: Libraries not found tarballedtux Linux - Software 2 07-19-2002 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:10 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
Open Source Consulting | Domain Registration