LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ldconfig : /usr/lib/libstdc++.so.6 is not a symbolic link + mysql (https://www.linuxquestions.org/questions/linux-software-2/ldconfig-usr-lib-libstdc-so-6-is-not-a-symbolic-link-mysql-871419/)

jerem02 03-28-2011 05:51 AM

ldconfig : /usr/lib/libstdc++.so.6 is not a symbolic link + mysql
 
Hi everybody,

I have emdebian installed on mini2440 board and I would like to install mysql (server + client). The problem is when I want to install mysql client I got the following at the end of the installation and command "mysql" is not found:

Code:

ldconfig : /usr/lib/libstdc++.so.6 is not a symbolic link
and I get the same if I do in the shell:
Code:

ldconfig
My question is to know, how to fix it ? Can I remove libstdc++ first then re-install it ?

Thank you very much

knudfl 03-28-2011 06:55 AM

Libraries have an inbuilt information about "real name" and "so name".

Real name for libstdc++ can be e.g. libstdc++.so.6.0.12 .
The 'so name' libstdc++.so.6 is meant to be a symbolic link.
When it isn't, you will get a warning = an 'information message' from ld.
Not really an error, you have the option to leave it as it is.

jerem02 03-28-2011 07:43 AM

Hi knudfl !

Thank you but the command mysql is not found. Do you have an idea ?

knudfl 03-28-2011 07:59 AM

Well, the Debian online "Search" for bin/mysql replies /usr/bin/mysql mysql-client-5.1
http://packages.debian.org/search?se...ds=bin%2Fmysql

May be there is an error in the emdebian mysql-client** package ?

If the package depends on itself, the option '--force-all' can be used.
( # dpkg -i --force-all <package> ).

.

jerem02 03-29-2011 10:54 AM

ok I will try this evening

Another question, is it possible to uninstall libstdc++ package and install again ? When I did this :

Code:

apt-get remove libstdc++6
I get :

Code:

The following packages will be removed:
A lot of packages is list here
...
You are potentially do something harmful
To continue type "Yes, Do as I say!

Is it possible to uninstall in this way and then do

Code:

apt-get install libstdc++6
I feel that the libstdc++6 file is wrong

thank you again !

knudfl 03-29-2011 11:40 AM

No, you don't have to uninstall a package, when you want it reinstalled.


apt-get install --force-reinstall true libstdc++6

I.e. the option "--force-reinstall true" will do the trick.


All times are GMT -5. The time now is 03:07 PM.