DB2, Linux and libdb2.so

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

DB2, Linux and libdb2.so

Postby marten » Sat Dec 30, 2006 12:57 pm

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
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: DB2, Linux and libdb2.so

Postby marten » Tue Jan 02, 2007 1:02 am

marten wrote:When creating a db2 user one has to add the db2profile command to e.g. .bashrc - then all the needed environment variables are set.


Forget this error description. The LD_LIBRARY_PATH is set, and the library is automatically found. But the administrator (me :-)) should do the right configuration steps to make it work .... :-(

Marten
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest