MySQL Forums
Forum List  »  Source, Builds, Binaries

mysql: error while loading shared libraries:
Posted by: Dave Kennard
Date: January 25, 2016 05:02AM

I've built mysql from source and am following the post-installation initilisation guide at

However, when I try to acesss mysql to change the temporary root password I get the error:
./bin/mysql: error while loading shared libraries: cannot open shared object file: No such file or directory

When compiling mysql, I configured it with the non-standard location where I have ncurses installed:

So it should be looking in the correct place for, though since the error message doesn't give the full path I can't be sure. It's also interesting that it's looking for (which does exist) even though I specified (with no version number). is a symlink to, which is a symlink to

Do I also need to set LD_LIBRARY_PATH or LDFLAGS when configuring, or is there some other reason why it can't find the shared lib? It seems strange that it compiled OK if it wasn't looking in the right place for ncurses.

Options: ReplyQuote

Written By
mysql: error while loading shared libraries:
January 25, 2016 05:02AM

