Hi,

Copy the attached "build.sh" into the "Driver" folder of the
mysql package and execute it. Then pick the assemblies from
Driver/mono/bin/2.0/.

The assembly is not signed, so you won't be able to install it
into the GAC.

Robert


enzo wrote:
I downloaded the dll from MYDAC mysql-connector-net-1.0.10.1-noinstall.zip file.
It seems tat there is no package specific for mono on the MYDAC site.

I also tried to compile the source ( from file: mysql-connector-net-1.0.10.1-src.zip ) but I failed, I didn't know how compile it so i tried to guess.
I have tried with nant but I get some errors, see belowe:

[EMAIL PROTECTED] mysql-connector-net-1.0.10.1-src]$ nant 
-buildfile:Package.build
NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///usr_data/DOWNLOAD/DATABASE/mysql-connector-net-1.0.10.1-src/Package.build
Target framework: Mono 2.0 Profile
Target(s) specified: all

     [echo] 08/26/2007 23:10:13
[delete] Deleting directory '/usr_data/DOWNLOAD/DATABASE/mysql-connector-net-1.0.10.1-src/packages'. [mkdir] Creating directory '/usr_data/DOWNLOAD/DATABASE/mysql-connector-net-1.0.10.1-src/packages'.

BUILD FAILED

/usr_data/DOWNLOAD/DATABASE/mysql-connector-net-1.0.10.1-src/Package.build(21,3):
Function call failed.
Expression: ${assemblyname::get-version(assemblyname::get-assembly-name('mysqlclient/bin/net-1.1/release/mysql.data.dll'))} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not load file or assembly '/usr_data/DOWNLOAD/DATABASE/mysql-connector-net-1.0.10.1-src/mysqlclient/bin/net-1.1/release/mysql.data.dll' or one of its dependencies. The system cannot find the file specified.

Total time: 0.4 seconds.


Is this the right way to compile the source  ?
If not can you tell me  how do it ( i didn't found a tutorial on that ) ?

Regards, and thanks for your help, Enzo

Robert Jordan wrote:
It seems that you're using the Windows version of the mysql
client. Pity, in the past the versions were compatible.

Try to get a version compiled for Mono.

Robert

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list



#!/bin/bash

mkdir -p mono/bin/2.0

gmcs -d:MONO -d:NET20 -debug -checked- -out:mono/bin/2.0/MySql.Data.dll 
-t:library \
    -pkg:dotnet -r:System.Transactions \
Properties/AssemblyInfo.cs \
Source/Resources.Designer.cs \
Source/CharSetMap.cs \
Source/command.cs \
Source/CommandBuilder.cs \
Source/common/ContextString.cs \
Source/common/NamedPipeStream.cs \
Source/common/NativeMethods.cs \
Source/common/Platform.cs \
Source/common/SHA1.cs \
Source/common/SharedMemoryStream.cs \
Source/common/StreamCreator.cs \
Source/common/Version.cs \
Source/common/WinCE.cs \
Source/CompressedStream.cs \
Source/Connection.cs \
Source/Crypt.cs \
Source/dataadapter.cs \
Source/datareader.cs \
Source/Driver.cs \
Source/Exception.cs \
Source/Field.cs \
Source/ISSchemaProvider.cs \
Source/Logger.cs \
Source/MySqlClientFactory.cs \
Source/MySqlConnectionStringBuilder.cs \
Source/MysqlDefs.cs \
Source/MySqlError.cs \
Source/MySqlHelper.cs \
Source/MySqlPool.cs \
Source/MySqlPoolManager.cs \
Source/MySqlPromotableTransaction.cs \
Source/MySqlStream.cs \
Source/NativeDriver.cs \
Source/parameter.cs \
Source/parameter_collection.cs \
Source/PerformanceMonitor.cs \
Source/PreparableStatement.cs \
Source/ProcedureCache.cs \
Source/SchemaProvider.cs \
Source/Statement.cs \
Source/StoredProcedure.cs \
Source/transaction.cs \
Source/Types/MetaData.cs \
Source/Types/MySqlBinary.cs \
Source/Types/MySqlBit.cs \
Source/Types/MySqlByte.cs \
Source/Types/MySqlConversionException.cs \
Source/Types/MySqlDateTime.cs \
Source/Types/MySqlDecimal.cs \
Source/Types/MySqlDouble.cs \
Source/Types/MySqlInt16.cs \
Source/Types/MySqlInt32.cs \
Source/Types/MySqlInt64.cs \
Source/Types/MySqlSingle.cs \
Source/Types/MySqlString.cs \
Source/Types/MySqlTime.cs \
Source/Types/MySqlUByte.cs \
Source/Types/MySqlUInt16.cs \
Source/Types/MySqlUInt32.cs \
Source/Types/MySqlUInt64.cs \
Source/Types/MySqlValue.cs \
Source/UsageAdvisor.cs \
Source/zlib/Adler32.cs \
Source/zlib/Deflate.cs \
Source/zlib/InfBlocks.cs \
Source/zlib/InfCodes.cs \
Source/zlib/Inflate.cs \
Source/zlib/InfTree.cs \
Source/zlib/StaticTree.cs \
Source/zlib/SupportClass.cs \
Source/zlib/Tree.cs \
Source/zlib/ZInputStream.cs \
Source/zlib/Zlib.cs \
Source/zlib/ZOutputStream.cs \
Source/zlib/ZStream.cs \
Source/zlib/ZStreamException.cs \
Source/common/Cache.cs
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to