[Mono-dev] error CS0006: cannot find metadata file `System.Data.dll`
m.j.hutchinson at gmail.com
Thu Sep 4 17:59:49 EDT 2008
On Thu, Sep 4, 2008 at 4:27 PM, lrt <ltracchia at gmail.com> wrote:
> i'm trying to follow the guide http://www.mono-project.com/MySQL here to
> connect to a MySql database with C#. I already downloaded the
> http://dev.mysql.com/downloads/connector/net/5.2.html Connector/NET 5.2 and
> followed the instructions
> here .
> when i run, # gacutil -i /etc/mono/1.0/MySql.Data.dll i get "Installed
> /etc/mono/1.0/MySql.Data.dll into the gac (/usr/lib/mono/gac). so that looks
> all good.
> but then i try to run, # gmcs TestExample.cs -r:System.Data.dll
> -r:/usr/lib/mono/gac/MySql.Data/126.96.36.199_c5687fc88969c44d/MySql.Data.dll (as
> specified in the guide)-- and i get:
> # error CS0006: cannot find metadata file `System.Data.dll`
> i did a 'find' command and, its true, the file is missing.
> anyone know how i can get this to work?
> i'm running Mysql 5.0.51a, Ubuntu 8.04, and Mono 1.9.1
Unlike most other distros, Debian/Ubuntu breaks Mono up into many
smaller packages. One of them contains the 1.0 System.Data.dll, and
another contains the 2.0 System.Data.dll, though I can't remember the
package names right now.
More information about the Mono-devel-list