Centos6.4安装Mono3.10+jexus

1.安装Mono3.10

   mono网站上对于Centos目前还没有Centos分发包,官网上的通过yum安装向导时对于Centos7而言,那么对于Centos6.4就需要自己下载源代码编译

首先使用vi编辑器 建立一个sh文件,写入如下代码

# run me as root
 
mkdir ~/Downloads
cd ~/Downloads
 
MONOVERSION="3.10.0"
GECKOSHARPVERSION="2.0-0.12"


yum install wget
 
# download the source files we are about to build
wget http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.21.tar.gz
wget http://download.mono-project.com/sources/gecko-sharp2/gecko-sharp-$GECKOSHARPVERSION.tar.gz
wget http://download.mono-project.com/sources/gnome-sharp2/gnome-sharp-2.24.1.tar.bz2
wget http://download.mono-project.com/sources/gtksourceview-sharp2/gtksourceview-sharp-2.0-0.12.tar.bz2
wget http://download.mono-project.com/sources/mono/mono-$MONOVERSION.tar.bz2
 
# get the dev tools
yum -y groupinstall "Development Tools" --exclude=git
 
# install git
yum -y remove git
wget http://pkgs.repoforge.org/git/perl-Git-1.7.11.3-1.el6.rfx.x86_64.rpm
wget http://pkgs.repoforge.org/git/git-1.7.11.3-1.el6.rfx.x86_64.rpm
yum -y localinstall perl-Git-1.7.11.3-1.el6.rfx.x86_64.rpm  git-1.7.11.3-1.el6.rfx.x86_64.rpm
 
# install some package deps we need
yum -y install atk atk-devel
yum -y install pango pango-devel
yum -y install gtk2-devel libglade2-devel libgnome-devel
yum -y install zlib zlib-devel
yum -y install dos2unix
 
# get libgdiplus from EPEL
wget https://dl.fedoraproject.org/pub/epel/6/x86_64/libgdiplus-2.4.2-3.el6.x86_64.rpm
wget https://dl.fedoraproject.org/pub/epel/6/x86_64/libgdiplus-devel-2.4.2-3.el6.x86_64.rpm
yum -y localinstall libgdiplus-2.4.2-3.el6.x86_64.rpm libgdiplus-devel-2.4.2-3.el6.x86_64.rpm
 
# build mono first
tar xvfj mono-$MONOVERSION.tar.bz2
cd mono-$MONOVERSION
./configure --with-large-heap=yes
make -j 4 && make install
cd ..
 
# tell the configure scripts where to find the custom installed package files
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
 
# gtk#
tar xvfz gtk-sharp-2.12.21.tar.gz
cd gtk-sharp-2.12.21
./configure
make -j 4 && make install
cd ..
 
# Gecko#
dos2unix /usr/local/bin/gapi2-codegen
tar xvfz gecko-sharp-$GECKOSHARPVERSION.tar.gz
cd gecko-sharp-$GECKOSHARPVERSION
./configure
make -j 4 && make install
cd ..
 
# Gnome#
yum -y install libgnomecanvas-devel libgnome-devel libgnomeui-devel libgnomeprint22-devel libgnomeprintui22-devel libpanelappletmm-devel
dos2unix /usr/local/bin/gapi2-fixup
tar xvfj gnome-sharp-2.24.1.tar.bz2
cd gnome-sharp-2.24.1
./configure
echo -e "all:\ninstall:\n" > sample/gnomevfs/Makefile
make -j 4 && make install
cd ..
 
# GTK SourceView
yum -y install gtksourceview gtksourceview-devel
tar xvfj gtksourceview-sharp-2.0-0.12.tar.bz2
cd gtksourceview-sharp-2.0-0.12
./configure
echo -e "all:\ninstall:\n" > sample/Makefile
make -j 4 && make install
cd ..
 

# add the libs into the linker path
ldconfig /usr/local/lib

保存后使用 chmod +X  *.sh 给sh权限 ,重启系统 mono -V看见版本号已经是3.10了


2 jexus 安装 ,jexus安装比较简单

 2.1 jexus 安装

   cd /tmp
wget linuxdot.net/down/jexus-5.6.2.tar.gz 
tar -zxvf jexus-5.6.2.tar.gz 
cd jexus-5.6.2 
sudo ./install 


2.2 jexus 更新

cd /tmp
sudo /usr/jexus/jws stop
wget linuxdot.net/down/jexus-5.6.2.tar.gz
tar -zxvf jexus-5.6.2.tar.gz
cd jexus-5.6.2
sudo ./upgrade


 其中版本号根据当前最新版本自行调整

你可能感兴趣的:(Centos6.4安装Mono3.10+jexus)