ibarwick / libfq

A wrapper library for Firebird's C API, loosely based on PostgreSQL's libpq.
https://libfq.sql-info.de/
8 stars 2 forks source link

Address of libfq in debian family #3

Closed mkgrgis closed 1 year ago

mkgrgis commented 3 years ago

Compilation of firebird_fdw for ubuntu/mint/debian is correct and nice. But default base directory for libfq.so is /usr/local/lib. For libfq will visible i must execute this command ln -s '/usr/local/lib/libfq-0.4.2.so' '/usr/lib'. This is not a big problem, no need to make new release of libfq. Please, have in mind to correct library storage path for debian family in next release.

ibarwick commented 2 years ago

This is expected behaviour:

$ ./configure --help
`configure' configures libfq 0.4.3 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

(...)

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
(...)

Without changing that value, something like this:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

will ensure the library file is found.

mkgrgis commented 2 years ago

Thanks for documentation @ibarwick ! It's very useful to read about functions.

mkgrgis commented 1 year ago

./configure --prefix='/usr'; is recommendation for debian/ubuntu family, please update documentation. --prefix works fine!