[Mono-list] mono and mysql
Steven Balthazor
stbalthazor@socious.com
Fri, 27 Dec 2002 08:16:21 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C2AD80.3D6FEE40
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
I am new to mono/.Net and have been lurking on the list for sometime; I
finally found some time to install mono and try it out.
=20
I got mysql working with mono using the included classes =
(Mono.Data.Mysql)
but I had to do some odd things.=20
=20
To get it to compile correctly on Linux I had to add a link from
/usr/lib/libmysqlclient.so to /usr/lib/libmySQL.so e.g.:
ln -s libmysqlclient.so libmySQL.so
=20
Question 1: Is this just an oddity from my installation (I am running =
Redhat
7.3/mono rpm version) or is this normal?
=20
then I had to compile it with the commandline:
mcs file.cs -r System.Data.dll -r Mono.Data.MySql.dll
=20
Question 2: Is it possible to specify in a file somewhere the location =
of
the libraries so that I don't need to use the -r parameters everytime I
compile?
=20
On windows (I used the windows installer) I had some difficulties =
getting it
to compile until I used the following command line:
monomcs file.cs -L c:\mono-0.17\install -r System.Data.dll -r
Mono.Data.MySql.dll
=20
Question 3: Is it possible to specify the library (-L) somewhere in a =
file
so that it does not need to be passed everytime I compile?
=20
Question 4: I am planning on doing some work/testing with Mysql using =
Mono
and was wondering which product/component should I use to report/query =
bugs?
There are a couple of different options; none seem to fit exactly.
=20
Thanks for any help anyone can provide. I hope to provide more help and
less lurking in the future.
=20
Cheers,
Steven Balthazor
------=_NextPart_000_0007_01C2AD80.3D6FEE40
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial size=3D2>I am =
new to=20
mono/.Net and have been lurking on the list for sometime; I finally =
found=20
some time to install mono and try it out.</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial size=3D2>I got =
mysql working=20
with mono using the included classes (Mono.Data.Mysql) but I had to do =
some odd=20
things. </FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial size=3D2>To get =
it to compile=20
correctly on Linux I had to add a link from =
/usr/lib/libmysqlclient.so to=20
/usr/lib/libmySQL.so e.g.:</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial size=3D2>ln -s=20
libmysqlclient.so libmySQL.so</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial =
size=3D2>Question 1: Is this=20
just an oddity from my installation (I am running Redhat 7.3/mono rpm =
version)=20
or is this normal?</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial size=3D2>then I =
had to=20
compile it with the commandline:</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial size=3D2>mcs =
file.cs -r=20
System.Data.dll -r Mono.Data.MySql.dll</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial =
size=3D2>Question 2: Is it=20
possible to specify in a file somewhere the location of the libraries so =
that I=20
don't need to use the -r parameters everytime I =
compile?</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial size=3D2>On =
windows (I used=20
the windows installer) I had some difficulties getting it to compile =
until I=20
used the following command line:</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial =
size=3D2>monomcs file.cs -L=20
c:\mono-0.17\install -r System.Data.dll -r=20
Mono.Data.MySql.dll</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial =
size=3D2>Question 3: Is it=20
possible to specify the library (-L) somewhere in a file so that it does =
not=20
need to be passed everytime I compile?</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial =
size=3D2>Question 4: I am=20
planning on doing some work/testing with Mysql using Mono and was =
wondering=20
which product/component should I use to report/query bugs? There =
are a=20
couple of different options; none seem to fit =
exactly.</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial size=3D2>Thanks =
for any help=20
anyone can provide. I hope to provide more help and less lurking =
in the=20
future.</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial=20
size=3D2>Cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=3D942595414-27122002><FONT face=3DArial size=3D2>Steven =
Balthazor</FONT></SPAN></DIV></BODY></HTML>
------=_NextPart_000_0007_01C2AD80.3D6FEE40--