[Mono-list] monobasepath.bat Environment Variable Problem

JD Conley jconley@winfessor.com
Thu, 3 Jul 2003 16:06:02 -0700


This is a multi-part message in MIME format.

------_=_NextPart_001_01C341B7.AC7A88A2
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

In a default Windows installation of Mono I noticed an issue with the
monobasepath.bat file (put in the Windows directory by the install).  It
sets up the environment variables with quotes around them by default.
This causes the Mono runtime to search for the machine.config file in a
location that does not exist.  It also incorrectly sets up the path for
the config directory.
=20
Here is what the file looked like when it was installed:
=20
set MONO_BASEPATH=3D"C:\Program Files\Mono-0.25"
set MONO_PATH=3D"C:\Program Files\Mono-0.25\lib"
set MONO_CFG_DIR=3D"C:\Program Files\Mono-0.25\etc\mono"
=20
Here is what it should look like in order to function properly:
=20
set MONO_BASEPATH=3DC:\Program Files\Mono-0.25
set MONO_PATH=3DC:\Program Files\Mono-0.25\lib
set MONO_CFG_DIR=3DC:\Program Files\Mono-0.25\etc
=20
I haven't looked into the code for the installer so I'm not sure what to
do to fix it.  But hopefully someone can.  :)  Not being able to find
the machine.config was causing issues with the XML DOM when trying to
load documents from a local file.
=20
Thanks,
JD

------_=_NextPart_001_01C341B7.AC7A88A2
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.3790.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial =
size=3D2>In&nbsp;a=20
default&nbsp;Windows installation of Mono I noticed an issue with the=20
monobasepath.bat file (put in the Windows directory by the =
install).&nbsp;=20
It&nbsp;sets&nbsp;up the environment variables with quotes around them =
by=20
default.&nbsp; This causes the Mono runtime to search for the =
machine.config=20
file in a location that does not exist.&nbsp; It also =
incorrectly&nbsp;sets=20
up&nbsp;the path for the config directory.</FONT></SPAN></DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial size=3D2>Here =
is what the=20
file looked like when it was installed:</FONT></SPAN></DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial size=3D2>set=20
MONO_BASEPATH=3D"C:\Program Files\Mono-0.25"<BR>set =
MONO_PATH=3D"C:\Program=20
Files\Mono-0.25\lib"<BR>set MONO_CFG_DIR=3D"C:\Program=20
Files\Mono-0.25\etc\mono"</FONT></SPAN></DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial size=3D2>Here =
is what it=20
should look like in order to function properly:</FONT></SPAN></DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial size=3D2>set=20
MONO_BASEPATH=3DC:\Program Files\Mono-0.25<BR>set MONO_PATH=3DC:\Program =

Files\Mono-0.25\lib<BR>set MONO_CFG_DIR=3DC:\Program=20
Files\Mono-0.25\etc</FONT></SPAN></DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial size=3D2>I =
haven't looked=20
into the code for the installer so I'm not sure what to do to fix =
it.&nbsp; But=20
hopefully someone can.&nbsp; :)&nbsp; Not being able to find the =
machine.config=20
was causing issues with the XML DOM&nbsp;when trying to load documents =
from a=20
local file.</FONT></SPAN></DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial=20
size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D933195522-03072003><FONT face=3DArial=20
size=3D2>JD</FONT></SPAN></DIV></BODY></HTML>
=00
------_=_NextPart_001_01C341B7.AC7A88A2--