Goal:
How to compile mono from source code and use mono to build a C# code on CentOS.
Env:
CentOS 6.5
Solution:
1. Checkout Mono source code from github
Refer to
http://www.mono-project.com/docs/compiling-mono/linux/
git clone git://github.com/mono/mono.git
2. Switch to a branch
cd mono
git checkout mono-4.3.2-branch
3. Build mono from source
./autogen.sh --prefix=/usr/local
make get-monolite-latest
make
make install
4. Create a sample C# code
# cat test.cs
using System;
class ExampleClass
{
static void Main()
{
Console.WriteLine("Hello, world!");
}
}
5. Compile C# code using mono and execute it.
mcs test.cs
mono test.exe
bash: ./autogen.sh: No such file or directory
ReplyDeletegiving this error in centos 6
done i forgot to follow step no :2
DeleteC7805EBEB2
ReplyDeletetakipçi satın al
Youtube Takipçi Hilesi
Telafili Takipçi
Yabancı Numara Al
EFT ile Takipçi
F44E29009B
ReplyDeletekiralık hacker
hacker arıyorum
belek
kadriye
serik
ReplyDeleteİnternette oyun indirme siteleri arasında güvenilir olanlar oldukça nadirdir, bu nedenle dikkatli olmak önemlidir. Eğer güvenli ve hızlı bir şekilde oyun indirmek istiyorsanız, önerim https://oyun.indir.biz.tr adresini ziyaret etmenizdir. Bu site, kullanıcılarına çeşitli oyun seçenekleri sunarken aynı zamanda dosya güvenliğini de ön planda tutuyor. Böylece, herhangi bir virüs veya zararlı yazılım riski olmadan oyunlarınızı indirebilirsiniz. Güvenliğinizi ön planda tutarak en iyi deneyimi yaşamak için bu siteyi tercih edebilirsiniz.