Compiling Mono (no longer needed)
NOTE: This is no longer needed, it has been left here for reference.
Greetings,
It is time to dive deep in to the fun of Linux, compling your own source code. Follow the bouncing ball very closely, because like you, I do not know what I am doing and I am relying on someone elses knowledge.
I take the following information from these two web sites. Both are for older version of ubuntu or older version of mono, but with a few updates, it should work well.
ubuntu v5 - How to compile mono
simios.org - How to compile mono (in portuguese)
Here is my version...
Pre-Requisite
Since we will compile from the sources, us we need some programs before starting. We will also need to satisfy some dependences of the Mono.
bash:~$ sudo apt-get install build-essential pkg-config libglib2.0-dev bison libcairo2-devNow we will need a folder to work:
bash:~$ mkdir srclibgdiplus
bash:~$ cd src
Optional - These steps are not needed but it is good for having libgdiplus if you it will be to use the WinForms classrooms. (In other word, "do it".)
bash:~/src/$ sudo apt-get install libungif4-dev libjpeg62-dev libtiff4-dev
Now we go to lower the library:
bash:~/src/$ wget http://go-mono.com/sources/libgdiplus/libgdiplus-1.2.2.tar.gz
... and to unpack:
bash:~/src/$ tar xzf libgdiplus-1.2.2.tar.gzNow we can compile and install:
bash:~/src/$ cd libgdiplus-1.2.2
bash:~/src/libgdiplus-1.2.2/$ ./configure --prefix=/usr/localNow we have that to have certainty that the installed libraries will be visible, diverse forms exist of if to make this, this is one delas. (Translation program like Bable Fish still need a little work to, just do the following.)
bash:~/src/libgdiplus-1.2.2/$ make
bash:~/src/libgdiplus-1.2.2/$ sudo make install
bash:~/src/libgdiplus-1.2.2/$ sudo sh -c "echo /usr/local/lib >> /etc/ld.so.conf"Now go back a folder...
bash:~/src/libgdiplus-1.2.2/$ sudo /sbin/ldconfig
bash:-~/src/libgdiplus-1.2.2/$ cd ..... on we go to the next step.
Mono
To compile the Mono it is something pleasantly simple:
bash:~/src/$ wget http://go-mono.com/sources/mono/mono-1.2.2.1.tar.gzYou can check the installation thus:
bash:~/src/$ tar xzf mono-1.2.2.1.tar.gz
bash:~/src/$ cd mono-1.2.2.1
bash:~/src/mono-1.2.2.1/$ ./configure --prefix=/usr/local --with-preview=yes
bash:~/src/mono-1.2.2.1/$ make
bash:~/src/mono-1.2.2.1/$ sudo make install
bash:~/src/$ cd ..
bash:~/src/$ mono -VYou can check the compiler version thus:
Mono JIT compiler version 1.1.9.2, (C) 2002-2005 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV : normal
Globalization: normal
bash:~/src/$ gmcs --versionYEAH!! You have now been abducted into the Linux world!!
Mono C# compiler version 1.2.2.1
-Ravon

0 Comments:
Post a Comment
<< Home