Recent

Author Topic: Error connecting to Firebird 3, component TIBConnection AlmaLinux 9.1  (Read 2988 times)

automacaosamos

  • New Member
  • *
  • Posts: 21
Dear community, I am having problems trying to connect to firebird, I am using Lazarus V2.2.0 with the TIBConnection component, but when I connect it sends me the message:
Can not load default Firebird clients ("libfbclient.so.2.5.1" or "libgds.so" or "libfbembed.so.2.5"). Check your installation.

 I am using AlmaLinux  9.1  Lazarus V2.2.0 Cross Compiler.

I tried to create the link but it didn't work

sudo ls -l libfbclient.so.3.0.10 libfbclient.so.2.5.1

can anyone help? thanks



Bogen85

  • Hero Member
  • *****
  • Posts: 595
Re: Error connecting to Firebird 3, component TIBConnection AlmaLinux 9.1
« Reply #1 on: February 15, 2023, 10:12:58 pm »
Dear community, I am having problems trying to connect to firebird, I am using Lazarus V2.2.0 with the TIBConnection component, but when I connect it sends me the message:
Can not load default Firebird clients ("libfbclient.so.2.5.1" or "libgds.so" or "libfbembed.so.2.5"). Check your installation.

I am using AlmaLinux  9.1  Lazarus V2.2.0 Cross Compiler.

I tried to create the link but it didn't work

sudo ls -l libfbclient.so.3.0.10 libfbclient.so.2.5.1

can anyone help? thanks

Version 3 and 2.5??

Code: Text  [Select][+][-]
  1. $ rpm -ql libfbclient2 | fgrep .so
  2. /usr/lib64/libfbclient.so.2
  3. /usr/lib64/libfbclient.so.4.0.0
  4.  
  5. $ rpm -ql libfbclient2-devel | fgrep .so
  6. /usr/lib64/libfbclient.so
  7.  
  8. $ cat /etc/os-release  | egrep '(NAME|VERSION)' | head -n2
  9. NAME="AlmaLinux"
  10. VERSION="9.1 (Lime Lynx)"
  11.  

automacaosamos

  • New Member
  • *
  • Posts: 21
Re: Error connecting to Firebird 3, component TIBConnection AlmaLinux 9.1
« Reply #2 on: February 15, 2023, 10:30:36 pm »
I'm using Firebird 3.0.10 64Bits,

Thanks for answering.

Bogen85

  • Hero Member
  • *****
  • Posts: 595
Re: Error connecting to Firebird 3, component TIBConnection AlmaLinux 9.1
« Reply #3 on: February 15, 2023, 11:40:00 pm »
I'm using Firebird 3.0.10 64Bits,

Via what package/repo?

automacaosamos

  • New Member
  • *
  • Posts: 21
Re: Error connecting to Firebird 3, component TIBConnection AlmaLinux 9.1
« Reply #4 on: February 15, 2023, 11:48:12 pm »
installed via package downloaded from firebirdsql.org: Firebird-3.0.10.33601-0.amd64.tar.gz

[root@host54-245 apisamos]# find / -name libfbclient* -print                                                           
/usr/lib64/libfbclient.so.2
/usr/lib64/libfbclient.so
/usr/lib64/libfbclient.so.4.0.0
/usr/lib64/libfbclient.so.3.0.10
/opt/firebird/lib/libfbclient.so.2
/opt/firebird/lib/libfbclient.so
/opt/firebird/lib/libfbclient.so.3.0.10

I ran the given commands, but the error persists:

Can not load default Firebird clients ("libfbclient.so.2.5.1" or "libgds.so" or "libfbembed.so.2.5"). Check your installation.

Bogen85

  • Hero Member
  • *****
  • Posts: 595
Re: Error connecting to Firebird 3, component TIBConnection AlmaLinux 9.1
« Reply #5 on: February 15, 2023, 11:50:40 pm »
installed via package downloaded from firebirdsql.org: Firebird-3.0.10.33601-0.amd64.tar.gz

so, as far as your firebird install goes, it is not an AlmaLinux 9.1 package issue.

automacaosamos

  • New Member
  • *
  • Posts: 21
Re: Error connecting to Firebird 3, component TIBConnection AlmaLinux 9.1
« Reply #6 on: February 16, 2023, 12:10:46 am »
sorry I did not understand...

Bogen85

  • Hero Member
  • *****
  • Posts: 595
Re: Error connecting to Firebird 3, component TIBConnection AlmaLinux 9.1
« Reply #7 on: February 16, 2023, 12:20:28 am »
sorry I did not understand...

Because you went outside of package management to install it.

installed via package downloaded from firebirdsql.org: Firebird-3.0.10.33601-0.amd64.tar.gz

so, as far as your firebird install goes, it is not an AlmaLinux 9.1 package issue.

The firebird client exists through normal package install methods on AlmaLinux 9.1

Code: Pascal  [Select][+][-]
  1. $ dnf search libfbclient
  2. Last metadata expiration check: 0:00:12 ago on Wed 15 Feb 2023 05:13:54 PM CST.
  3. ===================================================== Name Matched: libfbclient ======================================================
  4. libfbclient2.x86_64 : Firebird SQL server client library
  5. libfbclient2-devel.x86_64 : Development libraries and headers for Firebird SQL server
  6.  
  7. $ dnf info libfbclient2
  8. Last metadata expiration check: 0:00:17 ago on Wed 15 Feb 2023 05:13:54 PM CST.
  9. Installed Packages
  10. Name         : libfbclient2
  11. Version      : 4.0.0.2496
  12. Release      : 2.el9
  13. Architecture : x86_64
  14. Size         : 3.2 M
  15. Source       : firebird-4.0.0.2496-2.el9.src.rpm
  16. Repository   : @System
  17. From repo    : epel
  18. Summary      : Firebird SQL server client library
  19. URL          : http://www.firebirdsql.org/
  20. License      : Interbase
  21. Description  : Shared client library for Firebird SQL server.
  22.              :
  23.              : Firebird is a relational database offering many ANSI SQL standard
  24.              : features that runs on Linux, Windows, and a variety of Unix platforms.
  25.              : Firebird offers excellent concurrency, high performance, and powerful
  26.              : language support for stored procedures and triggers. It has been used
  27.              : in production systems, under a variety of names, since 1981

But you went outside of regular package management and installed a non AlmaLinux 9.1 package your self (bypassing package management).

Which is why I said your firebird install is not an AlmaLinux 9.1 package issue, so you the issue you are running into is just a general Linux issue, not related to AlmaLinux 9.1.

Primarily saying this because many who might be able to look into a free pascal related on some distro might not interested into bypassing package management for their distro to help troubleshoot the problem on their own system.



automacaosamos

  • New Member
  • *
  • Posts: 21
Re: Error connecting to Firebird 3, component TIBConnection AlmaLinux 9.1
« Reply #8 on: February 16, 2023, 12:31:49 am »
Got it, I'll try via package management, thanks for the help.

korba812

  • Sr. Member
  • ****
  • Posts: 390
Re: Error connecting to Firebird 3, component TIBConnection AlmaLinux 9.1
« Reply #9 on: February 16, 2023, 12:34:41 am »
Dear community, I am having problems trying to connect to firebird, I am using Lazarus V2.2.0 with the TIBConnection component, but when I connect it sends me the message:
Can not load default Firebird clients ("libfbclient.so.2.5.1" or "libgds.so" or "libfbembed.so.2.5"). Check your installation.
You should initialize the FireBird client library with appropriate library name.
Put this code at the beginning of your program (before connecting to the database):
Code: Pascal  [Select][+][-]
  1. InitialiseIBase60('/usr/lib64/libfbclient.so.3.0.10');
and add "ibase60dyn" unit to "uses" section.

automacaosamos

  • New Member
  • *
  • Posts: 21
Re: Error connecting to Firebird 3, component TIBConnection AlmaLinux 9.1
« Reply #10 on: February 16, 2023, 03:08:18 am »
perfect, it worked, thank you very much….

 

TinyPortal © 2005-2018