Sign in Join

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

Mailing lists / lazarus / 2009-12

finding libmysqlclient

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Henry Vermaak
to Chris Jennings: Hi All I am new to Lazarus and having a few problems with whatelse seems to be an…

2009/12/3 Chris Jennings :

Show quoted text 23 lines
Hi All I am new to Lazarus and having a few problems with whatelse seems to be an excellent development environment. I have past experience with Delphi and am hoping to be able to use Lazarus for a major upcomming open source project. Today I have everything (fpc-2.2.5 / lazarus-0.9.28.2 / zeos-6.6.5-stable) all working under XP With Fedora 11 (fpc-2.2.2 / lazarus-0.9.26.2 / zeos-6.6.5-stable) (I am using slightly older versions that distribute with Fedora because I had some compilation problems with the latest packages) when I try to set the connected property for the zeos Zconnected component to true, I get an error saying that the libmysqlclient.15.so amd libmysqlclient.so cannot be found. These libs are installed under /usr/lib64/mysql I have tied to use the shell path commands to export this PATH and find no change. How do I tell either fpc or lazarus or zeos where these libs are? I have looked at the lazarus environment options and do not see an area to make this change.

It's not fpc or lazarus that's responsible for this, but ld. You can add directories to the environment variables LD_LIBRARY_PATH and LD_RUN_PATH. Making a symlink in /usr/lib is a more permanent solution. There are more ways, but you can read the man pages for ld (see -rpath and -rpath-link options) and ld.so to learn more about this.

Henry

Reply by email

Chris Jennings

Hi All

I am new to Lazarus and having a few problems with whatelse seems to be an excellent development environment. I have past experience with Delphi and am hoping to be able to use Lazarus for a major upcomming open source project.

Today I have everything (fpc-2.2.5 / lazarus-0.9.28.2 / zeos-6.6.5-stable) all working under XP

With Fedora 11 (fpc-2.2.2 / lazarus-0.9.26.2 / zeos-6.6.5-stable) (I am using slightly older versions that distribute with Fedora because I had some compilation problems with the latest packages)

when I try to set the connected property for the zeos Zconnected component to true, I get an error saying that the libmysqlclient.15.so amd libmysqlclient.so cannot be found. These libs are installed under /usr/lib64/mysql

I have tied to use the shell path commands to export this PATH and find no change.

How do I tell either fpc or lazarus or zeos where these libs are? I have looked at the lazarus environment options and do not see an area to make this change.

Thanks for any help

Chris

Reply by email