Subject Firebird 2.5 embedded on Linux - picking up wrong config?
Author Reinier Olislagers
Struggling to get FB embedded on Linux going; below what I did based on
the 2 links in (one about 1.5.x, one newer):

cd /home/pascaldev/embed
#or whatever version it really is...
mv download FirebirdCS-
tar xvzf FirebirdCS-
tar xvzf FirebirdCS-
cp opt/firebird/firebird.conf .
cp opt/firebird/firebird.msg .
cp opt/firebird/security2.fdb .

#don't know what to do with intl. copy them 2x to be sure.
cp opt/firebird/intl/fbintl.conf .
cp opt/firebird/intl/fbintl .
mkdir intl
cp opt/firebird/intl/fbintl.conf intl/
cp opt/firebird/intl/fbintl intl/

cp opt/firebird/lib/ .
cp opt/firebird/lib/ .
cp opt/firebird/lib/ .
cp opt/firebird/lib/ .
cp opt/firebird/lib/ .
#optional, but useful for troubleshooting:
mkdir bin
cp opt/firebird/bin/isql bin/

#clean up a bit
rm -rf FirebirdCS-
sudo rm -rf opt
sudo rm -rf usr

#edit firebird.conf:
#to do: replace with . or something?
DatabaseAccess = Full
ExternalFileAccess = None
UdfAccess = Full
TempDirectories = /tmp

# this apparently doesn't do anything?!?!:
export FIREBIRD_TMP=/tmp
export FIREBIRD=`pwd` #/home/pascaldev/embed in my tests
# specify exact dynamic library file to use:
# put application directory in our .so search path:
export LD_LIBRARY_PATH=`pwd`#/home/pascaldev/embed in my tests

my test application won't run; first troubleshooting
bin/isql -user sysdba -pass masterkey
connect test.fdb;
Statement failed, SQLSTATE = HY000
Can't access lock files' directory /tmp/firebird

It seems firebird is still picking up stuff (the temp dir from
firebird.conf?) from the existing system wide install.

What am I doing wrong?