Ticket #7 (new defect)

Opened 4 years ago

Last modified 4 years ago

Prgrams can't find mysql libries in "/opt/lib/mysql"

Reported by: nslu2@… Owned by: nslu2-linux
Priority: normal Milestone: Unallocated
Component: Specify in description Version:
Severity: normal Keywords:
Cc:

Description

Programs can't find the mysql libraries

Programs such as the mysql command line program can't find the mysql libraies. They are looking in "/opt/lib" but the libraries are in "/opt/lib/mysql".

Example

$ mysql
mysql: error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory
$ mysql
mysql: error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory
$ export LD_LIBRARY_PATH=/opt/lib/mysql 
$ mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.

References

Change History

Changed 4 years ago by nslu2@…

The file "make/mysql.mk" contains:

   AUTOMAKE=automake-1.9 ACLOCAL=aclocal-1.9 autoreconf --install --force -v $(MYSQL_BUILD_DIR)

This runs automake which generates a "Makefile.in" from "Makefile.am". The Makefile.in" contains:

   pkglibdir = $(libdir)/@PACKAGE@

After that the libraries are installed in "/opt/lib/mysql".

Somebody with more experience in autoconfigure should solve this.

Note: See TracTickets for help on using tickets.