Hiya,
I'm trying to build the MySQL Connector/C++ on Oracle Linux and gcc.
Code:
$ g++ --version
g++ (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6)
$ cmake .
(snip)
-- MySQL Library dir: /usr/lib64
(snip)
$ make clean
$ make
(snip...)
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
I'm fairly new to cmake and gcc, but this seems to be saying it can't find the libmysqlclient_r library.
I can verify that libmysqlclient_r.a is in /usr/lib64/mysql, not /usr/lib64/. Is there anyway I can pass this directory to cmake and/or ld so that it finds the library?
Any suggestions are much appreciated!
Cheers