mysql: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP


Error Symptom:

when you run $mysql -u root -p command in the linux you get an error message ” mysql: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP”

Solution:

Step 1: Login as root

Step 2: Go to folder path #cd/usr/local/lib

there was a bunch of readline libs in there (libreadline.so.BLAH-BLAH) so i:

Step3: Create a directory #mkdir temp

Step 4: Move the files # mv /usr/local/lib/libreadline* temp

Step 5:  #ldconfig

Step 6: #apt-get update

 

After the update the problem get solved.

 

Advertisements

6 Responses to mysql: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP

  1. Ulf K. says:

    I had a similar problem but with GnuPG. Did what you suggested and it worked. Many Thanx sharing it !!!

  2. Andranik says:

    Perfect solution!!! Thank you very much!!!

  3. Thomas says:

    Many many thanks… :-)

  4. Cesar says:

    Everything were said by previous bloggers.
    Thanks for your post

  5. devrajpawar says:

    Thanks, it worked for my gdl (gnudatalanguage) too. I had three files libreadline.so, libreadline.so.6, libreadline.so.6.2. I moved libreadline.so.6, libreadline.so.6.2 to a folder, and gdl worked.

    • I had a similar problem in CentOS Linux, a relative of RedHat Enterprise Linux with the PARI/GP calculator. I did as you suggested, and then Configure, make, and make install worked without any problem. The gp calculator is now built with readline v6.0 enabled. Perfect solution !

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: