Recent

Author Topic: /usr/bin/ld: cannot find -lmysqlclient again and again  (Read 10653 times)

andipurwito

  • New member
  • *
  • Posts: 6
    • http://golekupo.blogspot.com
/usr/bin/ld: cannot find -lmysqlclient again and again
« on: September 17, 2007, 10:38:03 am »
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

  • New member
  • *
  • Posts: 6
    • http://golekupo.blogspot.com
RE: /usr/bin/ld: cannot find -lmysqlclient again and again
« Reply #1 on: September 17, 2007, 10:47:24 am »
I have no idea what's deference between libmysqlclient_r.so.15.0.0 and libmysqlclient.so.15.0.0?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2510
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

andipurwito

  • New member
  • *
  • Posts: 6
    • http://golekupo.blogspot.com
RE: /usr/bin/ld: cannot find -lmysqlclient again and again
« Reply #3 on: September 19, 2007, 06:25:21 am »
thanks for your guidance, but it seem uncompleted thread and still have no solution.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2510
RE: /usr/bin/ld: cannot find -lmysqlclient again and again
« Reply #4 on: September 19, 2007, 10:29:21 am »
did you follow all the steps suggested there ?
What was the outcome of the example programs ?

IOW, where did it fail ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2510
RE: /usr/bin/ld: cannot find -lmysqlclient again and again
« Reply #5 on: September 19, 2007, 10:33:58 am »
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)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018