Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Can work with 2 versions of FB on same machine.What do I do?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Oct 30, 2017 9:28 AM Last Post By: Eduardo Tavares Threads: [ Previous | Next ]
Eduardo Tavares

Posts: 8
Registered: 2/6/06
Can work with 2 versions of FB on same machine.What do I do?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 26, 2017 12:58 PM
Hi!

What do I have to do to be able to work with 2 versions of Firebird on my computer where I develop for two companies one with FB 2.5 and the other company with FB 3.0.
I tried to install both version but although I can start version 3 service and open my database on IBExpert and then stop version 3 and start service FB 2.5 and open my FB databse on my IBExpert and do what I want I can not run my Delphi application that works with FB 3 even if I have service for FB 3.0 started.
I get an error install incomplete please read compability chapter in the release notes for this version.

My application was developed with FB 3.0 and even if I am running version 3 of FB I get this error...

what should I do?

thank you
Michael Rabatsc...

Posts: 125
Registered: 1/22/07
Re: Can work with 2 versions of FB on same machine.What do I do?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 30, 2017 6:41 AM   in response to: Eduardo Tavares in response to: Eduardo Tavares
Am 26.10.2017 um 21:58 schrieb Eduardo Tavares:
Hi!

What do I have to do to be able to work with 2 versions of Firebird on my computer where I develop for two companies one with FB 2.5 and the other company with FB 3.0.
I tried to install both version but although I can start version 3 service and open my database on IBExpert and then stop version 3 and start service FB 2.5 and open my FB databse on my IBExpert and do what I want I can not run my Delphi application that works with FB 3 even if I have service for FB 3.0 started.
I get an error install incomplete please read compability chapter in the release notes for this version.

It is possible to have two installations in parall but there are at
least 3 problems:

* Both installations would use the same service names:
-> after the installation open regedit and rename the firebird
service name (add an extension to the service directory) e.g. add the
version to:
-> you see that in HLLM\System\CurrentcontrolSet\Services
-> FirebirdGuardianDefaultInstance
-> FirebirdServerDefaultInstance

* Both installations would listen to the same port:

-> start the an editor with admin rights and open the firebird.conf
file (in the local installation directory) and change (or add or remove
the # in front of the ) the "RemoteServicePort" value to a different one.

* Both installations would install fbclient.dll (perhaps gds32.dll too).
-> that's actually the big problem in your case.
-> you should first get a copy of these file from windows\system32 and
windows\syswow64 then you can eventually delete them
-> the new installation will put new fbclient.dll in the windows
directories.

-> note from now on you need to put the proper fbclient dll in your
local program folder to properly access the correct database

Note that you either need to access the local database only via the
folder property or add the port (for the first installation) in the
connection string.

Also note that you first need to shutdown the firebird services before
you do the manual tampering.

kind regards
Mike


My application was developed with FB 3.0 and even if I am running version 3 of FB I get this error...

what should I do?

thank you
Eduardo Tavares

Posts: 29
Registered: 1/17/05
Re: Can work with 2 versions of FB on same machine.What do I do?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 30, 2017 9:15 AM   in response to: Michael Rabatsc... in response to: Michael Rabatsc...
Michael Rabatscher wrote:
Am 26.10.2017 um 21:58 schrieb Eduardo Tavares:
Hi!

What do I have to do to be able to work with 2 versions of Firebird on my computer where I develop for two companies one with FB 2.5 and the other company with FB 3.0.
I tried to install both version but although I can start version 3 service and open my database on IBExpert and then stop version 3 and start service FB 2.5 and open my FB databse on my IBExpert and do what I want I can not run my Delphi application that works with FB 3 even if I have service for FB 3.0 started.
I get an error install incomplete please read compability chapter in the release notes for this version.

It is possible to have two installations in parall but there are at
least 3 problems:

* Both installations would use the same service names:
-> after the installation open regedit and rename the firebird
service name (add an extension to the service directory) e.g. add the
version to:
-> you see that in HLLM\System\CurrentcontrolSet\Services
-> FirebirdGuardianDefaultInstance
-> FirebirdServerDefaultInstance

* Both installations would listen to the same port:

-> start the an editor with admin rights and open the firebird.conf
file (in the local installation directory) and change (or add or remove
the # in front of the ) the "RemoteServicePort" value to a different one.

* Both installations would install fbclient.dll (perhaps gds32.dll too).
-> that's actually the big problem in your case.
-> you should first get a copy of these file from windows\system32 and
windows\syswow64 then you can eventually delete them
-> the new installation will put new fbclient.dll in the windows
directories.

-> note from now on you need to put the proper fbclient dll in your
local program folder to properly access the correct database

Note that you either need to access the local database only via the
folder property or add the port (for the first installation) in the
connection string.

Also note that you first need to shutdown the firebird services before
you do the manual tampering.

kind regards
Mike


My application was developed with FB 3.0 and even if I am running version 3 of FB I get this error...

what should I do?

thank you

Hi Mike!
First of all thank you for your answer...I could install both version and I am being able to connect through IBExpert to both 2.5 and 3.0 Firebird database by starting each service accordingly. I am also being able to run my delphi projects with FB 3.0...but I am having problems trying to connect a new project to my 2.5 FB databse...my code for this new projecto to connect to my DB is the same except that my ini file I am using localhost/3051:path to database but I am getting an error message saying "Unable to complete network request to host LOCALHOST/3051 failed to locate host machine."

I was making some tests here even with FB 2.5 stopped I get this error.I guess this error is happening even before delphi checks if FB is started

do you have any idea what am I missing? I had not deleted the fbclient.dll and gds.dll from system32 and syswow64 before but I just did and I keep getting the same error message.

thank you once again

Edited by: Eduardo Tavares on Oct 30, 2017 9:27 AM
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02