Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2002-12

mysql

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author
to Rainer Hamann: I'm trying to connect to mysql on RedHat8.0, but I allways get an errormessage from the…
Rainer Hamann wrote 6 lines
I'm trying to connect to mysql on RedHat8.0, but I allways get an errormessage from the linker : "/usr/bin/ld: cannot find -lmysqlclient". The library is called "libmysqlclient", so I changed it in mysql.pp and mysql_com.pp but the errormessage is the same as above. Any hints?

The 'lib' prefix is automatically added by the linker, so that is not necessary. The problem is more likely one of the following:
- The directory with the library is not in the linker path; (add it with -Fl)
- The mysql-devel package is not installed on your system. Either install this package or make a symbolic link from libmysqlclient.so
to
libmysqlclient.so.xx.yy
(replace xx.yy with the actual version number of the installed library)

Michael.

Reply by email

Rainer Hamann

I'm trying to connect to mysql on RedHat8.0, but I allways get an errormessage from the linker : "/usr/bin/ld: cannot find -lmysqlclient". The library is called "libmysqlclient", so I changed it in mysql.pp and mysql_com.pp but the errormessage is the same as above.

Any hints?

Thanks

Rainer Hamann

Reply by email

Rainer Hamann
to Unknown author: The 'lib' prefix is automatically added by the linker, so that is not necessary. The…

Adding the directory /usr/lib/mysql to the linker path solved the problem.

Thank you very much.

Rainer Hamann

Show quoted text 25 lines
On Mon, 16 Dec 2002, Rainer Hamann wrote: > I'm trying to connect to mysql on RedHat8.0, but I allways get an > errormessage from the linker : "/usr/bin/ld: cannot find -lmysqlclient". > The library is called "libmysqlclient", so I changed it in mysql.pp and > mysql_com.pp but the errormessage is the same as above. > > Any hints? The 'lib' prefix is automatically added by the linker, so that is not necessary. The problem is more likely one of the following: - The directory with the library is not in the linker path; (add it with -Fl) - The mysql-devel package is not installed on your system. Either install this package or make a symbolic link from libmysqlclient.so to libmysqlclient.so.xx.yy (replace xx.yy with the actual version number of the installed library) Michael. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email