<commit_before><ul class="breadcrumb">
    <li>Using</li>
    <li class="active">Compiling MonoDevelop</li>
</ul>

<H2>Compiling MonoDevelop</H2>
<p>These instructions are for compiling MonoDevelop on Linux using the Mono 5 repositories. This may be the case for some distributions which do not support flatpak.</p>

<ul>
<li><a href="#ubuntu14">Ubuntu 14</a></li>
<li><a href="#ubuntu16">Ubuntu 16</a></li>
<li><a href="#centso6">CentOS 6</a></li>
<li><a href="#centso7">CentOS 7</a></li>
</uL>

<H2 id="ubuntu14">Ubuntu 14</H2>

<H3>Deleting pre-Mono 5 packages</H3>
<p>If you already have a previous installation of Mono (pre 5), and want to change to the v5 repositories, I recommend deleting all previously installed Mono packages.</p>
<p>First of all, install the <code>ppa-purge</code> tool.</p>
<code>
sudo apt-get install ppa-purge
</code>
<p>Then run this command:</p>
<code>
sudo ppa-purge -s download.mono-project.com  -p wheezy_main repo_debian_dists
</code>
<p>There should be no sign of mono left on your system following this.</p>

<H3>Install mono</H3>
<p>Follow the <a href="http://www.mono-project.com/download/#download-lin">Linux instructions</a> for installing the latest Mono (v5+) repositories. Ensure that you get the <code>mono-complete</code> and <code>msbuild</code> packages in order to compile MonoDevelop.</p>

<H3>Get dependencies</H3>
<p>Run this command to get all the dependencies requires to compile MonoDevelop:</p>
<code>
sudo apt-get install git automake autoconf mono-complete msbuild fsharp libgtk2.0-cil-dev libglade2.0-cil-dev cmake libssh2-1-dev
</code>

<H3>Get the MonoDevelop source</H3>
<p>Get the git repository:</p>
<code>
git clone https://github.com/mono/monodevelop.git
</code>
<p>Last known good git tag is: <code>monodevelop-7.0.1.24</code></p>
<!--<p>Last known good git revision is: <code>82a46827fd72523c7598708d63fe988c64bdcc3b</code></p>-->

<H3>Configure the build</H3>
<code>
cd monodevelop
</code>
<p>Change the prefix to use a different install location</p>
<code>
./configure --prefix=/opt/monodevelop
</code><commit_msg>Delete the Ubuntu 14 PPA<commit_after><ul class="breadcrumb">
    <li>Using</li>
    <li class="active">Compiling MonoDevelop</li>
</ul>

<H2>Compiling MonoDevelop</H2>
<p>These instructions are for compiling MonoDevelop on Linux using the Mono 5 repositories. This may be the case for some distributions which do not support flatpak.</p>

<ul>
<li><a href="#ubuntu14">Ubuntu 14</a></li>
<li><a href="#ubuntu16">Ubuntu 16</a></li>
<li><a href="#centso6">CentOS 6</a></li>
<li><a href="#centso7">CentOS 7</a></li>
</uL>

<H2 id="ubuntu14">Ubuntu 14</H2>

<H3>Deleting pre-Mono 5 packages</H3>
<p>If you already have a previous installation of Mono (pre 5), and want to change to the v5 repositories, I recommend deleting all previously installed Mono packages.</p>
<p>First of all, install the <code>ppa-purge</code> tool.</p>
<code>
sudo apt-get install ppa-purge
</code>
<p>Then run this command:</p>
<code>
sudo ppa-purge -s download.mono-project.com  -p wheezy_main repo_debian_dists
</code>
<p>There should be no sign of mono left on your system following this.</p>
<p>Finally delete the old Mono PPA:</p>
<code>
sudo rm /etc/apt/sources.list.d/mono-xamarin.list
</code>

<H3>Install mono</H3>
<p>Follow the <a href="http://www.mono-project.com/download/#download-lin">Linux instructions</a> for installing the latest Mono (v5+) repositories. Ensure that you get the <code>mono-complete</code> and <code>msbuild</code> packages in order to compile MonoDevelop.</p>

<H3>Get dependencies</H3>
<p>Run this command to get all the dependencies requires to compile MonoDevelop:</p>
<code>
sudo apt-get install git automake autoconf mono-complete msbuild fsharp libgtk2.0-cil-dev libglade2.0-cil-dev cmake libssh2-1-dev
</code>

<H3>Get the MonoDevelop source</H3>
<p>Get the git repository:</p>
<code>
git clone https://github.com/mono/monodevelop.git
</code>
<p>Last known good git tag is: <code>monodevelop-7.0.1.24</code></p>
<!--<p>Last known good git revision is: <code>82a46827fd72523c7598708d63fe988c64bdcc3b</code></p>-->

<H3>Configure the build</H3>
<code>
cd monodevelop
</code>
<p>Change the prefix to use a different install location</p>
<code>
./configure --prefix=/opt/monodevelop
</code>
{'fraction_non_alphanumeric': 0.15228544776119404, 'fraction_numerical': 0.03451492537313433, 'mean_word_length': 5.075070821529745, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 177, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5547650', 'n_tokens_mistral': 1663, 'n_tokens_neox': 1496, 'n_words': 466}