None of the dynamic libraries can be found:libmysqlclient.so
Posted: 03.05.2006, 13:42
I have a problem connecting to mysql5 in debian using zeoslib.
my test program is very simple:
program zeotest;
uses ZConnection, ZDataset;
var
MyConnection: TZConnection;
MyQuery : TZQuery;
sSQL : widestring;
begin
sSQL := 'SHOW TABLES';
MyConnection := TZConnection.Create(nil);
MyQuery := TZQuery.Create(nil);
MyQuery.Connection := MyConnection;
MyConnection.Protocol := 'mysql';
MyConnection.HostName := 'localhost';
MyConnection.Database := 'mydatabase';
MyConnection.User := 'myuser';
MyConnection.Password := 'mypasswd';
MyQuery.SQL.Clear;
MyQuery.SQL.Add(sSQL);
MyQuery.Open;
while not(MyQuery.Eof) do
begin
Writeln(MyQuery.Fields[0].AsString);
MyQuery.Next;
end;
MyQuery.Free;
MyConnection.Free;
end.
the program raises an exception in module zeotest at 0809470D
and show the following error:
None of the dynamic libraries can be found: libmysqlclient.so
I have a symbolic link pointing to libmysqlclient.so.15.0.0.
This demo was working correctly on suse and using mysql4
Any ideas ??
Thanks in advance
my test program is very simple:
program zeotest;
uses ZConnection, ZDataset;
var
MyConnection: TZConnection;
MyQuery : TZQuery;
sSQL : widestring;
begin
sSQL := 'SHOW TABLES';
MyConnection := TZConnection.Create(nil);
MyQuery := TZQuery.Create(nil);
MyQuery.Connection := MyConnection;
MyConnection.Protocol := 'mysql';
MyConnection.HostName := 'localhost';
MyConnection.Database := 'mydatabase';
MyConnection.User := 'myuser';
MyConnection.Password := 'mypasswd';
MyQuery.SQL.Clear;
MyQuery.SQL.Add(sSQL);
MyQuery.Open;
while not(MyQuery.Eof) do
begin
Writeln(MyQuery.Fields[0].AsString);
MyQuery.Next;
end;
MyQuery.Free;
MyConnection.Free;
end.
the program raises an exception in module zeotest at 0809470D
and show the following error:
None of the dynamic libraries can be found: libmysqlclient.so
I have a symbolic link pointing to libmysqlclient.so.15.0.0.
This demo was working correctly on suse and using mysql4
Any ideas ??
Thanks in advance