Subject | embedding firebird mac osx and linux |
---|---|
Author | Todd Fisher |
Post date | 2004-12-31T03:07:33Z |
Hi,
I'm writing an application that uses mozilla for the UI and
firebird for the back end database. I know that firebird database can
be run on mac osx, linux, and windows. I know that I can use firebird
embedded in windows, by renaming the fbembed.dll to fbclient.dll as
described in the readme file. However, I have not found any
documentation for how to correctly embed firebird in linux and mac
osx, what follows is what i have found out:
In Linux I did some experimenting and was able to embed by linking to
firebird statically and disabling the lock manager.
I use the following to configure firebird:
./configure --with-editline --without-lock-manager --enable-static
--disable-shared
At install time then I just have to create two files:
/usr/local/firebird/isc_init1.$HOSTNAME
/usr/local/firebird/isc_lock1.$HOSTNAME
It would be nice if this path could be changed to perhaps the app
path, so that the application in linux can be easily relocatable. For
example, if I install in $HOME/myapp, then the isc_init1.$HOSTNAME
file can go in $HOME/myapp/isc_init1.$HOSTNAME. Not sure how I should
compile or configure firebird to behave this way.
For the mac I'm just getting started, but have a feeling I should be
able to embed in a similar way as I am in Linux.
Any help or suggestions/comments on how best to go about embedding on
these three different platforms would be greatly appreciated.
Thanks,
-todd
I'm writing an application that uses mozilla for the UI and
firebird for the back end database. I know that firebird database can
be run on mac osx, linux, and windows. I know that I can use firebird
embedded in windows, by renaming the fbembed.dll to fbclient.dll as
described in the readme file. However, I have not found any
documentation for how to correctly embed firebird in linux and mac
osx, what follows is what i have found out:
In Linux I did some experimenting and was able to embed by linking to
firebird statically and disabling the lock manager.
I use the following to configure firebird:
./configure --with-editline --without-lock-manager --enable-static
--disable-shared
At install time then I just have to create two files:
/usr/local/firebird/isc_init1.$HOSTNAME
/usr/local/firebird/isc_lock1.$HOSTNAME
It would be nice if this path could be changed to perhaps the app
path, so that the application in linux can be easily relocatable. For
example, if I install in $HOME/myapp, then the isc_init1.$HOSTNAME
file can go in $HOME/myapp/isc_init1.$HOSTNAME. Not sure how I should
compile or configure firebird to behave this way.
For the mac I'm just getting started, but have a feeling I should be
able to embed in a similar way as I am in Linux.
Any help or suggestions/comments on how best to go about embedding on
these three different platforms would be greatly appreciated.
Thanks,
-todd