[Lazarus] Cannot connect Firebird server
Reinier Olislagers
reinierolislagers at gmail.com
Thu Jul 26 10:55:53 CEST 2012
On 26-7-2012 9:53, Graeme Geldenhuys wrote:
> On 25 July 2012 11:45, Reinier Olislagers <reinierolislagers at gmail.com> wrote:
>> For design-time support, you need them in your project directory (where
>> your source is), I think you can also put it in your lazarus directory
>> so you can use it for all projects.
>
> Huh?
>
>
>> You also need to put them in the directory where the executable is
>> generated.
>
> Double huh?
>
>
> I don't do either of those, and I connect to firebird servers no
> problems. Under Windows, download the Firebird Installation/Setup, and
> simply select the "client only" option during the install. Lazarus,
> FPC and your programs will work just fine then. No need to copy
> Firebird DLL's around manually - the Firebird Setup does everything
> for you already.
Because it either copies dlls to the system (syswow64) directory which
is in your path or changes your path and adds the location of the dlls
(c:\program files\firebird...whatever\).
I'm describing a method that does not mess with a user's path but
contains the dlls in the application directory. I think this is much
safer than fiddling with a users's environment, because it can break
other applications and it is not as robust (imagine an interbase
gds32.dll in an earlier path of the path overriding the fbclient.dll you
just added to the path).
Not a problem on your own dev machine but problematic when messing with
end users PCs that get your application.
>> If you want to use Firebird embedded (instead of the regular server):
>
> Never used this, but I believe in this case you need the fbembed.dll
> in the same directory as the executable, or somewhere in your Library
> Path.
I used this.
More information about the Lazarus
mailing list