MonoDevelop 1.0 on CentOS 5 and Fedora: Compiling and Installing

Mono及MonoDevelop安装 讲述Mono在CentOS 6.6下的编译和安装过程 立即下载

Recently, I had to get MonoDevelop working on CentOS 5 for a project. Here is my blow-by-blow summary of how to get it working. The procedure is designed for CentOS 5, and it works on my Fedora 8 system as well. Since most of the activity is just compiling stuff from source, it should be pretty easy to follow on a different distribution. It’s just a matter of getting the correct packages installed in the preparation phase.

Contents

  1. Objectives
  2. Preparation
  3. Enabling the Environment
  4. Mono 1.9
  5. Libgdiplus
  6. GTK#
  7. Mono.Addins
  8. Mono Tools
  9. Monodoc
  10. Gtksourceview
  11. MonoDevelop
  12. Nant
  13. Finish

Objectives

  • MonoDevelop platform ready to use on CentOS 5 or Fedora 8
  • For minimal maintenance headache, use the base operating system to provide as much sofware as possible, with the obvious exception of Mono 1.9 and MonoDevelop 1.0
  • The install is isolated from the rest of the system. MonoDevelop and its dependencies should have no overlap or interference with the base operating system.

Preparation

  • Note: In this document, all source code will go in /usr/src/monodevelop-install. All installed packages will go in /usr/local/software.
  • mkdir -p /usr/local/software/mono-1.9
  • sudo chown -R `whoami` /usr/local/software # (Be careful if you already have software here)
  • mkdir -p /usr/src/monodevelop-install
  • yum install glib2-devel pango-devel gtk2-devel glade2-devel libgnome-devel /
    gnome-desktop-devel gnome-panel-devel libgnomeprintui22-devel /
    gtksourceview-devel ruby ruby-rdoc gtkhtml38-devel wget /
    # (maybe openssl-devel also)
  • echo 'PATH="/usr/local/software/mono-1.9/bin:/usr/local/software/bzr-1.2:$PATH"' /
    > /usr/local/software/mono-1.9/env.sh
  • echo 'export PKG_CONFIG_PATH=/usr/local/software/mono-1.9/lib/pkgconfig' /
    >> /usr/local/software/mono-1.9/env.sh
  • echo 'export LD_LIBRARY_PATH=/usr/local/software/mono-1.9/lib' /
    >> /usr/local/software/mono-1.9/env.sh

Enabling the Environment

Important: You must always run this command before using Monodevelop, and also before continuing on with this procedure.

source /usr/local/software/mono-1.9/env.sh

In this document, Monodevelop is not completely integrated into the GUI, menus, etc. for a couple of reasons:

  1. Getting Monodevelop to show up in the menus is somewhat distro-specific. For RPM-based distros, look into setting the $XDG_DATA_DIRS variable in /etc/X11/xinit/xinitrc.d/, but you will also have to get the path working. For Debian-based distros, look into doing the same thing in /etc/X11/Xsession.d. And if you happen to be trying this on Solaris, look into /usr/dt/config/Xsession.d. Oh and by the way, the .desktop file that ships with Monodevelop is invalid for my Fedora 8 system! So you will have to manually edit it and (IIRC) remove the TryExec line.
  2. As you can see, this requires a bit of mucking with “standard” package-maintained config files, which I am hesitant to do because it violates the objective of isolation.

All this means you will always have to first source the small shell script which sets up the correct environment variables whenever you want to run Monodevelop.

Mono 1.9

  • cd /usr/src/monodevelop-install
  • wget http://go-mono.com/sources/mono/mono-1.9.tar.bz2
  • tar xjf mono-1.9.tar.bz2
  • cd mono-1.9
  • ./configure --prefix=/usr/local/software/mono-1.9
    • Optionally,
      --with-ikvm-native=no –with-moonlight=no
    • Optionally,
      --with-xen_opt=yes
  • make && make install

Libgdiplus:

  • cd /usr/src/monodevelop-install
  • wget http://go-mono.com/sources/libgdiplus/libgdiplus-1.9.tar.bz2
  • tar xjf libgdiplus-1.9.tar.bz2
  • cd libgdiplus-1.9
  • ./configure --prefix=/usr/local/software/mono-1.9
  • make && make install

GTK#

  • cd /usr/src/monodevelop-install
  • wget http://go-mono.com/sources/gtk-sharp-2.0/gtk-sharp-2.8.4.tar.bz2
  • tar xjf gtk-sharp-2.8.4.tar.bz2
  • cd gtk-sharp-2.8.4
  • ./configure --prefix=/usr/local/software/mono-1.9
  • make && make install

Mono.Addins:

  • cd /usr/src/monodevelop-install
  • wget http://go-mono.com/sources/mono-addins/mono-addins-0.3.1.tar.bz2
  • tar xjf mono-addins-0.3.1.tar.bz2
  • cd mono-addins-0.3.1
  • ./configure --prefix=/usr/local/software/mono-1.9
  • make && make install

Mono Tools:

  • cd /usr/src/monodevelop-install
  • wget http://go-mono.com/sources/mono-tools/mono-tools-1.9.tar.bz2
  • tar xjf mono-tools-1.9.tar.bz2
  • cd mono-tools-1.9
  • ./configure --prefix=/usr/local/software/mono-1.9
  • make && make install

Monodoc

  • cd /usr/src/monodevelop-install
  • wget http://go-mono.com/sources/monodoc/monodoc-1.9.zip
  • unzip monodoc-1.9.zip
  • cd monodoc-1.9
  • ./configure --prefix=/usr/local/software/mono-1.9
  • make && make install

Gtksourceview:

  • cd /usr/src/monodevelop-install
  • wget http://go-mono.com/sources/gtksourceview-sharp-2.0/gtksourceview-sharp-2.0-0.10.tar.gz
  • tar xzf gtksourceview-sharp-2.0-0.10.tar.gz
  • cd gtksourceview-sharp-2.0-0.10
  • ./configure --prefix=/usr/local/software/mono-1.9
  • make && make install

Monodevelop:

  • cd /usr/src/monodevelop-install
  • wget http://go-mono.com/sources/monodevelop/monodevelop-1.0.tar.bz2
  • tar xjf monodevelop-1.0.tar.bz2
  • cd monodevelop-1.0
  • ./configure --prefix=/usr/local/software/mono-1.9
  • make && make install

NAnt

This is optional, but many .NET applications build with it, so it might be worth throwing in there.

  • cd /usr/src/monodevelop-install
  • wget http://downloads.sourceforge.net/nant/nant-0.85-bin.tar.gz
  • tar xzf nant-0.85-bin.tar.gz -C /usr/local/software/mono-1.9
  • echo '#!/bin/bash' > /usr/local/software/mono-1.9/bin/nant
  • echo 'mono /usr/local/software/mono-1.9/nant-0.85/bin/NAnt.exe "$@"' >> /usr/local/software/mono-1.9/bin/nant
  • chmod +x /usr/local/software/mono-1.9/bin/nant

Finished!

You’re done! Run it!

monodevelop

Feel free to contact me if you have any input to add. I will try to add another post for Debian/Ubuntu and possibly Solaris in the future.

mono-6.12.0.122目前最新版本  要实现Asp.Net项目部署到Linux中,必须要通过Mono。Mono就相当于Window中的.Net Framework 是Linux中的.Net 运行时,不但可以运行在Linux中也可以运行在Window中。 Jexus通用版不带Mono,因此,使用者应该首先在客户机安装mono和libgdiplus。 在Mono的官网下载,速度非常慢,还有可能会下载失败。 立即下载

相关推荐

海思HiMPP开发避坑指南:MMZ内存与系统内存傻傻分不清?一个例子讲透

本文深入解析海思HiMPP开发中MMZ内存与系统内存的关键差异与应用场景,帮助开发者避免常见的内存混淆问题。通过实际案例和性能对比,详细介绍了MMZ内存的特性和优化策略,提升多媒体处理效率。

weixin_30772105的博客 472

下载mono太慢怎么办?

  吾这几天编译mono: 先使用git方式,无法编译。 使用下载方式,速度非常之慢,而且经常链接不上。过个几天下载完成了,万一出错,又要下载,如何是好?   怎样下载?就是早上4、5点的时候下载,非常快。因为这里美国人睡了,中国人还没上班,美国网络、中国网络都很畅通。 ...

柳鲲鹏 4690

在VSCode中使用LaTex+(grammarly语法检测,chatgpt翻译,Sumatra PDF 轻量级pdf阅读器)

整个文章分为以下几个内容,打 * 的是必须要安装的。

u011895157的博客 2万+

在Linux系统下安装vmwareworkstation(解决中途中所有问题合集)

为了兼容,建议安装vmware workstation 15 (en) 百度网盘: 链接: https://pan.baidu.com/s/14_q0aS5b52EpXBqhTcZO0w 密码: 666 Vmwareworkstation for linux 激活码: 按照windows的方法install vmware 接着打开vmware图标,开始报错: VMware kernel Module Updater Before you can run Vmware,serveral modules mu

「鸿渐之翼」的博客 1763

迅投miniQMT量化交易之【网格交易】的实现(25)——写在最后

和大家一起分享如何使用miniQMT实现我们自己的网格交易系统。如果您对量化交易感兴趣,欢迎一起交流。

tzzqn2008的专栏 837

电赛2024年H题智能小车基于MSPM0G3507主控MCU(利用8路灰度加上MPU6050的解决方式)

最后我觉得这个项目最重要的部分还是陀螺仪的精准度,如果一个陀螺仪的精准度高,这个项目就十分简单了,像mpu6050这种陀螺仪精准度就稍微差了一点,他有个最严重的问题就是温漂,偏航角会随着温度变化为变化,这一点在跑发挥项一的时候十分关键的,因为这个只差基督就会导致车子跑偏,导致无法完成 整个项目。如果条件足够的话建议可以换一个好一点的陀螺仪,然后就是灰度如果没有条件同样也可以换成红外。以上就是本次项目的一些小建议。

weixin_60991529的博客 6250

CentOS 7 之安装Mono&MonoDevelop

之前在园子里看过一篇文章说的是在CentOS 7上安装MonoDevelop的,一直想照着弄一遍都没有弄,今天深圳外面下暴雨,就在家里弄一下这个吧,以后也试着在Linux上面写写C#玩玩。这一试,还真是试出了一些经验了,或者说是一些坑吧。 由于园子里这篇文章主要是使用yum安装的,于是我想用源码来安装,于是我先在Linux公社找到了这篇文章。根据作者的说明及经验,我先下载了几个包到/...

awihqwyo11127的博客 337

推荐系统(1):推荐系统评测

对于可以离线优化的指标,我个人的看法是应该在给定覆盖率、多样性、新颖性等限制条件下,尽量优化预测准确度。用一个数学公式表达,离线实验的优化目标是:最大化预测准确度使得 覆盖率 > A多样性 > B新颖性 > C其中,A、B、C的取值应该视不同的应用而定。

数据不会骗人 2529

Linux-Centos 安装mono与monodevelop跨平台开发工具

MonoDevelop 是个适用于Linux、Mac OS X和Microsoft Windows的开放源代码集成开发环境,主要用来开发Mono与.NET Framework软件。MonoDevelop 集成了很多Eclipse与Microsoft Visual Studio的特性,像是 Intellisense、版本控制还有 GUI 与 Web 设计工具。另外还集成了GTK# GUI...

郎涯技术 4920

苍穹外卖项目面试总结话术

美食速递这个项目最初是我参与制作的大创项目,是一款为中南学生提供校园外卖送至宿舍服务的软件,包含系统管理后台和小程序端两部分。其中系统管理后台主要提供给食堂内部员工使用,可以对食堂各个窗口、员工、订单、菜品等进行维护管理;小程序端可以在线浏览菜品、添加购物车、下单等,由学生兼职做跑腿送餐上门服务。这是个前后端分离的项目,我主要是负责后端的用户登录、员工管理,菜品管理,订单管理模块的编码实现。

qq_45195447的博客 1万+

基于STC8A8K64S4A12的掉电唤醒定时器应用,极大降低产品功耗

通过合理的配置和编程,我们可以充分发挥单片机的功能,实现能效优化和电池寿命延长的目标。其中,掉电唤醒定时器是其一项重要功能,可以在系统处于睡眠状态时通过定时器的计时功能进行唤醒,从而实现对系统功耗的有效控制。使用STC8A8K64S4A12的掉电唤醒定时器功能,我们可以在不影响系统正常工作的情况下,大大降低产品的功耗。通过以上的代码,我们实现了一个简单的掉电唤醒定时器功能。当系统进入睡眠模式后,定时器开始计时,到达预设的唤醒时间后,定时器中断被触发,系统从睡眠模式唤醒,执行相应的操作。

CodeSageX的博客 1095

centos 6.3安装mono和monoDevelop过程

Mono官方网站:http://www.mono-project.com MonoDevelop官方网站:http://monodevelop.com/ 注:整个安装过程最好在同一个终端下完成! 1、安装一些会使用到的软件包: yum –y install gcc gcc-c++ bison pkgconfig glib2-devel gettext make libpn...

angjiaolu5989的博客 235

探索CompletableFuture:高效异步编程的利器

随着现代软件系统的复杂性和用户需求的多样化,异步编程成为了提升系统性能和响应速度的重要手段。在Java领域,CompletableFuture作为Java 8引入的新特性,提供了强大的异步编程能力,极大地简化了多线程和并发任务的处理。本文将深入探讨CompletableFuture的基本功能和使用方法,介绍如何利用其提升程序的并发性能和代码的可维护性。

曾经“等你生日那天”都遥远得像未来,如今却可欢愉的挥手说“下个十年见” 170万+

ubuntu 源码编译安装_如何在Ubuntu上从源代码编译和安装

ubuntu 源码编译安装Ubuntu and other Linux distributions have extensive package repositories to save you the trouble of compiling anything yourself. Still, sometimes you’ll find an obscure application or a n...

culiyuan8310的博客 9650

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

MonoDevelop 4.2.2/Mono 3.4.0 in CentOS 6.5 安装笔记

MonoDevelop 4.2.2/Mono 3.4.0 in CentOS 6.5 安装笔记 说明 以root账户登录Linux操作系统,注意:本文中的所有命令行前面的 #> 表示命令行提示符,不需要输入。 创建源码目录: #> mkdir /var/local/src 下载安装libgdiplus: #> cd /var/local/src ...

weixin_30622181的博客 165

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

CentOS7 安装 Mono MonoDevelop

在root权限下操作: 1、 rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" 2、 su -c 'curl https://download.mono-project.com/repo/centos7-vs.re...

小姐姐 2084

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

CentOS7安装Mono和MonoDevelop

MonoDevelop 是个Linux平台上的开放源代码集成开发环境,主要用来开发Mono与.NET Framework软件。MonoDevelop 整合了很多Eclipse与Microsoft Visual Studio的特性,像是 Intellisense、版本控制还有 GUI 与 Web 设计工具。另外还整合了GTK# GUI设计工具(叫做Stetic)。目前支援的语言有C#、Java、BO...

weixin_30763455的博客 430

CentOS 7安装Mono和MonoDevelop

centos7 c#运行及开发环境安装

pdw2009的专栏 1471

CentOS 7 安装Mono 和 MonoDevelop

【原文来自:http://www.linuxidc.com/Linux/2015-01/112350.htm】 好几年前安装过mono,后来一直没有再用过。最近购买了新服务器,想再安装一个试试,先安装了最新的CentOS 7.2 ,然后按照搜索到的文章来做,很不幸,几乎都不成功,有些源的包依赖关系解析中断,后来终于找到了上面的文章,现在列出所有的步骤: 本次所有操作在root模式下 1.执行...

weixin_34342578的博客 223

Compiling and installing RTEMS for the Raspberry Pi

Compiling and installing RTEMS for the Raspberry Pi OK, The RTEMS compiler is ready to go on your Ubuntu machine, so it’s time to download and build RTEMS for the Raspberry Pi. If you have

wuxinju的专栏 912

从No match for argument: gcc-devel 到centos8 的dnf

装了个虚拟机,centos8的系统。 centos8 是REHT8的开源版,以稳定著称。自从安装后就是各种坑,网上好多帖子教程的方法在这个版本的系统上都不能正常执行。 今天就遇到了这个问题: No match for argument: gcc-devel No match for argument: python-devel 这个问题是在为django安装mysqlclient依赖的时候,g...

zw3413的专栏 1万+

【Linux】CentOS7 C#开发环境搭建笔记(MonoDevelop安装、使用问题)

MonoDevelop 1、MonoDevelop安装 $ rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" $ su -c 'curl https://download.mono-project.com/repo/ce...

姜太小白的博客 794

Install Mono and MonoDevelop on Fedora

http://www.mono-project.com/docs/getting-started/install/linux/ http://www.monodevelop.com/download/linux/ 在命令行里输入: rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x...

weixin_30642869的博客 140

Compiling the Linux Kernel(编译内核)

Compiling the Linux Kernel This article will serve as a primer to people who are new to the world of Linux hacking, and are attempting to compile the Linux kernel from source. The various steps

hecant的专栏 1056
上一篇: stardict字典文件格式识别类
下一篇: Reflection Part 1: Discovery and Execution
forlinux
博客等级 码龄21年 53粉丝 95原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址