[Mono-list] IBM.Data.DB2 on ubuntu

Bojan Rajkovic bojanr at brandeis.edu
Tue Feb 10 12:57:45 EST 2009

You're forgetting to add a reference to IBM.Data.DB2.dll on the gmcs command

You should be compiling your code as follows: gmcs
-r:/usr/lib/mono/1.0/IBM.Data.DB2.dll helloDB2.cs.
If your Mono libs are installed somewhere different (if you compiled from
source, they may be in /usr/local/lib/mono), you'll need to change that part
of the path.


-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Bartolomeo
Sent: Tuesday, February 10, 2009 12:20 PM
To: mono-list at lists.ximian.com
Subject: [Mono-list] IBM.Data.DB2 on ubuntu


I've installed mono, and xsp (not yet mod_mono) following the instruction


in view of using mod_mono together with php on ubuntu server 8.04.

This is to migrate a web service that access a db2 database.

I've also installed db2exc from ubuntu repository as said here:


and as said here:


I've added the library path with the command:

sudo /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32

But if I try to compile a file that makes use of the namespace IBM.Data.DB2
I got:

siap at LxPC54:~/src/test$ gmcs helloDB2.cs 
helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does not
exist in the namespace `System'. Are you missing an assembly reference?
helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could not
be found. Are you missing a using directive or an assembly reference?
Compilation failed: 2 error(s), 0 warnings

could someone help me?

Many thanks 

Best regards
View this message in context:
Sent from the Mono - General mailing list archive at Nabble.com.

Mono-list maillist  -  Mono-list at lists.ximian.com

More information about the Mono-list mailing list