[MonoDevelop] Problems compiling latest mono and monodevelop

Michael Hutchinson m.j.hutchinson at gmail.com
Sat Dec 29 15:34:18 EST 2007


Hi,

On Dec 29, 2007 9:50 AM, Neil Munro <neilmunro at gmail.com> wrote:
> I have been away from the net when mono 1.2.6 was released and thought i
> would simply download and install using instructions i was previously given
> from this list, however I was very confused when the instructions did not
> work, and since I try and keep a clean system i make uninstalled 1.2.5.x and
> that refuses to install now.

Please read http://www.mono-project.com/Parallel_Mono_Environments and
http://mjhutchinson.com/journal/2007/11/08/how_not_break_mono for
advice on keeping a clean Mono build.

> sudo apt-get build-dep mono monodevelop
> Download mono-1.2.5.2.tar.bz2<
> http://go-mono.com/sources/mono/mono-1.2.5.2.tar.bz2>and
> monodevelop-0.17.tar.bz2<http://go-mono.com/sources/monodevelop/monodevelop-0.17.tar.bz2
> >from
> http://go-mono.com/sources-stable/.
>
> bunzip2 mono-1.2.5.2.tar.bz2
> tar xvf mono-1.2.5.2.tar
> cd mono-1.2.5.2
> ./configure -prefix=`pkg-config --variable=prefix mono`

This is not good, as it's expressly designed to install Mono 1.2.5.1
ON TOP of your existing Mono, which can break things. Since you
removed Mono already, it won't work. Unfortunately, there's a lot of
advice like this going around.

> make
> sudo make install
>
> bunzip2 monodevelop-0.17.tar.bz2
> tar xvf monodevelop-0.17.tar
> cd monodevelop-0.17
> ./configure -prefix=`pkg-config --variable=prefix mono`

This command also is designed to install Mono into the /usr prefix,
which is generally not good proactice. Software you have compiled
yourself usually goes into /usr/local. For teh sake of simplicity I'd
make an exception for mono-addins, becuase it need to be in the GAC,
and Mono doesn't search the /usr/local GAC by default.

> make
> sudo make install
>
>
> Obviously I substituted version numbers where needed but now i have no mono
> install on my computer and I would like to fix this. Can someone help me?

Use apt to reinstall Mono, to make sure that anything in your system
that depends on it works properly. You will be able to use MonoDevelop
with this Mono. Bear in mind that this time you will need to install
mono-addins-0.3 too.

If you wish, you can set up a parallel install as per the instructions
in the pages that I linked, and install MD into the parallel
environment.

HTH,
-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list