CentOS 7 通过 持续集成包 安装最新的 Mono

Mono 3.6.0 发布,此版本从上一个版本开始,总共提交了 878 个commits。自2014 年 3 月 10 日开始,共有66 位贡献者参与开发; 其中有22位首次提交的贡献值,他们修复了 112 个 bug,具体请看《Mono 3.6发布,支持在Mac系统使用Nuget》。 Mono的官方网站也进行了更新,界面清新。其中在下载页面只有OSX下的框架是最新的,其他平台的包还在测试中,可以通过源码安装,也可以通过官方的持续集成包进行安装,可参考文档 Continuous Integration packages

Linux 平台包分两个发行版系列: Debian 系(支持 Debian 7+, Ubuntu 11.04+, Mint 11+, Elementary 0.2+ 等) Red Hat(支持CentOS 7+, Mageia 3+, Fedora 19+, openSUSE 12.3+等)。

下面介绍CentOS 7上安装最新的Mono 3.8.1:

1、添加Mono的 包库源:

把Mono Project public Jenkins GPG signing  导入系统:

wget http://jenkins.mono-project.com/repo/xamarin.gpg

rpm --import xamarin.gpg

yum-config-manager --add-repo http://jenkins.mono-project.com/repo/centos/

2、通过包管理器查找mono-snapshot找到可以安装最新的包

yum search mono-snapshot

[mono-20140816130953][[email protected] jexus-5.6.1]#yum search mono-snapshot
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.grandcloud.cn
 * extras: mirrors.pubyun.com
 * rpmforge: mirrors.neusoft.edu.cn
 * updates: mirrors.pubyun.com
========================================================================== N/S matched: mono-snapshot ===========================================================================
mono-snapshot-20140807112602.x86_64 : Mono runtime snapshot - runtime (git commit 76c34a1)
mono-snapshot-20140807112602-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 76c34a1)
mono-snapshot-20140813035605.x86_64 : Mono runtime snapshot - runtime (git commit 0322d96)
mono-snapshot-20140813035605-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 0322d96)
mono-snapshot-20140813112032.x86_64 : Mono runtime snapshot - runtime (git commit a4f96bc)
mono-snapshot-20140813112032-assemblies.noarch : Mono runtime snapshot - assemblies (git commit a4f96bc)
mono-snapshot-20140813120821.x86_64 : Mono runtime snapshot - runtime (git commit 9c37758)
mono-snapshot-20140813120821-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 9c37758)
mono-snapshot-20140813121150.x86_64 : Mono runtime snapshot - runtime (git commit db3eb16)
mono-snapshot-20140813121150-assemblies.noarch : Mono runtime snapshot - assemblies (git commit db3eb16)
mono-snapshot-20140813125854.x86_64 : Mono runtime snapshot - runtime (git commit e464526)
mono-snapshot-20140813125854-assemblies.noarch : Mono runtime snapshot - assemblies (git commit e464526)
mono-snapshot-20140813130628.x86_64 : Mono runtime snapshot - runtime (git commit 2ceb43d)
mono-snapshot-20140813130628-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 2ceb43d)
mono-snapshot-20140813134928.x86_64 : Mono runtime snapshot - runtime (git commit 37dcfd1)
mono-snapshot-20140813134928-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 37dcfd1)
mono-snapshot-20140813140439.x86_64 : Mono runtime snapshot - runtime (git commit d273a16)
mono-snapshot-20140813140439-assemblies.noarch : Mono runtime snapshot - assemblies (git commit d273a16)
mono-snapshot-20140814031123.x86_64 : Mono runtime snapshot - runtime (git commit 62a15c8)
mono-snapshot-20140814031123-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 62a15c8)
mono-snapshot-20140814053610.x86_64 : Mono runtime snapshot - runtime (git commit 5f5bed4)
mono-snapshot-20140814053610-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 5f5bed4)
mono-snapshot-20140814102557.x86_64 : Mono runtime snapshot - runtime (git commit 5aeec74)
mono-snapshot-20140814102557-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 5aeec74)
mono-snapshot-20140814122203.x86_64 : Mono runtime snapshot - runtime (git commit 33023bf)
mono-snapshot-20140814122203-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 33023bf)
mono-snapshot-20140814131548.x86_64 : Mono runtime snapshot - runtime (git commit 407b816)
mono-snapshot-20140814131548-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 407b816)
mono-snapshot-20140814190650.x86_64 : Mono runtime snapshot - runtime (git commit 844ad76)
mono-snapshot-20140814190650-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 844ad76)
mono-snapshot-20140814192915.x86_64 : Mono runtime snapshot - runtime (git commit 12e4b4f)
mono-snapshot-20140814192915-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 12e4b4f)
mono-snapshot-20140815071644.x86_64 : Mono runtime snapshot - runtime (git commit 31e92f2)
mono-snapshot-20140815071644-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 31e92f2)
mono-snapshot-20140815123851.x86_64 : Mono runtime snapshot - runtime (git commit 230b3bf)
mono-snapshot-20140815123851-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 230b3bf)
mono-snapshot-20140815125921.x86_64 : Mono runtime snapshot - runtime (git commit 5ab34b2)
mono-snapshot-20140815125921-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 5ab34b2)
mono-snapshot-20140816014620.x86_64 : Mono runtime snapshot - runtime (git commit 76efee0)
mono-snapshot-20140816014620-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 76efee0)
mono-snapshot-20140816060806.x86_64 : Mono runtime snapshot - runtime (git commit 557ad88)
mono-snapshot-20140816060806-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 557ad88)
mono-snapshot-20140816072941.x86_64 : Mono runtime snapshot - runtime (git commit eaa343f)
mono-snapshot-20140816072941-assemblies.noarch : Mono runtime snapshot - assemblies (git commit eaa343f)
mono-snapshot-20140816130953.x86_64 : Mono runtime snapshot - runtime (git commit 6986ed5)
mono-snapshot-20140816130953-assemblies.noarch : Mono runtime snapshot - assemblies (git commit 6986ed5)
mono-snapshot-common.noarch : Common helper tools for Mono snapshot packages
mono-snapshot-latest.noarch : Mono runtime snapshot - latest version metapackage
mono-snapshot-XXXXXXXXX 表示特定版本的包, mono-snapshot-latest 是最新版本的包,安装 mono-snapshot-latest,包管理器可以把包更新到最新. 所有的安装包里都带了一个工具mono-snapshot

[[email protected] ~]# mono-snapshot
This script will help you to set up your environment to use a
snapshot package of Mono. To use it, run:

. mono-snapshot APP/VER

You have the following possible combinations of APP/VER:

mono/20140816130953

Calling APP without specifying VER will load the latest version

我们看到系统里安装了一个版本20140816130953,

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

3、yum -y install mono-snapshot-latest

[[email protected] src]# yum -y install mono-snapshot-latest
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.grandcloud.cn
 * extras: mirrors.pubyun.com
 * rpmforge: mirrors.digipower.vn
 * updates: mirrors.pubyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 mono-snapshot-latest.noarch.0.20140816130953-0 将被 安装
--> 正在处理依赖关系 mono-snapshot-20140816130953,它被软件包 mono-snapshot-latest-20140816130953-0.noarch 需要
--> 正在检查事务
---> 软件包 mono-snapshot-20140816130953.x86_64.0.20140816130953-0 将被 安装
--> 正在处理依赖关系 mono-snapshot-common,它被软件包 mono-snapshot-20140816130953-20140816130953-0.x86_64 需要
--> 正在处理依赖关系 mono-snapshot-20140816130953-assemblies,它被软件包 mono-snapshot-20140816130953-20140816130953-0.x86_64 需要
--> 正在检查事务
---> 软件包 mono-snapshot-20140816130953-assemblies.noarch.0.20140816130953-0 将被 安装
---> 软件包 mono-snapshot-common.noarch.0.00000010-0 将被 安装
……
作为依赖被安装:
  mono-snapshot-20140816130953.x86_64 0:20140816130953-0     mono-snapshot-20140816130953-assemblies.noarch 0:20140816130953-0     mono-snapshot-common.noarch 0:00000010-0

使用mono-snapshot 工具看下我们安装好的Mono的最新版本是3.8.1:
[[email protected] ~]# . mono-snapshot mono
[mono-20140816130953][[email protected] ~]# mono --version
Mono JIT compiler version 3.8.1 (tarball Sat Aug 16 16:20:35 EDT 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen
请注意mono-snapshot 前边的 “.”.
4、让Jexus 使用最新的Mono 
修改Jexus脚本把最新的mono 路径加入进去,如下图

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

 
[mono-20140816130953][[email protected] ~]# cd /usr/jexus/
[mono-20140816130953][[email protected] jexus]# vi jws
[mono-20140816130953][[email protected] jexus]# service jws restart
Restarting jws (via systemctl):                            [  确定  ]
[mono-20140816130953][[email protected] jexus]#

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

将Jexus 添加为系统服务的脚本参见《Centos 7.0 安装Mono 3.4 和 Jexus 5.6》。

CentOS 7 通过 持续集成包 安装最新的 Mono

时间: 2024-10-11 15:36:03

CentOS 7 通过 持续集成包 安装最新的 Mono的相关文章

Bitnami LNMP集成包安装简单总结

前言发送图文消息时间点,访问量大,请求并发多,业务web机处理不过来,新增加了2台web机应对.搞过Linux软件安装的都知道,各种库的依赖会把人搞崩溃,尤其是服务器不能访问外网的情况下,会非常的蛋疼.以前安装LNMP开发环境都是单个分别源码编译安装,安装过程因环境的问题,会碰到各种奇奇怪怪的问题,解决这些问题需要花些力气.以前只知道Windows才有集成开发包,真是井底之蛙!来到新东家之后,才知道Linux也有这样的集成包,线上web机都是使用集成包安装的,已经跑了几年,一直都很稳定.使用集成

Jenkins持续集成工具安装

一.简介 Jenkins是一款开源.可持续集成.可持续交付.部署(软件/代码的编译.打包.部署)的基于web界面的平台,用于自动化各种任务,包括构建.测试和部署软件. 官网:https://jenkins.io/ 官方文档:https://jenkins.io/doc/ 二.安装 1. 下载安装包:wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war 2.  执行   java -jar jenkins.war --httpPo

CentOS 6.5源码包安装MySQL

#源码包安装MySQL数据库 [[email protected] ]# yum -y install gcc gcc-c++ autoconf automake zlib* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* make cmake bison perl curl-devel #安装MySQL [[email protected] cmake-3.0.2]# groupadd -r mysql [[email protecte

centos下搭建Jenkins持续集成环境(安装jenkins)

1.安装JDK yum install -y java 2.安装jenkins 添加Jenkins库到yum库,Jenkins将从这里下载安装. 1 wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo 2 rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key 3 yum install -y jenkins 如果

[CentOS 7系列]源码包安装

源码包相对yum的安装方式来说,是一种很复杂的安装方式.中间涉及的每一步出错,会导致安装失败.因此在安装源码包的时候,每一步我们都要使用"echo $?"命令查看运行是否正常,确保源码包能够无误的安装上. 源码包的安装主要分为三个步骤: 1../configure     配置参数 2.make            编译 3.make install    编译安装 下面将演示安装Apache: [[email protected] src]# ls httpd-2.2.32  ht

Centos系统通过tar.gz包安装Mysql5.7

1.安装mysql之前需要确保系统中有libaio依赖,使用如下命令: yum search libaio yum install libaio 2.进入centos终端操作界面,使用wget命令下载mysql5.7 64位安装文件: wget -c https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz 下载完成如图所示: 3.将mysql安装包解压到指定目录,命令如下: tar

jenkins+gitlab+maven+tomcat持续集成环境安装配置

jenkins+gitlab+maven+tomcat,该环境主要实现自动构建部署java web应用. 其工作流程是:提交代码到gitlab--jenkins触发构建任务--maven编译打包--jenkins将war包部署到tomcat. 安装JDK #安装jdk1.8 tar zxvf jdk-8u77-linux-x64.gz #设置环境变量 #vi /etc/profile export JAVA_HOME=/usr/local/jdk1.8.0_77 export JAVA_BIN=

PHP-Wamp集成包安装教程

在Windows平台上搭建PHP的开发环境可以下载WAMP(Windows.Apache.MySQL.PHP的首字母缩写)集成化安装包.这样就不需要单独安装Apache.MySQL和PHP了. 这款软件在安装的过程中就已经把Apache.MySQL.PHP继承好了,而且也做好了相应的配置,除此之外,还加上了SQLitemanager和Phpmyadmin,省去了很多复杂的配置过程,让我们能把更多的时间放在程序开发上.更值得高兴地是这款软件也是完全免费的,大家可以登录http://www.wamp

linux下xampp集成包安装配置方法

1.查看你linux系统的位数,是32位的还是64位的.使用uname -a命令查看. 显示有 x86_64则说明你是64位内核, 跑的是64位的系统. i386, i686说明你是32位的内核, 跑的是32位的系统 2.首先下载xampp的安装包.打开网址:https://www.apachefriends.org/zh_cn/download.html或http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/,选择你需要