[Mono-dev] Problem with compiling using MySQL library

Kenneth Jensen xmlsec at gmail.com
Mon Oct 2 06:44:59 EDT 2006


Hello,

I am trying to compile a small hello-program which will open a
connection to a MySQL database, but the mcs compiler fails because it
can't find the MySQL library ( I am running Fedora 5 Linux).

I have installed the MySql.Data.dll into the GAC, using "gacutil -i
MySql.Data" and I can even confirm its existence and version:

[kaj at adm7-203 w5]$ gacutil -l MySql.Data
The following assemblies are installed into the GAC:
MySql.Data, Version=1.0.7.30073, Culture=neutral,
PublicKeyToken=8e323390df8d9ed4
Number of items = 1
[kaj at adm7-203 w5]$ mcs MySqlExample.cs -r:System.Data -r:MySql.Data
error CS0006: Cannot find assembly `MySql.Data'
Log:

Compilation failed: 1 error(s), 0 warnings
[kaj at adm7-203 w5]$

I'm quite new to Mono, so forgive me if I have missed something
obvious, but should I do anything else besides installing new modules
into the GAC, for the compiler and runtime to be able to reference
them?

---
Cheers,
Kenneth



More information about the Mono-devel-list mailing list