在debain和ubuntu上安裝mono

 1、更新系統:php

若是你的系統是新安裝的,必定要執行這兩步,不然源可能會找不到或者錯誤ui

sudo apt-get update
sudo apt-get upgrade
2、構建編譯環境:
若是你的系統是新安裝的,那麼你得構建一個編譯環境,以便順利完成對mono源文件的編譯安裝,裝完編譯環境以後最好多執行幾回下面的命令確認都已安裝完畢。
sudo apt-get install build-essential
sudo apt-get install automake autoconf
sudo apt-get install bison gettext libtool libglib2.0-dev libfreetype6-dev libfontconfig-dev
3、安裝libgdiplus、mono以及編譯環境所須要的其它庫文件spa

這裏最好也多執行幾回,確認安裝完畢
sudo apt-get install libgif-dev libtiff4-dev libpng12-dev libexif-dev libx11-dev libxft-dev libjpeg-dev
4、源文件下載與解壓:
1,下載:
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2
wget http://download.mono-project.com/sources/mono/mono-3.2.3.tar.bz2
2,解壓:
tar jvxf libgdiplus-2.10.tar.bz2
tar jvxf mono-3.2.3.tar.bz2
5、安裝Libgdiplus和Mono:
一、安裝libgdiplus
  cd libgdiplus-2.10
  ./configure --prefix=/usr
  make
  sudo make install
  cd ..
二、安裝Mono
  cd mono-3.2.3
  ./configure --prefix=/usr
  make
  sudo make install
  cd ..
經過以上的步驟,Mono就安裝好了,能夠經過 mono -V 查看mono版本的方式驗證安裝是否成功,而後就能夠經過WinSCP傳送你的程序集執行了。
.net

 

Mono JIT compiler version 3.2.3 (tarball Thu Sep 26 17:02:47 UTC 2013)
Copyright (C) 2002-2012 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: sgendebug

WinSCP下載路徑http://winscp.net/eng/download.phpip

相關文章
相關標籤/搜索