`
isiqi
  • 浏览: 16465510 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

MonoDevelop 1.0 on CentOS 5 and Fedora: Compiling and Installing

阅读更多

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.

分享到:
评论

相关推荐

    monodevelop-colors-tomorrow-theme:(不建议使用)检查https

    Monodevelop颜色明天主题这是用于带monodevelop语法颜色。屏幕截图明天晚上如何安装在MonoDevelop中open menu -> Tools -> Options 导航到-> Text Editor -> Syntax Highlighing 按Add按钮导航到文件TomorowNight....

    MonoDevelop.Debugger.Gdb.D:GNULinux下MonoDevelop对D编程语言的调试支持

    这个插件 - MonoDevelop.Debugger.Gdb.D - 在 GNU/Linux 下为 MonoDevelop IDE 中的提供调试支持。 该项目依赖于 MonoDevelop 的 D 语言绑定插件——所谓的项目及其部分。 一般信息 该项目旨在通过丰富的调试功能...

    教程:MonoDevelop调试步骤.docx

    【教程:MonoDevelop调试步骤】 在Unity3D开发过程中,MonoDevelop是一款强大的集成开发环境(IDE),它提供了源代码编辑、编译以及调试等必备功能。对于初学者来说,掌握如何在MonoDevelop中进行调试是至关重要的...

    MonoDevelop 的安装与设置

    MonoDevelop 的安装与设置 MonoDevelop 是一个功能强大的集成开发环境(IDE),主要用于游戏引擎 Unity3D 的开发。下面是关于 MonoDevelop 的安装与设置的详细说明。 一、安装 MonoDevelop 要安装 MonoDevelop,...

    monodevelop最新版

    5. **版本控制系统集成**:Monodevelop支持Git、Subversion等版本控制系统,方便团队协作开发。 6. **模板和插件**:通过内置模板和插件系统,用户可以快速创建新项目,并扩展IDE的功能。 7. **跨平台**:...

    Unity3D教程:MonoDevelop调试步骤2

    MonoDevelop是一款集成开发环境(IDE),特别适合于Unity3D的C#脚本编写,它提供了强大的调试工具来辅助开发者进行代码调试。 在Unity3D中使用MonoDevelop进行调试,主要分为以下几个步骤: 1. **设置断点**: ...

    MonoDevelop-Unity语言包

    MonoDevelop 是一款开源的集成开发环境(IDE),主要用于C#、C++、Python等语言的开发,尤其在.NET和Unity游戏开发中应用广泛。这款IDE提供了代码编辑、调试、项目管理等一系列功能,使得开发者能够高效地编写代码。...

    MonoDevelop汉化包

    MonoDevelop是一款开源的集成开发环境(IDE),主要针对C#和.NET Framework,同时也支持其他编程语言,如Python、Vala等。它最初是为Linux设计的,但后来也发展到跨平台,包括Windows和macOS。在Unity3D游戏开发环境...

    Introduction-to-Mono-and-MonoDevelop:适用于Linux的Mono和MonoDevelop IDE的初学者指南(俄语)

    "Introduction-to-Mono-and-MonoDevelop-master"这个压缩包很可能包含了关于如何使用Mono和MonoDevelop的教程资源,包括可能的代码示例、文档、练习等。对于初学者,这是一个极好的起点,能够帮助他们快速掌握这两个...

    MonoDevelop 3.0.6

    MonoDevelop 是个适用于Linux、Mac OS和Microsoft Windows的开放源代码集成开发环境,主要用来开发Mono与.NET Framework软件。

    MonoDevelop主题:定制MonoDevelop主题的集合

    MonoDevelop是一款开源的集成开发环境(IDE),主要针对C#和.NET Framework,同时也支持其他编程语言。这款IDE在Xamarin Studio的基础上发展而来,是Xamarin开发者的重要工具,用于构建跨平台的移动应用、桌面应用...

    使用MonoDevelop调试Unity3D的正确步骤1

    Unity3D从3.0版本开始支持使用MonoDevelop进行调试,但请注意,你需要安装的是Unity3D安装包内自带的MonoDevelop版本,因为官方下载的独立版MonoDevelop可能不包含Unity3D的调试插件。 接下来,配置MonoDevelop的...

    XamarinStudio 调试插件 Unity-Addins-5.9.0

    3. MonoDevelop.Debugger.Soft.Unity_5.9.0.mpack:这是Unity软调试器组件,使得开发者能够在Xamarin Studio中实现对Unity项目的软调试,包括跟踪变量、查看调用堆栈等调试操作。 4. Unity.Utilities_5.9.0.mpack:...

    MonoDevelop.zip

    《MonoDevelop:CryEngine调试的强大工具》 在游戏开发领域,CryEngine是一款备受推崇的游戏引擎,以其卓越的图形渲染能力和强大的物理模拟系统而闻名。然而,开发过程中的调试环节至关重要,对于优化代码和修复...

    monodevelop-hg-addin:用于MonoDevelop IDE的Mercurial插件

    商业支持对MonoDevelop版本控制加载项的Mercurial支持安装方式大多数用户应从MD / XS插件库中安装它。 但是,如果您希望对插件进行贡献,则需要从源代码构建它。 如果您希望将其与某些未发行的MonoDevelop或Xamarin ...

    monodevelop-database-2.0

    Monodevelop数据库扩展2.0是一款专为Monodevelop集成开发环境设计的插件,它为C#开发者提供了一种类似C#语法的接口来操作和管理数据库。这个扩展允许程序员更加高效地处理数据库交互,简化了数据访问层的代码编写,...

    Fedora8_guid

    ### Fedora 8 使用教程知识点概览 #### 一、Fedora 8 概述与新特性 - **Fedora 8 简介**:Fedora 8 是一款基于 Linux 的开源操作系统,由 Fedora 社区开发并由 Red Hat 赞助。它是一款面向个人用户、开发者以及...

    MonoDevelop-3.0.4.6

    MonoDevelop 是个适用于Linux、Mac OS和Microsoft Windows的开放源代码集成开发环境,主要用来开发Mono与.NET Framework软件。MonoDevelop 整合了很多Eclipse与Microsoft Visual Studio的特性,像是 Intellisense、...

Global site tag (gtag.js) - Google Analytics