/usr/bin/ld: cannot find -lmysqlclient again and again lazarus / 16-Databases ---------------------------------------------------------------------- andipurwito · 2007-09-17 08:38 I've just install FreePascal v2.2.0 on Fedora 7 but while compile my program that use MySQL4 library, there's an error below: /usr/bin/ld: cannot find -lmysqlclient Anyway i take an action to list mysql library in /usr/lib/mysql and found some files below: lrwxrwxrwx 1 root root      26 2007-09-11 23:35 libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0 -rwxr-xr-x 1 root root 1457164 2007-03-30 06:44 libmysqlclient_r.so.15.0.0 lrwxrwxrwx 1 root root      24 2007-09-11 23:35 libmysqlclient.so.15 -> libmysqlclient.so.15.0.0 -rwxr-xr-x 1 root root 1448680 2007-03-30 06:44 libmysqlclient.so.15.0.0 lrwxrwxrwx 1 root root      39 2007-09-17 14:42 lmysqlclient -> /usr/lib/mysql/libmysqlclient.so.15.0.0 -rwxr-xr-x 1 root root   12394 2007-03-30 06:43 mysqlbug -rwxr-xr-x 1 root root    5449 2007-03-30 06:43 mysql_config then make a link file to lmysqlclient: #ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 lmysqlclient But there's still the same error. How should i take action to solve it? ---------------------------------------------------------------------- andipurwito · 2007-09-17 08:47 I have no idea what's deference between libmysqlclient_r.so.15.0.0 and libmysqlclient.so.15.0.0? ---------------------------------------------------------------------- Marc · 2007-09-17 09:50 have you seen this thread ? http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtop ic&t=3548 ---------------------------------------------------------------------- andipurwito · 2007-09-19 04:25 thanks for your guidance, but it seem uncompleted thread and still have no solution. ---------------------------------------------------------------------- Marc · 2007-09-19 08:29 did you follow all the steps suggested there ? What was the outcome of the example programs ? IOW, where did it fail ? ---------------------------------------------------------------------- Marc · 2007-09-19 08:33 OOowwwww.... I notice now that you're using MySQL4 (I got confused with libmysqlclient.so.15) for MySQL4 you need libmysqlclient.so.14 (no, mysql libs are not compatible)