Lazarus
Programming => Databases => Topic started by: sydenis on July 20, 2021, 12:31:46 pm
-
Ubuntu 20.04 + Firebird 4.0.0.496 + IBX 2.4.1
I have downloaded and installed Firebird tar.gz from official site.
After this I install IBX package and restart Lazarus IDE.
Lazarus can't start with the error: Object reference is Nil.
What else should I do or install for the Lazarus to start?
-
The problem is that if Firebird is not installed from the repository, then its libraries are not registered in the OS.
Therefore, ibx does not see them.
For example, in ubuntu, the problem is solved like this:
- specifying the path (/opt/firebird/lib/) to the fb libraries in /etc/ld.so. conf
- update the library cache - sudo ldconfig
But it seems to me that ibx should also be more accurate.
It shouldn't kill the entire IDE. For example, it should still be possible to uninstall ibx...
-
Hi sydenis,
It was discussed before. Please see the following thread:
https://forum.lazarus.freepascal.org/index.php/topic,54287.0.html
-
GetMem thank you for pointing it out.
I hope that Tony will be able to do everything that he has planned.
Thank you in advance.
-
The IBX snapshot available from http://www.mwasoftware.co.uk/svn-repository should no longer kill the IDE if there is an exception when loading the firebird library.
If you have installed a version of Firebird (e.g. in /opt/firebird) without registering the library, you can always start Lazarus with the following environment variables:
export FIREBIRD=/opt/firebird
export LD_LIBRARY_PATH=$FIREBIRD/lib
When testing IBX, I have several versions of Firebird running at the same time, but listening on different ports. Setting the above either before loading the IDE, or as program execution options, allows me to select the version of Firebird used for the test - helps test out new versions without having to have several different computers to test on.
-
Tony, thank you. I will test it now
-
Hello,
for information, the wiki has been updated: https://wiki.freepascal.org/Lazarus/FPC_Libraries#Simplified_overview_of_the_system.2C_when_loading_a_shared_library_under_Linux (https://wiki.freepascal.org/Lazarus/FPC_Libraries#Simplified_overview_of_the_system.2C_when_loading_a_shared_library_under_Linux) .