Created
December 10, 2016 00:10
-
-
Save jorgedison/2a98cff6b14cfebe3504e68dbe473557 to your computer and use it in GitHub Desktop.
Mono Apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install epel-release -y | |
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype- devel libxml2 libxml2- devel zlib zlib-devel glibc glibc-devel glib2 glib2- devel bzip2 bzip2-devel bison pkgconfig glib2-devel gettext make pcre-devel libX11-devel cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel cmake -y | |
cd /tmp/ | |
wget http://download.mono-project.com/sources/mono/mono-4.6.2.7.tar.bz2 | |
wget http://download.mono-project.com/sources/xsp/xsp-4.2.tar.gz | |
wget http://download.mono-project.com/sources/mod_mono/mod_mono-3.12.tar.gz | |
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-4.2.tar.gz | |
tar -jxvf mono-4.6.2.7.tar.bz2 | |
tar zxvf xsp-4.2.tar.gz | |
tar zxvf mod_mono-3.12.tar.gz | |
tar zxvf libgdiplus-4.2.tar.gz | |
cd libgdiplus-4.2 | |
./configure --prefix=/opt/mono | |
make ; make install | |
cd ../mono-4.6.2 | |
./configure --prefix=/opt/mono --with-libgdiplus=/opt/mono | |
make ; make install | |
export PATH=$PATH:/opt/mono/bin | |
export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig | |
cd ../xsp-4.2 | |
./configure --prefix=/opt/mono | |
make ; make install | |
cd ../mod_mono-3.12 | |
./configure --prefix=/opt/mono --with-mono-prefix=/opt/mono | |
yum install httpd-devel -y | |
make ; make install | |
mv mod_mono.conf /etc/httpd/conf/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment