When creating a db2 user one has to add the db2profile command to e.g. .bashrc - then all the needed environment variables are set.
One of the main variables are libdb2.so, which is normally located at /home/<...db2inst...>/sqllib/lib32.
VASmalltalk can not find this library. One has now several ways to do it - but what is the recommended way ?
a) create a symbolic link to libdb2.so and put it into the bin directory of your Smalltalk application or VASmalltalk/7.0/bin.
b) there is the fine method "getOdbcLibraryNameFromIniFileIfAbsent:" - but guess what - its empty and returns the value of the parameter: libdb2.so. Therefore you can not do this with DB2.
Under Linux it would be clever to get the value of LD_LIBRARY_PATH and look for the lib32 entry within this env. variable.
Therefore the question: what is the best way to do it ?
From my view it would be the best, if VA would try to read the variable and test to see, if the file exists anywhere (otherwise the user has no valid DB2 environment at all).
Marten