Page 1 of 1

ZeosDBO + Firebird + MacOS

Posted: 16.02.2021, 10:15
by StefanBatory
Hi!
I try to connect to Firebird 3.0 server from Mac OS Catalina using Lazarus and ZConnection component from Zeosdbo 7.2.8
I try from designer but when I try to set Connected to True then I receive an error:
None of dynamic libraries can be found or is not loadable: libcrypt.dylib.25, libcrypt.dylib, libcrypt.dylib ! Use TZConnection.LibraryLocation if the location is invalid.
For connection I use libfbclient.dylib which is put into TZConnection.LibraryLocation field with the whole path.
Why does the compiler want libcrypt.dylib when Firelbird needs libfbclient.dylib?
Could you help, please?

Re: ZeosDBO + Firebird + MacOS

Posted: 16.02.2021, 20:18
by marsupilami
Hello Stefan,

please try what happens if you disable the INTERBASE_CRYPT define near the bottom of the Zeos.inc:

Code: Select all

// Loads libcrypt.so before Firebird client library.
// It fixes error "Undefined symbol: crypt".
{.$DEFINE INTERBASE_CRYPT}
Note: The insertion of the dot disables the define without removing it completely. When run on any unixoid system, Zeos tries to load libcrypt before it loads the client library. I think this is what happens in your case.

Best regards,

Jan