Firebird Documentation IndexAssorted Linux/Unix Scripts → Running Embedded or Client-Server Apps
Firebird Home Firebird Home Prev: Restoring root as the Server Run UserFirebird Documentation IndexUp: Assorted Linux/Unix ScriptsNext: Document history

ChangeGDSLibraryCompatibleLink

This script, changeGdsLibraryCompatibleLink.sh, is available with Classic Server installations only, and is used to change the symlink libgds.so to point to the appropriate library for the installation. There are two possible libraries that the symlink can point to:

After installation, the libgds.so symlink points to the client server library by default so if you are running an embedded application, you need to run this script to point libgds.so at the embedded library instead.

Note

This script must be run as root.

The following example shows how this script is used to change from embedded server to client server use:

# cd /opt/firebird/bin
# ./changeGdsCompatibleLibraryLink.sh
For classic server there are two optional backward compatible client
libraries. These are libfbclient.so and libfbembed.so.

libfbclient.so) enables your client to be multithreaded but must
                connect to a database via a server.
libfbembed.so)  allows the client to directly open the database file,
                but does not support multithreaded access

Your current setting is:
/usr/lib/libgds.so -> /opt/firebird/lib/libfbembed.so

Which option would you like to choose (client|embed|remove) 
                                                       [client] client
#

The default option is client which will recreate the symlink to the client server library, embed will recreate the symlink to the embedded server, while remove will remove the symlink altogether.

There are no messages displayed to inform you of the success of the script, however, if you run it again, you will notice the current setting should be different to that displayed when you previously ran the script.

Prev: Restoring root as the Server Run UserFirebird Documentation IndexUp: Assorted Linux/Unix ScriptsNext: Document history
Firebird Documentation IndexAssorted Linux/Unix Scripts → Running Embedded or Client-Server Apps