具体链接:
https://www.mono-project.com/docs/compiling-mono/linux/
依赖库
sudo apt-get install git autoconf libtool automake build-essential gettext cmake python curl # debian sudo apt-get install libtool-bin
下载库编译
https://download.mono-project.com/sources/mono/
PREFIX=/usr/local ./configure --prefix=${PREFIX} ./ make sudo make install
GIT编译
PREFIX=/usr/local PATH=$PREFIX/bin:$PATH git clone https://github.com/mono/mono.git cd mono ./autogen.sh --prefix=$PREFIX make make install
兴冲冲的按照以上步骤,会发现根本没有办法编译。怎么回事?正确办法是:
cd mono/external/bdwgc PREFIX=/usr/local ./autogen.sh --prefix=${PREFIX} ./configure make sudo make install