Archive for the ‘Mono 2.6’ Category
Ubuntu (NHibernate Mono MySQL) Take 2
In my previous post I am talking about the setting mono, Nhibernate and MySQL stack on Ubuntu, it was a fun experience. However I made a mistake since I didn’t intend seriously use mono at the time I just wipe the whole os off my laptop and boom all the sample code and assembly gone too. But guess what this time I did it again with the combination of
- Nhibernate 3 (beta build from trunk)
- ConfORM (just so I don’t have to worry about .hbm.xml files)
- MySQL driver install via Synaptic Package Manager (cuz I’m a bit lazy this time)
Now see what I got:
And of cause I do make the sample code & assembly accessible at http://www.joljet.net/nhibernate3-confORM-mono.tar.gz .
Build mono on Ubuntu Karmic 9.10 x64
As always I would start off with CRY ME A RIVER :L, lol I told myself that I will never ever build mono from release source or /trunk again. I am lying myself :( ok here I go again this time I load Ubuntu Karmic x64 on my Toshiba M100 ~2 years old the original purpose is to just load it with multimedia app so that my wife could enjoy watching DVD, play MP3, browse the Inernet and blah blah blah … all just for entertainment :) It turn out !
Ok, here is the main story it turn out that I caught an e-mail from mono mailing list Mono 2.6 for Ubuntu its haunting me. Why don’t I just spend sometime with that instead of wasting time playing JX2 :D yeah let try.
- Download Mono 2.6.1 stable source
- Read instruction Parallel Mono Environment; ** people keep telling me to reference this instruction although I did follow the exact step, perhaps someone better shot a webcast instead of writing unworkable instruction.
Build Source
First thing first extract the source code from .tar.bz2 since I not a command savvy *yet* I use nautilus context menu to extract the source file; when all source code extracted let get into command line:
// create mono-dev-env using script written in http://www.mono-project.com/Parallel_Mono_Environments > ./mono-dev-env // your command prompt now shall look like this where ~src is the location that I stored source code [mono] ~src @
libgdiplus-2.6
// just in case execute [mono] ~src @ sudo apt-get build-dep libgdiplus // ... now you are ready to build libgdiplus-2.6 [mono] ~src @ cd libgdiplus-2.6 [mono] ~src/libgdiplus-2.6 @ ./configure --prefix=/opt/mono [mono] ~src/libgdiplus-2.6 @ make; sudo make install
mono-2.6.1
[mono] ~src @ cd mono-2.6.1 [mono] ~src/mono-2.6.1 @ ./configure --prefix=/opt/mono [mono] ~src/mono-2.6.1 @ make; sudo make install
gtk-sharp-2.12.9
Here come the pain :D as gtk-sharp depend on a lot of library we need to make sure those library are installed first before compile gtk-sharp-2.12.9 as of Ubuntu Karmic I need to install the following packages:
> sudo apt-get intall libpango1.0-dev libatk1.0-dev libgtk2.0-dev // after that I can just do [mono] ~src/gtk-sharp-2.12.9 @ ./configure --prefix=/opt/mono [mono] ~src/gtk-sharp-2.12.9 @ make; sudo make install
gnome-sharp-2.24.1
// dependency library just in case > sudo apt-get install libgnomecanvas2-dev libgnome2-dev // resume build task [mono] ~/src/gnome-sharp-2.24.1 @ ./configure --prefix=/opt/mono [mono] ~/src/gnome-sharp-2.24.1 @ make; sudo make install
gnome-desktop-sharp-2.24.0
[mono] ~/src/gnome-desktop-sharp-2.24.0 @ ./configure --prefix=/opt/mono [mono] ~/src/gnome-desktop-sharp-2.24.0 @ make; sudo make install
The rest of the library seem to go just fine, I learn that execute sudo ./configure cause me a lot of troubles thanks @alex for pointing this out.
mono-tools-2.6.1
description on what this library give coming up next …
mono-addins-0.4
description on what this library give coming up next …
mono-debugger-2.6
As I reached to this point ./configure started to complain me like this > configure: error: Cannot find termcap library to solve the problem I need to install
// ref: http://ubuntuforums.org/showpost.php?p=2929293&postcount=3 $ sudo apt-get install libncurses5-dev
Side Note
Petit Eric <surfzoid[at]gmail[dot]com> wrote:
For those who want 2.6.1 deb, there is OBS repository for i586 http://bit.ly/MonoDebOBS, the X86_64 are available here http://surfzoid.free.fr/Mono/ubuntu9.10/ or http://dl.free.fr/c1roVOfLL
in sources directory you will find libgdiplus sources and all files need to build deb from them (.dsc, …) here http://dl.free.fr/iHFHXaIuj you will find mono2.6 idem

