Recent

Author Topic: Problems conecting Lazarus 1.6.2 with firebird 2.1  (Read 3153 times)

CyberManolo

  • Newbie
  • Posts: 2
Problems conecting Lazarus 1.6.2 with firebird 2.1
« on: February 06, 2017, 01:55:37 pm »
Hello.

I'm a new user of Lazarus 1.6.2, but old at Delphi.
Im trying to conect with firebird 2.1 (32 bits). My instalation of Lazarus is 64 bits.

I have created a new form with a datamodule and drop to it a TIbconnection from the native SQldb palett and configure it. When I try to activate, Lazarus response me 'Can't load the firebird client (fdbclient, gds32,..).
I have put the gds32.dll of my firebird at the project directory and the lazarus directory, but the response is the same.

¿What I can do? Thanks.


Thaddy

  • Hero Member
  • *****
  • Posts: 14391
  • Sensorship about opinions does not belong here.
Re: Problems conecting Lazarus 1.6.2 with firebird 2.1
« Reply #1 on: February 06, 2017, 02:30:30 pm »
It needs a 64bit client lib to work with a 64bit Lazarus.
You can install a 32 bit Lazarus and it will probably work.
The server can be just 32 bit, since the client-server communication is over sockets, but the client lib *must* match the Lazarus bitness. In your case 64bit.

64bit client libs are available for 2.1 here: https://www.firebirdsql.org/en/firebird-2-1/
« Last Edit: February 06, 2017, 02:35:28 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: Problems conecting Lazarus 1.6.2 with firebird 2.1
« Reply #2 on: February 06, 2017, 02:36:13 pm »
Firebird 2.1 is a discontinued version. I strongly recommend that you migrate your database to Firebird 3.0:
https://www.firebirdsql.org/en/discontinued-versions/
https://www.firebirdsql.org/en/server-packages/

You should extract fbclient.dll (64bit version) from
https://www.firebirdsql.org/en/firebird-2-1/
http://sourceforge.net/projects/firebird/files/firebird-win64/2.1.7-Release/Firebird-2.1.7.18553-0_x64.zip/download

Then put fbclient.dll (64bit version) on the project binary (64bit version) directory.
Your remote Firebird server may be 32 or 64 bit version.



CyberManolo

  • Newbie
  • Posts: 2
Re: Problems conecting Lazarus 1.6.2 with firebird 2.1
« Reply #3 on: February 07, 2017, 12:33:54 pm »
Thanks. Now run perfectly.

 

TinyPortal © 2005-2018