首页 > 代码库 > debain上安装mono3.4.0和jexus5.5.2

debain上安装mono3.4.0和jexus5.5.2

今天折腾了四个小时才把这个正确安装上,特此记录下。特别感谢群友的支持。

在VMware上新安装了Debain7.5,具体细节不复述了。

一、更新系统

#apt-get update

#apt-get upgrade

二、构建编译环境

#apt-get install build-essential

#apt-get install automake autoconf

#apt-get install bison gettext libtool libglib2.0-dev libfreetype6-dev libfontconfig-dev

(最好一个个地执行,保证安装成功)

三、安装其它库文件

#apt-get install libgif-dev libtiff4-dev libpng12-dev libexif-dev libx11-dev libxft-dev libjpeg-dev(也是最好一个个地执行,保证安装成功)

四、下载源文件及解压

#wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2

#wget http://download.mono-project.com/sources/mono/mono-3.4.0.tar.bz2

#tar -jxf libgdiplus-2.10.tar.bz2

#tar -jxf mono-3.4.0.tar.bz2

五、安装libgdiplus和mono

1、安装libgdiplus

#cd libgdiplus-2.10

# ./configure --prefix=/usr

#make

#make install

cd..

2、安装mono

#cd mono-3.4.0

#cd mcs/tools/xbuild/targets

#cp Microsoft.Portable.CSharp_4.0.targets  Microsoft.Portable.Common.targets

#vi Microsoft.Portable.Common.targets

 将<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />去掉之后保存退出

#apt-get install mono-gmcs

#cd 

#cd mono-3.4.0

# ./configure --prefix=/usr

#make

#make install

#cd..

至此 mono -V查看版本

Mono JIT compiler version 3.4.0 (tarball Sat Jun 28 22:08:03 CST 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

 

六、安装jexus

 

#wget http://www.linuxdot.net/down/jexus-5.5.2.tar.gz

#tar -zxf jexus-5.5.2.tar.gz

#mv jexus-5.5.2 /usr/local/jexus

#cd /usr/local/jexus

#./install

Installed /usr/jexus/jxAspx2.dll into the gac (/usr/lib/mono/gac)
Installed /usr/jexus/jxAspx.dll into the gac (/usr/lib/mono/gac)
Installed /usr/jexus/jxHost2.dll into the gac (/usr/lib/mono/gac)
Installed /usr/jexus/jxHost.dll into the gac (/usr/lib/mono/gac)
OK, Jexus web server has been installed to ‘/usr/jexus‘.

#/usr/jexus/jws start

Starting... OK

 

接下来就准备把devtext往mono上迁移了