[MSEide-MSEgui-talk] Fb 3

classic Classic list List threaded Threaded
19 messages Options
Reply | Threaded
Open this post in threaded view
|

[MSEide-MSEgui-talk] Fb 3

mohamed hamza

Connecting  a database under fb3 driver gives  me an error:


Can not load libfbclient2.so2


I am working under mint.


fb3 libs are in opt/firebird/lib  and there are symLink from /usr/lib64 to the previous opt/firebird/lib


the project worked under fb2.5


Regards.

 




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mse
Administrator
On Thursday 23 August 2018 19:10:59 mohamed hamza wrote:
> Connecting  a database under fb3 driver gives  me an error:
>
>
> Can not load libfbclient2.so2
>
What is the exact errormessage?
>
> I am working under mint.
>
I don't touch Mint anymore. ;-)
>
> fb3 libs are in opt/firebird/lib  and there are symLink from /usr/lib64 to
> the previous opt/firebird/lib
>
>
> the project worked under fb2.5
>
That means you use the tmseibconnection not tfb3connection?

tmseibconnection searches for
"
 fbcgdslib: array[0..3] of filenamety = ('libfbclient.so.2',
                          'libfbclient.so.1','libfbclient.so','libgds.so');
"
Are you sure one of them is available in right bitness and in library search
path?

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mohamed hamza
I use tfb3connection.

The exact message is  :  can not load firebird library. library
libfbclient.so.2

function fb_get_master_interface not found.


usr/lib64 contains:

libfbclient.so             symlink

libfbclient.so.2         ----------

libfbclient.so.3.0.3    ---------

libgds.so                   ---------

libgds.so.0                ----------

libib_util.so               ----------


opt/firebird/lib contains:

libfbclient.so            symlink

libfbclient.so.2         symlink

libfbclient.so.3.0.3   shared lib

libibutil                     shared lib


Regards.


Med.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mse
Administrator
On Friday 24 August 2018 11:04:26 mohamed hamza wrote:

> I use tfb3connection.
>
> The exact message is  :  can not load firebird library. library
> libfbclient.so.2
>
> function fb_get_master_interface not found.
>
>
> usr/lib64 contains:
>
> libfbclient.so             symlink
>
> libfbclient.so.2         ----------
>
> libfbclient.so.3.0.3    ---------
>
> libgds.so                   ---------
>
> libgds.so.0                ----------
>
> libib_util.so               ----------
>
tfb3connection searches for
"
 firebirdlib: array[0..2] of filenamety =
             ('libfbclient.so.3','libfbclient.so.2','libfbclient.so');
"
Please set a breakpoint into lib/common/db/msefb3connection.pas:655, step into
inifbapi and check why it fails.

Martin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mse
Administrator
On Friday 24 August 2018 11:38:29 Martin Schreiber wrote:
> On Friday 24 August 2018 11:04:26 mohamed hamza wrote:
> > I use tfb3connection.
> >
> > The exact message is  :  can not load firebird library. library
> > libfbclient.so.2
> >
When i use invalid librarynames I get an errormessage like the attachment.

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

errormessage.png (12K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mohamed hamza
I reinstalled fb 3 from firebird-3.03.32900-0.amd64.

Now it's an other error:

service connect : can not access lock files directory tmp/firebird.

I changed attribute of that directory  but nothing.


Regards


Med





------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mse
Administrator
On Friday 24 August 2018 17:01:15 mohamed hamza wrote:
> I reinstalled fb 3 from firebird-3.03.32900-0.amd64.
>
> Now it's an other error:
>
> service connect : can not access lock files directory tmp/firebird.
>
> I changed attribute of that directory  but nothing.
>
If you use "embedded" Firebird by the libEngine12.so driver -
tfb3connection.HostName is empty, Databasename a simple file name or path -
there normally is a rights conflict with the default Firebird temp directory
which is owned by the user "firebird". Your application and the Firebird
driver belongs to the current user which can not write in that directory.
I usually make a separate temp directory for every user
(example "/tmp/firebird_mse") which is owned by the user and set the
environment variable FIREBIRD_LOCK to /tmp/firebird_mse in
MSEide 'Target'-'Environment'-'Environment variables'.
An application with embedded FB3 can be called by
FIREBIRD_LOCK=/tmp/firebird_mse theapplication
or FIREBIRD_LOCK can be set in .bashrc (or your actual login script) in home
directory (recommended).

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mohamed hamza
I can connect to employees.fdb without any change to the config.

I tried with flamerobin and mseide.

Regards

Med


Nb: employees.fdb is an example database given with fb3.





------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mse
Administrator
On Saturday 25 August 2018 12:32:06 mohamed hamza wrote:
> I can connect to employees.fdb without any change to the config.
>
> I tried with flamerobin and mseide.
>
That means the problem is solved?

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mohamed hamza

Employee.fdb is the only  database connected?


Regards




De : Martin Schreiber <[hidden email]>
Envoyé : samedi 25 août 2018 12:32
À : [hidden email]
Objet : Re: [MSEide-MSEgui-talk] Fb 3
 
On Saturday 25 August 2018 12:32:06 mohamed hamza wrote:
> I can connect to employees.fdb without any change to the config.
>
> I tried with flamerobin and mseide.
>
That means the problem is solved?

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mse
Administrator
On Saturday 25 August 2018 17:08:11 mohamed hamza wrote:
> Employee.fdb is the only  database connected?
>
What are the settings of tfb3connection.HostName and DatabaseName for
employee.fdb and for your own project?

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mohamed hamza
/opt/firebird/examples/empbuild/employee.fdb

/home/med/Documents/inno.fdb

Regards

Med

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mse
Administrator
On Saturday 25 August 2018 19:26:23 mohamed hamza wrote:
> /opt/firebird/examples/empbuild/employee.fdb
>
> /home/med/Documents/inno.fdb
>
HostName is empty?
I don't know why opening /opt/firebird/examples/empbuild/employee.fdb by
libEngine12.so does not try to write to /tmp/firebird and
opening /home/med/Documents/inno.fdb tries to write to /tmp/firebird.

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mohamed hamza
In reply to this post by mohamed hamza

Hostname  is  empty.

 

I  think  to  downgrade fb 3  to fb 2.5  to carry my project.

 

Regards

 

Med

 

 

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mse
Administrator
On Sunday 26 August 2018 20:06:53 mohamed hamza wrote:
> Hostname  is  empty.
>
> I  think  to  downgrade fb 3  to fb 2.5  to carry my project.
>
Or ask on Firebird mailing list?
https://www.firebirdsql.org/en/mailing-lists/
[hidden email]

Why don't you want to set the FIREBIRD_LOCK variable?

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mohamed hamza
Hi Martin,

         Finally, I followed  your advice. I set FIREBIRD_LOCK to
/tmp/firebird_med.

Regards.

Med

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mohamed hamza

In Fact, the directory /tmp/firebird_med is deleted after restart
firebird server ?

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mse
Administrator
On Monday 27 August 2018 20:30:32 mohamed hamza wrote:
> In Fact, the directory /tmp/firebird_med is deleted after restart
> firebird server ?
>
Does the server also see the changed FIREBIRD_LOCK variable? It should not. I
am no Firebird specialist, maybe you should ask Firebird people.

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Fb 3

mohamed hamza

Hi Martin,

The solution is here: http://www.ibphoenix.com/files/Embedded_fb3.pdf

to those who are interested.

Best Regards

Med

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk