Installing mono From Trunk (.Net 4.0 Support)
Posted: May 22nd, 2010, 3:41 pm
Hi all,
I was recently working on getting SABSync to work on Linux, but as I've moved to the .Net 4.0 framework a little more effort than simply booting up Ubuntu and running it was required. So here are the steps I followed to get it up and running, paths are related to my system, so you may need to make changes for it to work on your system.
All commands are run through Terminal, in case that wasn't obvious on Ubuntu 10.04 this was under: Applications -> Accessories -> Terminal
First and foremost, to compile mono from the svn source you need at least mono 2.4 installed, check by running:
If you're running a version lower than 2.4 you will need to update (Ubuntu 10.04 shipped with 2.4.4, though 2.6.x is available)
My username for Ubuntu was "user" and I put everything in the Downloads folder, but you can place it anywhere you wish (or substitute your username in place of "user"):
Download the required tools to compile mono from source (command should be on a single line):
Create a new folder for the mono source:
Change Directory (cd) into the monosvn folder:
Use svn to download the files (this will take a few mins):
Determine what --prefix should be equal to, first cd to the root of your system and then you will use find to find a folder specific to mono:
In my case the result is: /usr/lib/mon/compat-1.0 so my prefix is /usr (everything preceeding /lib)
The example from the mono site is: /usr/local
Change Directory (cd) to the mono folder from your svn check out:
Configure mono (with support for 4.0):
Once configured you need to run make (this will take a long time, depending on your system):
Now you need to install mono:
Now you can run SABSync or any other .Net application requiring v4.0 of the .Net Framework!
Specific to SABSync:
I have SABSync.exe on my system located at:
So I cd to the directory like so:
And run it by:
I also used chmod SABSync.exe to have Execute priviledges:
And now can run it from /home/user/Downloads/SABSync:
Or from anywhere on my system by Symlinking SABSync and RSS.NET.dll to directories in the path variable:
So now I can run SABSync.exe from any folder by simply running:
I hope this helps someone, please let me know if I can help in some way, by no means am I great with Linux, but I do manage.
Happy Downloading,
Markus
I was recently working on getting SABSync to work on Linux, but as I've moved to the .Net 4.0 framework a little more effort than simply booting up Ubuntu and running it was required. So here are the steps I followed to get it up and running, paths are related to my system, so you may need to make changes for it to work on your system.
All commands are run through Terminal, in case that wasn't obvious on Ubuntu 10.04 this was under: Applications -> Accessories -> Terminal
First and foremost, to compile mono from the svn source you need at least mono 2.4 installed, check by running:
Code: Select all
mono --versionMy username for Ubuntu was "user" and I put everything in the Downloads folder, but you can place it anywhere you wish (or substitute your username in place of "user"):
Code: Select all
/home/user/DownloadsCode: Select all
sudo apt-get install build-essential automake libtool gettext mono-devel mono-1.0-devel subversion libpng-dev libtiff-dev libgif-dev libjpeg-dev libexif-dev autoconf automake bison flex libcairo2-dev libpango1.0-devCode: Select all
mkdir /home/user/Downloads/monosvnCode: Select all
cd /home/user/Downloads/monosvnCode: Select all
svn co svn://anonsvn.mono-project.com/source/trunk/mcs
svn co svn://anonsvn.mono-project.com/source/trunk/mono
svn co svn://anonsvn.mono-project.com/source/trunk/gtk-sharp
svn co http://anonsvn.mono-project.com/source/trunk/libgdiplusCode: Select all
cd /
find -name compat-1.0The example from the mono site is: /usr/local
Change Directory (cd) to the mono folder from your svn check out:
Code: Select all
cd monoCode: Select all
./autogen.sh --with-profile4=yes --prefix=/usrCode: Select all
makeCode: Select all
sudo make installSpecific to SABSync:
I have SABSync.exe on my system located at:
Code: Select all
/home/user/Downloads/SABSyncCode: Select all
cd /home/user/Downloads/SABSyncCode: Select all
mono ./SABSync.exeCode: Select all
chmod +x SABSync.exeCode: Select all
./SABSync.exeCode: Select all
ln -s /home/user/Downloads/SABSync/SABSync.exe /usr/bin
ln -s /home/user/Downloads/SABSync/RSS.NET.dll /usr/libCode: Select all
SABSync.exeI hope this helps someone, please let me know if I can help in some way, by no means am I great with Linux, but I do manage.
Happy Downloading,
Markus