1. 程式人生 > >mono-3.4.0 原始碼安裝時出現的問題 [do-install] Error 2 [install-pcl-targets] Error 1 解決方法

mono-3.4.0 原始碼安裝時出現的問題 [do-install] Error 2 [install-pcl-targets] Error 1 解決方法

/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

附安裝步驟:

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。