文章出處

Mono 3.4修復了很多bug,繼續加強穩定性和性能(其實Mono 3.2.8 已經很穩定,性能也很好了),但是從http://download.mono-project.com/sources/mono/ 下載官方提供的源碼安裝Mono3.4 出現如下錯誤:

/usr/bin/install: cannot stat `targets/Microsoft.Portable.Common.targets': No such file or directory
make[7]: *** [install-pcl-targets] Error 1
make[7]: Leaving directory `/usr/local/files/mono-3.4.0/mcs/tools/xbuild'
make[6]: *** [do-install] Error 2
make[6]: Leaving directory `/usr/local/files/mono-3.4.0/mcs/tools/xbuild'
make[5]: *** [install-recursive] Error 1
make[5]: Leaving directory `/usr/local/files/mono-3.4.0/mcs/tools'
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory `/usr/local/files/mono-3.4.0/mcs'
make[3]: *** [profile-do--net_2_0--install] Error 2
make[3]: Leaving directory `/usr/local/files/mono-3.4.0/mcs'
make[2]: *** [profiles-do--install] Error 2
make[2]: Leaving directory `/usr/local/files/mono-3.4.0/mcs'
make[1]: *** [install-exec] Error 2
make[1]: Leaving directory `/usr/local/files/mono-3.4.0/runtime'
make: *** [install-recursive] Error 1

768D28AC02C346A4B9699AFE0C3B0D81

這是由于官方的mono源碼包缺少個文件,所以會出錯,可以下載我的云盤上共享的文件 http://pan.baidu.com/s/1eQ452Ie,參照這篇文章《CentOS 6.3下 安裝 Mono 3.2 和Jexus 5.4》下載安裝就沒問題了。

附安裝步驟:

1.系統環境 操作系統: CentOS 6.4 最小化安裝
2.安裝Mono
2.1安裝libgdiplus
(1)安裝缺失的組件 yum -y install wget glib2-devel libtiff libtiff-devel libjpeg libjpeg-devel giflib giflib-devel libpng libpng-devel libX11 libX11-devel freetype freetype-devel fontconfig fontconfig-devel libexif libexif-devel gcc-c++ gettext unzip zip
(2)下載 libgdiplus cd /usr/software wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2 (3)安裝 libgdiplus tar jvxf libgdiplus-2.10.tar.bz2 cd libgdiplus-2.10 ./configure --prefix=/usr make && make install
2.2安裝Mono3.4.0
(1)下載 從百度網盤上下載最新的Mono, http://pan.baidu.com/s/1eQ452Ie 并上傳到/usr/software目錄 cd /usr/software
(2)安裝 tar -xzf mono-3.4.0.tar.gz cd mono-3.4.0 ./configure --prefix=/usr make && make install 安裝時間比較長,需要多等一會
3. 安裝Jexus
(1)下載 cd /usr/software wget http://www.linuxdot.net/down/jexus-5.5.1.tar.gz 
(2)安裝 tar -zxvf jexus-5.5.1.tar.gz  cd jexus-5.5.1  ./install
(3)測試是否安裝成功 開啟防火墻端口   啟動Jexus服務器 /usr/jexus/jws start 在客戶端瀏覽器中輸入"服務器地址/info", 如"http://192.168.1.15/info",顯示正常即表示安裝成功
(4)基本使用 啟動:sudo /usr/jexus/jws start 停止:sudo /usr/jexus/jws stop 重啟:sudo /usr/jexus/jws restart 更多使用方法可在http://www.jexus.org/學習

歡迎各位熱心Linux平臺.NET應用程序開發,特別是希望基于Linux進行ASP.NET WEB網站建設的朋友,多多關注 http://www.linuxdot.net,或加入.NET LINUX QQ群:103810355。


文章列表




Avast logo

Avast 防毒軟體已檢查此封電子郵件的病毒。
www.avast.com


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()