[Qt-interest] QDB2 - Unable to allocate environment

Christopher Xu christopherx at xandros.com
Fri Dec 3 20:36:37 CET 2010


unsubscripts

 

From: Rob Simmermon [mailto:rob.simmermon at simmtechsolutions.com] 
Sent: Friday, November 19, 2010 1:54 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] QDB2 - Unable to allocate environment

 

I’m trying to use QDB2 driver to connect to a DB2 database on an iSeries
machine.  My connect code is pretty simple:

        theDatabase.setHostName(strHostName);  //(Using the IP address
of the server)

        theDatabase.setUserName( strUserName);  //(my user name)

        theDatabase.setPassword( strPassword ); //(my password)

        theDatabase.setDatabaseName(strDBName); //Name of my schema 

 

I keep getting the error :

 

QDB2Driver::open: Unable to allocate environment     Error:

 

Can anyone help explain what the issue is?  This is running on CentOS 5,
64-bit.

 

I’ve compiled Qt 4.7 using the following configure line:

 

./configure -sysconfdir '/etc/sysconfig/' -qt-sql-db2 -v
-I/opt/./IBM/db2/V8.1/include64 -L/opt/IBM/db2/V8.1/lib64 -qt-sql-mysql

 

Thanks!

 

Rob Simmermon


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101203/77ad1431/attachment.html 


More information about the Qt-interest-old mailing list