嗯,这是我想出来的,对我有用:
$yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget $cd /usr/local/src $wget http://download.mono-project.com/sources/mono/mono-3.0.1.tar.bz2 $tar jxf mono-3.0.1.tar.bz2 $cd mono-3.0.1 $./configure --prefix=/opt/mono $make && make install
然后我下载了MonoDevelop IDE,并使用Mono框架编译了我的程序.
然后在Centos我打电话给我的程序:
/ opt / mono / bin / mono /root/MyFolder/MyProgramDir/myProgram.exe“$@”