no version information available
Hi,
When I run apt-get command I get some errors. For example this: Code:
mahmood@localhost:~$ sudo apt-get update |
Edit /usr/lib/libc.conf and comment out the default /usr/local/lib and add /usr/lib. That should do the trick for you.
Cheers, Josh |
same error after changing that file.....
Code:
mahmood@localhost:~$ cat /etc/ld.so.conf.d/libc.conf |
How many variants of libc.conf do you have on your system?
|
You mean this?
Code:
mahmood@localhost:~$ sudo find / -name "libc.conf" |
Why look for 'libc.conf' ( or change it ) when the issue is libstdc++ ?
GLIBCXX_3.4.11 : LIBCXX means libc++ = libstdc++ The object GLIBCXX_3.4.11 is from libstdc++.so.6, the gcc/g++ "c++ library". ( readelf -s /usr/lib/libstdc++.so.6 | grep GLIBCXX ). Which OS is it ? Ubuntu 10.10 or Ubuntu 11.04 ? ? And did you do any changes : Like installing g++-4.5 ? .. |
it is lubuntu 10.10 and I have installed GCC 4.1.2 from source. By default gcc 4.4 is installed. I used that to make and install gcc 4.1.2
|
I said what I said before because I came across a few success stories of doing it that way.
|
Quote:
A home made gcc must be installed to a hideaway location, like /usr/local/gcc412/ or /opt/gcc412/. (../gcc-4.1.2/configure --prefix=/usr/local/gcc412 ) Suggest : Remove the alien files from your "GCC 4.1.2 install". And reinstall libstdc++6 manually : sudo dpkg -i --force-all <package> http://packages.ubuntu.com/maverick/libstdc++6 32bits http://se.archive.ubuntu.com/ubuntu/...untu2_i386.deb 64bits http://se.archive.ubuntu.com/ubuntu/...ntu2_amd64.deb When 'apt-get' and Synaptic work again, you can reinstall all g++, all dependencies for g++, g++-4.4. The dependencies depend on some other packages : Also install these. Installing gcc/g++-4.1.2 : sudo apt-get install g++-4.1 .. You will have to add 'hardy' to /etc/apt/sources.list Code:
deb http://76.73.4.58/ubuntu/ hardy-updates main Available are : g++-3.3 g++-3.4 g++-4.1 g++-4.2 g++-4.3 g++-4.4 g++-4.5. .. |
Quote:
|
OK, I guess you can leave the gcc-4.1.2 files for now, and let them be
overwritten by files from the default gcc-4.4 when / if you reinstall that. ( There is no 'make uninstall' for gcc.) ( And there should be no other conflicting files than libstdc++.so.6, but no guaranties for that.) A simple solution to solve the libstdc++.so.6 issues : 1) cd /usr/lib/ 2) sudo rm libstdc++.so.6 3) sudo ln -s libstdc++.so.6.0.14 libstdc++.so.6 Then you should have the right version of libstdc++.so.6 again, and can use 'apt-get' etc. .. |
No change....
Code:
mahmood@localhost:~$ cd /usr/lib/ |
Not quite correct : sudo ln libstdc++.so.6.0.14 libstdc++.so.6
Must be : sudo ln -s libstdc++.so.6.0.14 libstdc++.so.6 You will of course have to delete /usr/local/lib/libstdc++.so.6. I wonder how /usr/local/lib/ can be first in the LD_LIBRARY_PATH ? Seems that some other changes have been made ? ? .bashrc ? /etc/ld.so.conf ? .. |
The error message changed....!! this is what I did:
Code:
mahmood@localhost:lib$ sudo rm libstdc++.so.6 |
/usr/local/lib/libgcc_s.so.1 : Those gcc-4.1.2 files in /usr/local/lib/ :
You will have to move them away or delete them : None of those are required. Are from your manual install of gcc-4.1.2. May be the 'gcc' etc. in /usr/local/bin/ is disturbing too : Delete or rename ( to gcc412 etc.) It is still a mystery, why 'apt-get' looks in /usr/local/. But then again : Not a location ever used for system files ! The system libgcc_s.so.1 is /lib/libgcc_s.so.1 , and I hope you still have it present. .. |
All times are GMT -5. The time now is 10:59 PM. |