Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: RexWhitten on December 18, 2009, 09:51:47 PM

Title: Mono on TinyCore
Post by: RexWhitten on December 18, 2009, 09:51:47 PM
I am currently working on compiling and installing mono on Tiny Core. Its been a bit daunting thus far, but i want to create a list of notes and procedures for doing so, as mono compilation and installation documentation is very weak. I feel that TinyCore is a great platform for mono, and TinyCore's small footprint and 'uncluttered-ness' will make it a great platform for Developers used to mono (and .NET) to dive into.

IF anyone is interested on my notes/experiences thus far i would be glad to share them. I would also like to work with someone to get make Mono a TCE for an easy integration into Tiny Core.

Currently my woo's are with the compilation of Mono. As Tiny Core seems to lock up during a compile.  My Tiny Core instance is currently running with 2 GB of ram.

I would also like any feedback from the community if anyone has tried to do the same so far.

Good Stuff TinyCore!
Title: Re: Mono on TinyCore
Post by: curaga on December 19, 2009, 04:07:54 AM
Try enabling swap, or compiling on a hard drive. The hang is likely running out of ram.
Title: Re: Mono on TinyCore
Post by: RexWhitten on December 20, 2009, 10:25:50 AM
Thanks for the advice. That is exactly what it was.

 I was mistaken in the amount of ram i was working with. I was compiling with 1024 MB, and i bumped it to 2048 MB and it is working just fine  :)

Title: Re: Mono on TinyCore
Post by: dentonlt on December 26, 2009, 12:06:34 AM
Hey, Rex. Did you have any luck finishing that? I had started a Go Open Office build awhile back, but decided not to when I discovered I'd have to do the Mono build ...

I'd be much interested!
Title: Re: Mono on TinyCore
Post by: kavierim on January 02, 2010, 05:33:40 AM
I try to compile Mono (.net) to TC too.
Here is list of depends what is needed for compile Mono (via Appbrowser):
- base-dev
- make
- pkg-config
- gcc
- bison
- binutils
- gettext
- glib2-dev
- glib2
- autoconf
- automake
- libtool
- sed
- m4
- perl_xml_parser

Still I have problem to finish the compiling. I will got error that 'mcs' or 'gmcs' don't found. I think that I have some miss understanding with compiling process.

I have tryed with tarball and SVN.

With openSUSE distro I can get successful build.
Title: Re: Mono on TinyCore
Post by: Juanito on January 02, 2010, 09:01:02 AM
according to debian, "mcs" is contained in a package named something like "mono_1.9.1+dfsg.tar.gz"?
Title: Re: Mono on TinyCore
Post by: kavierim on January 06, 2010, 08:29:38 AM
Now I found how to build and install mono 2.6.x to TC.

First install packages - base-dev, make, pkg-config, gcc, bison, binutils, gettext, glib2-dev, glib2

then

wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.6.1.tar.bz2
tar xjvf mono-2.6.1.tar.bz2
cd mono-2.6.1
./configure --prefix=/usr/local --disable-mcs-build
make
make install

but still I have to study how I can build mcs part.
Title: Re: Mono on TinyCore
Post by: RexWhitten on January 28, 2010, 08:21:20 PM
To All,

yes i did get it to build finally. However, i have not been able to test it. The first time i built it, i forgot to persist my changes to the hard drive. It did take a while for it to compile though. All of the libraries above are correct for building mono.

As a short cut, you can use the App Browser to get CodeBlocks IDE and it contains these (I am 90% sure about that). 

I will keep you informed.
Title: Re: Mono on TinyCore
Post by: jur on January 28, 2010, 09:26:22 PM
I am eagerly awaiting the positive outcome of this... :)
Title: Re: Mono on TinyCore
Post by: pmtuan on February 19, 2010, 12:58:55 PM
mono+gtk-sharp.tcz is completed, it takes about 36Mb. 
Title: Re: Mono on TinyCore
Post by: jur on February 20, 2010, 07:43:24 PM
mono+gtk-sharp.tcz is completed, it takes about 36Mb. 
Are you going to submit it to the repo so we can test it?
Title: Re: Mono on TinyCore
Post by: jairobca on March 10, 2010, 05:02:38 PM
Please upload to Repository of Extensions to test, or public link for download 
Title: Re: Mono on TinyCore
Post by: Jason W on March 10, 2010, 07:57:43 PM
Submit instead of posting  a link as links to extensions are against TC forum policy.

Thanks.
Title: Re: Mono on TinyCore
Post by: flip on April 01, 2010, 12:51:36 PM
I can't find the posted mono. Could someone please let me know where to look? Or... Is it possible to test this some other way?
Title: Re: Mono on TinyCore
Post by: RexWhitten on April 06, 2010, 12:47:13 AM
It would appear that it does not appear yet as a TCE.
Title: Re: Mono on TinyCore
Post by: Arslan S. on April 12, 2010, 03:35:59 AM
mono is in repo now, tough there is still a problem similar to python, copying /tmp/tcloop/mono/usr/local/bin/mono to filesystem is a temporary fix (or simply use cp2fs flag), i will add a tce.installed script to do that later.

most important thing to note about compiling mono on tinycore is that mono by default uses relative paths which causes problems because mono searches .dlls in mounted location instead of /usr/local/lib/mono

other mono packages which are not necessary for end-users but useful for developers
mono-basic
mono-debugger
mono-tools
monodevelop (depends on gnome)

so far i have trouble compiling nunit,nant

why i did this because i believe mono is a milestone for many applications such as open office, f-spot, tomboy notes ...
Title: Re: Mono on TinyCore
Post by: RexWhitten on June 06, 2012, 04:27:37 PM
All,

Yes the version in the repository seems to work very well.  While building remastered distributions of Core,  mono will not run because it needs libiconv.so , which is a missing dependency? I have to manually install it.

Otherwise this works very well.