[Mono-list] Install mono on centos 6.2

jmalcolm malcolm.justin at gmail.com
Sat Jan 21 17:26:21 UTC 2012


ruro wrote
> 
> I've install mono-winforms with command
> /# yum install mono-winforms/
> 
> but when i run the software I get an error
> /#mono software.name.file.exe
> Missing method EnableVisualStyles in assembly software.name.file.exe, type
> System.Windows.Forms.Application  
> Unhandled Exception: System.IO.FileNotFoundException: Could not load file
> or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089' or one of its dependencies. 
> File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089'/
> 

A WinForms app should work fine on Mono. Also,
"Application.EnableVisualStyles" is certainly supported. So, I do not think
that the previous reply about missing functionality is correct. I suspect
that your installation of Mono is simply incomplete or misconfigured.

To be honest, I have always compiled Mono from source on CentOS. Building
'libgdiplus' is a pain the first time because of all the image format
support dev packages you need to install (although those are all just 'yum
install' away) but Mono itself builds like a champ with a simple '/configure
&& make && make install'.

If I recall, the only dependency I needed to install to build Mono was
'bison'. That assumes that you already have 'gcc', 'libtool', 'automake',
'autoconf', 'pkgconfig', and the like installed though I suppose.
Regardless, you only need to install the supporting packages once and then
building it is a breeze every time after that. I build Mono from source on a
CentOS box just this morning.

I do not know how the packages work. Is it possible that you have installed
the assemblies for CLR4 but not the ones for CLR2. It is the Version=2.0.0.0
version of System.WIndows.Forms that your app is trying to call. Is there a
CLR2 version of 'mono-winforms' or does that package install both versions
of the framework?

Does this app work on Windows? Does it work on Mono elsewhere? Is it
possible to compile it as a .NET 4 app?

--
View this message in context: http://mono.1490590.n4.nabble.com/Install-mono-on-centos-6-2-tp4312301p4316486.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list