经过多次实践,终于经不起折腾,在yum下安装了monodevelop,将其中的过程分享出来。希望对大家,有一些帮助。
我是在yum下安装成功的,使用的源是上海交大的
1.添加上海交大的yum源
gedit /etc/yum.repos.d/sjtu.repo
在打开的文件中添加以下内容:
[Fedora-ftp.sjtu.edu.cn]
name=Fedora 10 - i386
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/10/Fedora/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[Everything-ftp.sjtu.edu.cn]
name=Everything 10 - i386
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/10/Everything/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[updates-ftp.sjtu.edu.cn]
name=Fedora updates
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/updates/10/i386/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
保存退出。然后执行
yum makecache
这些都是在网上找到的信息
2.安装monodevelop
#yum install monodevelop
yum会自动帮你解析包的依赖关系,一次性就安装好了。试一下运行效果。
3.测试
1,测试命令
写一个最有名的 helloworld
#gedit hello.cs
在里面写
class hello
{
public static void Main(string[ ] args)
{ System.Console.WriteLine("Hello Mono");
}
}
保存 退出
# mcs hello.cs
# mono hello.exe
Hello Mono
成功
2,测试图形界面
在程序-》编程 里点 monodevelop
启动界面
new ->solution
选择 空工程
名字叫 hello
new-》file
选择空类
名字为 hello
把刚刚的代码写进去
编译 -----运行
成功