# get and compile the latest monodevelop on Ubuntu/Linux

### Remarks / Updates

Ali pointed out that the problem with the certificates might even come up in the configure phase – so you better do

mozroots --import --sync


before you start – just to be sure.

Also on his Ubuntu he needed to install packages for monos addin support.

I only have libmono-addins0.2-cil and libmono-addins-gui0.2-cil installed right now so if in doubt either install those or mono-addins-utils (should include the first) and libmono-addins-gui-cil-dev (the second).

Indeed it might be the case that I already had them installed by a former monodevelop install via the package-manager – sorry and thanks Ali.

I assume you installed mono (I got mono-complete) and git already.
This should be easy using apt-get, synaptic or the software-store.

This is just my write-down of the things I had to do while following
the documentation on github,
as there where some things you might miss (indeed this was triggered
by a question/conversation on twitter).

# Clone it

First let’s get the source-files and it’s submodules:

git clone https://github.com/mono/monodevelop.git
cd monodevelop
git submodule update --init --recursive


This might take some while so get tea 😉

# Configure

I decided to use the stable version and put it into the default location (/usr/lib/monodevelop).
So just configure it this way:

./configure --profile=stable


Well this got me the following error:

configure: error: Cannot enable GNOME platform without gnome-sharp-2.0


Which is no big deal – just grap the packet using apt-get:

sudo apt-get install gnome-sharp2


and retry

./configure --profile=stable


this now works on my test-VM if you have any other issues repeat till you got all dependencies installed.

Hint
If you don’t know the package-names (for example the error was “gnome-sharp-2.0” but the package
is named “gnome-sharp2” use synaptic to search for it (or your favorite search-engine on the net).

# Build

Now just compile/build it:

make


This to fails on the first go for me, and the error is harder to spot – but looking at the output
I did find this:

WARNING: Error getting response stream (Write: The authentication or decryption has failed.)


The real problem is that nuget could not download some packages (nuget is .nets packet manager –
or will be till Paket rules but that is another story).

Anyway it could not get the packages because some Mozilla LXR certificates where missing.
You can get them by running this command:

mozroots --import --sync


Well let’s try again:

make


Now nuget downloads the missing pieces and monodevelop compiles – good.

Of course this too will take some time…

# Install it

This is optional, but as I don’t want to keep the sources and want to use this in production I’m gonna install
monodevelop into the system by:

sudo make install


THAT’S IT

# Clean up (optional)

I don’t need the sources any longer (but you can keep them if you want to update regulary) so:

cd ..
rm monodevelop -rf


Will remove them.

• Ali

i get this error on the ./configure step

configure: error: Package requirements (mono-addins-setup >= 0.3) were not met:

No package ‘mono-addins-setup’ found

any clues where to look to fix this
thanks

• I just checked the current git version and it works for me.

Can you give me the complete error message?

Most likely you could not download/meet some dependency.

mozroots –import –sync

step too before .configure – just in case

• Ali

long story short

yes i needed

mozroots –import –sync

althought the error text from nuget was not exactly the same as you posted
so i guess, if anyone sees nuget in the error message just do: mozroots –import –sync

few other hints i can add
i could only build it with
./configure –profile=stable

anything else will fail for one reason or another
vala will fail even if you have all the vala libs, i searched online and apparently the vala plugin is old and unmaintained

i also got an error from the java plugin, so i didnt waste much more more time
i went to ./configure –profile=stable

another error i was getting during the configuration phase
is a missinh Mono.Adding.Setup.dll
went to ubuntu software center and installed all packages that have mono & addin in it, this fixed it
(very random, i am not sure which package exactly is responsible, but well, it worked)

this was my first ever building anything from source
went a bit tough 🙂

• Thanks for your remarks.

Yes the error from nuget might vary (it’s nuget … ) and yes I only use this for stable as I am only interested in having the latest stable builds 😉

Cannot say anything to java or vala but on my platform the nec. dependencies all where in mono-complete – maybe it’s named differently on other distros (what version of ubuntu where you using – it should be rather similar to my Linux Mint 17 😉 ) so maybe you need mono-devel or something similar.

If you give me your distro/version I will update the post with your valuable remark.

• Ali

i am running kubuntu 14.10 (32 bit)
i can also add, that unfortunately after finally building,
i found that fsharp support was missing
i plan to ask about that on the monodevelop mailing list

• you have to add the [fsharpbindings](https://github.com/fsharp/fsharpbinding) – often the newer builds have no valid sources for the addins so you either have to setup a old url in the addin manager or compile it from source too (btw: you have to add the language bindings 😉 – normally this is done with the addin-manager inside monodevelop but you can add them manually – see the doc on github)

• starbeamrainbowlabs

Hello!

I’ve followed this guide, but I’ve encountered a really annoying error that I can’t seem to get rid of:

FSC: error FS0193: The module/namespace ‘Gdk’ from compilation unit ‘gdk-sharp’ did not contain the namespace, module or type ‘EventClient’
/home/sbrl/Downloads/monodevelop/main/external/fsharpbinding/MonoDevelop.FSharpBinding/Services/FSharpConsoleView.fs(36,6): error FS1109: A reference to the type ‘Gdk.EventClient’ in assembly ‘gdk-sharp’ was found, but the type could not be found in that assembly

I’ve searched the internet over and over again, but I still can’t seem to get rid of it.

Can anyone help me please?

• José Fernando Garcia Junior

install libgtk-sharp-beans-cil and libgtk-sharp-beans2.0-cil-dev