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
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.
Please have a look to this post here
In your other thread here
... you tell, that you have /opt/gcc33/.
Then you already have libstdc++-so.5 , and can make a link :
&& sudo ln -s /<path-to-folder-with-libstdc++-so.5>/libstdc++-so.5
Or alternatively add Hardy to /etc/apt/sources.list :
( 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.)
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.
# 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
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. "
but DO NOT expect any new software to run on 8
firefox 3.6 will not work !!!
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?
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'.)
|All times are GMT -5. The time now is 04:51 AM.|