# root
sudo -s
# dependencies for building mono
apt-get install -y libpng3 libpng3-dev libtool libtiff4 libtiff4-dev libexif12 libexif-dev libgif4 libgif-dev libpango1.0-dev libatk1.0-dev libgtk-3-0 libgtk-3-dev bison automake autoconf make gcc gtk-sharp2 build-essential xorg-dev libfreetype6 libfontconfig libfontconfig-dev gettext libglib2.0-dev git mono-complete libjpeg-dev libjpeg8-dev libjpeg-turbo8-dev
# install llvm
#echo deb http://llvm.org/apt/precise/ llvm-toolchain-precise main >> /etc/apt/sources.list
#echo deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise main >> /etc/apt/sources.list
#curl -L http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add -
#apt-get update
#apt-get install clang-3.4 clang-3.4-doc libclang-common-3.4-dev libclang-3.4-dev libclang1-3.4 libclang1-3.4-dbg libllvm-3.4-ocaml-dev libllvm3.4 libllvm3.4-dbg lldb-3.4 llvm-3.4 llvm-3.4-dev llvm-3.4-doc llvm-3.4-examples llvm-3.4-runtime clang-modernize-3.4 clang-format-3.4 python-clang-3.4 lldb-3.4-dev
# build libgdiplus
mkdir ~/mono
git clone https://github.com/mono/libgdiplus.git ~/mono/libgdiplus
cd ~/mono/libgdiplus
#./autogen.sh --prefix=/opt/mono-3.2.3 --libdir=/opt/mono-3.2.3/lib
./autogen.sh --prefix=/usr
make
make install
# build mono
mkdir ~/mono/mono
curl -L http://download.mono-project.com/sources/mono/mono-3.2.5.tar.bz2 -o ~/mono/mono/mono-3.2.5.tar.bz2
cd ~/mono/mono
tar xvf mono-3.2.5.tar.bz2
cd ~/mono/mono/mono-3.2.5
#./autogen.sh --prefix=/opt/mono-3.2.3 --libdir=/opt/mono-3.2.3/lib
./autogen.sh --prefix=/usr
make
make install
Last active
July 22, 2018 06:24
-
-
Save aliyome/64f3a527cf7e9c44ac16 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment