Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

3.0 tweaks

  • Loading branch information...
commit 82d4e020d85924b8bb35a4ea69a74d1128225805 1 parent 5ac092f
@nathanb authored
Showing with 100 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +99 −0 mono-install-scripts/ubuntu/install_mono-3.0.sh
View
1  .gitignore
@@ -1,4 +1,5 @@
sample-asp4-mvc2/build
+.DS_Store
App_Data
# .NET #
View
99 mono-install-scripts/ubuntu/install_mono-3.0.sh
@@ -0,0 +1,99 @@
+#!/bin/bash -e
+
+TOPDIR=$(pwd)
+BUILDDIR=$TOPDIR/build
+PREFIX=/opt/mono-3.0
+
+export PATH=$PREFIX/bin:$PATH
+export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
+export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
+
+
+echo "updating existing system"
+sudo apt-get update
+sudo apt-get upgrade -y
+
+echo "installing prerequisites"
+sudo apt-get install -y build-essential libc6-dev g++ gcc libglib2.0-dev pkg-config git-core apache2 apache2-threaded-dev bison gettext autoconf automake libtool libpango1.0-dev libatk1.0-dev libgtk2.0-dev libtiff4-dev libgif-dev libglade2-dev curl
+
+mkdir -p $BUILDDIR
+
+echo
+echo "downloading mono packages"
+echo
+
+cd $BUILDDIR
+
+PACKAGES=("mono-3.0.7"
+"libgdiplus-2.10.9"
+"gtk-sharp-2.12.11"
+"xsp-2.10.2"
+"mod_mono-2.10")
+
+URLS=("http://download.mono-project.com/sources/mono/mono-3.0.7.tar.bz2"
+"http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2"
+"http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.11.tar.bz2"
+"http://download.mono-project.com/sources/xsp/xsp-2.10.2.tar.bz2"
+"http://download.mono-project.com/sources/mod_mono/mod_mono-2.10.tar.bz2")
+
+
+echo Downloading
+count=${#PACKAGES[@]}
+index=0
+while [ "$index" -lt "$count" ]
+do
+ #only download it if you don't already have it.
+ if [ ! -f "${PACKAGES[$index]}.tar" -a ! -f "${PACKAGES[$index]}.tar.gz" ]
+ then
+ curl -O "${URLS[@]:$index:1}"
+ fi
+
+ #extract
+ if [ -f "${PACKAGES[$index]}.tar.gz" ]
+ then
+ tar -zxvf "${PACKAGES[$index]}.tar.gz"
+ fi
+ if [ -f "${PACKAGES[$index]}.tar.bz2" ]
+ then
+ bunzip2 -df "${PACKAGES[$index]}.tar.bz2"
+ fi
+ if [ -f "${PACKAGES[$index]}.tar" ]
+ then
+ tar -xvf "${PACKAGES[$index]}.tar"
+ fi
+
+ let "index = $index + 1"
+done
+
+
+echo
+echo "building mono packages"
+echo
+
+for i in "${PACKAGES[@]}"
+do
+ cd $BUILDDIR/$i
+ ./configure --prefix=$PREFIX
+ make
+
+ if [ "$i" = ${PACKAGES[0]} ]
+ then
+ sudo make install
+ fi
+done
+
+echo
+echo "installing mono packages"
+echo
+
+for i in "${PACKAGES[@]:1}"
+do
+ cd $BUILDDIR/$i
+ sudo make install
+done
+
+cd $BUILDDIR
+echo
+echo "done"
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.