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

Bartolomeo Nicolotti bnicolotti at siapcn.it
Tue Feb 10 13:08:58 EST 2009




Bartolomeo Nicolotti wrote:
> 
> Hi,
> 
> I've installed mono, and xsp (not yet mod_mono) following the instruction
> here:
> 
> http://ubuntuforums.org/showthread.php?t=803743
> 
> 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:
> 
> http://www.ubuntu.com/partners/ibm/db2
> 
> and as said here:
> 
> http://www.mail-archive.com/mono-devel-list@lists.ximian.com/msg02323.html
> 
> 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
> 


siap at LxPC54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll
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?
Compilation failed: 1 error(s), 0 warnings

-- 
View this message in context: http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21939280.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list