| Fedora This forum is for the discussion of the Fedora Project. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-09-2010, 06:09 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2010
Distribution: Ubuntu, Fedora
Posts: 7
Rep:
|
Error while loading shared libraries: libstdc++.so.5
I am getting this error while installing NS-2.1b9a in fedora 8.0.
./tcl2c++: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
make: *** [embedded-tcl.cc] Error 127
tclcl-1.0b12 make failed! Exiting ...
I tried to install libstdc++.so.5 by following command:
$yum install compat-libstdc++.so.5
But it says:
Setting up Install Process
Parsing package install arguments
No package compat-libstdc++.so.5 available.
Nothing to do
libstdc++.so.5 is already there in /usr/lib/.
I tried giving link to newly installed libstdc++.so.5's link as well.
What should I do now?
NB: I have gcc-3.3 installed in my system.
Last edited by ritika_sharma; 12-09-2010 at 06:37 AM.
|
|
|
|
12-09-2010, 07:39 AM
|
#2
|
|
Member
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119
Rep:
|
Hi there,
Please have a look to this post here
Cheers.
|
|
|
|
12-09-2010, 09:28 AM
|
#3
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,629
|
In your other thread here
http://www.linuxquestions.org/questi...lled-g-848952/
... you tell, that you have /opt/gcc33/.
Then you already have libstdc++-so.5 , and can make a link :
cd /usr/lib/
&& sudo ln -s /<path-to-folder-with-libstdc++-so.5>/libstdc++-so.5
Or alternatively add Hardy to /etc/apt/sources.list :
Code:
deb http://76.73.4.58/ubuntu/ hardy-updates main
deb http://76.73.4.58/ubuntu/ hardy universe
deb http://security.ubuntu.com/ubuntu hardy-security main
deb http://security.ubuntu.com/ubuntu hardy-security universe
.. and do : sudo apt-get install libstdc++5
( And you can of course also do : sudo apt-get install g++-3.3 ).
..
EDIT : I can see, you are now using Fedora 8 :
# yum provides */libstdc++-so.5
And or # yum search libstdc++
# yum install compat-libstdc++-33
.. when you have changed your /etc/yum.repos.d/fedora.repo to :
( If your repo isn't already changed.)
Code:
[fedora]
name=Fedora
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/8/Everything/i386/os/
enabled=1
[updates-newkey-i386]
name=Fedora-update-newkey-i386
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/8/i386.newkey/
enabled=1
Last edited by knudfl; 12-09-2010 at 10:09 AM.
|
|
|
|
12-09-2010, 11:58 AM
|
#4
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,629
|
http://mohittahiliani.blogspot.com/2...-8-ubuntu.html
Using the modified ns-allinone-2.1b9a-gcc32.tar.gz
cd ns-allinone-2.1b9a/ && patch -p1 < ns21b9a.patch
&& sh install :
No errors on Fedora 8. ( OK too in CentOS5, Fedora 13, 14, PCLinuxOS2010.)
Required is gcc-3.3.6. The usually recommended gcc-3.3.6 for Fedora :
gcc3.3-3.3.6-1pclos2007 + gcc3.3-c++-3.3.6-1pclos2007 , etc.
gcc3.3-cpp-3.3.6 http://ftp.uwsg.indiana.edu/linux/pc...s2007.i586.rpm
gcc3.3-3.3.6 http://ftp.uwsg.indiana.edu/linux/pc...s2007.i586.rpm
gcc3.3-c++-3.3.6 http://ftp.uwsg.indiana.edu/linux/pc...s2007.i586.rpm
libstdc++5-3.3.6 http://ftp.uwsg.indiana.edu/linux/pc...s2007.i586.rpm
libstdc++5-devel-3.3.6 http://ftp.uwsg.indiana.edu/linux/pc...s2007.i586.rpm
cd <folder-with-gcc-3.3-pclos2007>/
# rpm -Uvh --force *
( --force will replace /usr/bin/c++ : Suggest : make a backup. ( c++4.1.2.))
( On later Fedoras with no /usr/bin/c++ : # 'rpm -Uvh *' will do.)
export CC=gcc-3.3.6 CXX=g++-3.3.6 && ./install
.. Or edit the Makefile.in for otcl , tclcl , ns-2.1b9a , nam :
CC = gcc-3.3.6
CPP = g++-3.3.6
..
Last edited by knudfl; 01-10-2011 at 06:24 PM.
|
|
|
|
12-09-2010, 07:10 PM
|
#5
|
|
Guru
Registered: Aug 2005
Posts: 9,550
|
Quote:
|
I am getting this error while installing NS-2.1b9a in fedora 8.0.
|
fedora 8 is a very very old and unsupported dead version .
PLEASE install the current and SUPPORTED version -- Fedora 14"
this post for using the dead versions of fedora might help
BUT i would use a SUPPORTED version
"Repository configuration for older Fedora releases. "
http://forums.fedoraforum.org/showthread.php?t=221471
but DO NOT expect any new software to run on 8
firefox 3.6 will not work !!!
|
|
|
|
12-10-2010, 05:29 AM
|
#6
|
|
LQ Newbie
Registered: Dec 2010
Distribution: Ubuntu, Fedora
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
http://mohittahiliani.blogspot.com/2...-8-ubuntu.html
Using the modified ns-allinone-2.1b9a-gcc32.tar.gz
cd ns-allinone-2.1b9a/ && patch -p1 < ns21b9a.patch
&& sh install :
No errors on Fedora 8. (Or any other Fedora, probably. OK on pclos2010.)
Required is gcc-3.3.6. The usually recommended gcc-3.3.6 for Fedora :
gcc3.3-3.3.6-1pclos2007 + gcc3.3-c++-3.3.6-1pclos2007 , etc.
..
|
Hi Kundfl,
I did exactly, as mentioned. I installed gcc-3.3 (including g++, c++ etc.) and export CC and CXX. I downloaded patch and applied. Now I get the following error.
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/vector.tcc:452: error: expected unqualified-id before ‘(’ token
make: *** [diffusion3/ns/difftimer.o] Error 1
Ns make failed!
Any idea, what could be the problem?
|
|
|
|
12-10-2010, 08:19 AM
|
#7
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,629
|
Hopefully you mean version 3.3.6 . ( Version 3.3.3 will not work.)
Quote:
|
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2.../
|
By mistake g++ version 4.1.2 is used for this, please edit the four Makefile.in
to avoid g++ 4.1.2 being used.
And after that, also edit the four Makefile .
I.e. in otcl-1.0a8/, tclcl-1.0b12/, ns-2.1b9a/, nam-1.0a11a/ .
( There may not yet be a Makefile in nam, Makefile.in will do the trick.)
The export command is temporary, will reset, if you close the terminal.
( export CC=gcc-3.3.6 CXX=g++-3.3.6 && sh install )
The export command usually works for all new ns2, like ns-allinone-2.34,
but for ns-allinone-2.1b9a-gcc32 : I don't know.
The editing of the Makefile** is the proof method.
No issues either with Fedora 13, 14 or Ubuntu 9.04.
( Your first thread, ns-allinone-2.1b9a, says 'Ubuntu 9.04'.)
..
Last edited by knudfl; 12-11-2010 at 06:12 AM.
|
|
|
|
| Thread Tools |
Search 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:03 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|