Firebird Embedded + Zeos on Ubuntu

Forum related to Firebird

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
Darkbow
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: 01.09.2009, 12:28

Firebird Embedded + Zeos on Ubuntu

Post by Darkbow »

Hi all,

first of all sorry to ask this question. I know it has been answered several times but I checked all the posts related to my problem and I still can not solve it.

I have programmed an app using Zeos 6.6.5 stable + Firebird Embedded 2.0 on Windows and it works just fine.

Now I try to port it to Linux and to continue using Firebird Embedded version I followed this FAQ:

http://www.firebirdfaq.org/Firebird-Emb ... HOWTO.html

but I get all the time the same message: "None of the dynamic libraries can be found: libfbembed.so.20, libfbembed.so".

I have tried setting the path as well but no luck there. I have seen that the exception rises in ZPlainLoader.LoadNativeLibrary. This method looks for libfbembed.so.20 and libfbembed.so as locations (no path at all, is that ok?).

Anyone got any idea about what I should look into?

Thanks in advance and best regards
firesz
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 01.10.2010, 20:11

Post by firesz »

hi.

the message is that libraries can not find the first attempts to put the libraries together with the project as in windows or on the rad down the link to the libraries or provides links to the libraries in the project site!

good luck!
Darkbow
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: 01.09.2009, 12:28

Post by Darkbow »

Hi,

I am sorry but I do not understand what you mean...

How can I tell my application in Ubuntu where to look for the libraries? Or how do I configure Zeos to do so?

Thanks and best regards
Zoran
Senior Boarder
Senior Boarder
Posts: 55
Joined: 07.05.2010, 22:32

Post by Zoran »

Darkbow wrote:Hi,

I am sorry but I do not understand what you mean...

How can I tell my application in Ubuntu where to look for the libraries? Or how do I configure Zeos to do so?

Thanks and best regards
I must admit that I haven't tested it myself.

But, it just seems to me that you haven't fully completethe step 2 from the tutorial? Make sure you have completed the following (Of course, /home/milanb/fbembed must be replaced with your path):
Create a file firebird.conf and put the following line into it:

RootDirectory = /home/milanb/fbembed

To work any further you need to setup two environment variables:

export LD_LIBRARY_PATH=/home/milanb/fbembed
export FIREBIRD=/home/milanb/fbembed
Darkbow
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: 01.09.2009, 12:28

Post by Darkbow »

Hmmm, I could swear I had done that step. Can not test it since my Ubuntu machine collapsed (HD failure) and I have not installed it again. As soon as I do I'll post the results here.
marcov
Senior Boarder
Senior Boarder
Posts: 95
Joined: 24.06.2010, 09:17

Post by marcov »

Besides the env var, you can also add it to /etc/ld.so.conf and run ldconfig after (as root) to make it global. This is commonly not done lightly because of the security implications, but in relative sheltered environments it can be an option.
Post Reply