Last active
December 14, 2015 15:35
-
-
Save scuderiaf1/c13f6f8f3c9d6a3dec8c to your computer and use it in GitHub Desktop.
from source with railsexpress
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
#!/usr/bin/env bash | |
# repository | |
cd /tmp | |
echo "******" | |
echo "*** update needed yum pkgs ***" | |
echo "******" | |
yum -y install libxslt-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel mysql-devel | |
yum install -y gcc gcc-c++ make autoconf zlib zlib-devel pcre-devel openssl-devel automake binutils curl-devel libxst-devel | |
yum install -y httpd-devel apr-devel apr-util-devel patch freetds freetds-devel libyaml libyaml-devel | |
yum -y install ImageMagick libXt-devel libXext-devel libX11-devel lcms-devel jasper-devel ghostscript-devel ImageMagick-devel patch | |
# ruby | |
echo "******" | |
echo "*** get ruby ***" | |
echo "******" | |
version=2.1.5 | |
cd /tmp | |
# wget https://ftp.ruby-lang.org/pub/ruby/stable/ruby-$version.tar.gz --no-check-certificate | |
wget https://ftp.ruby-lang.org/pub/ruby/ruby-2.1.5.tar.gz --no-check-certificate | |
tar zxvf ruby-$version.tar.gz | |
echo "******" | |
echo "*** patch it before the autoconf ***" | |
echo "******" | |
cd ruby-$version | |
curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patchsets/ruby/2.1.5/railsexpress | xargs -I % curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.5/% | patch -p1 | |
echo "******" | |
echo "*** autoconf ***" | |
echo "******" | |
autoconf | |
echo "******" | |
echo "*** configure ***" | |
echo "******" | |
./configure $CONFIGURE_OPTS | |
echo "******" | |
echo "*** make ***" | |
echo "******" | |
make -j 8 | |
make install | |
ln -s /usr/local/bin/ruby /usr/bin/ruby | |
ln -s /usr/local/bin/gem /usr/bin/gem | |
gem install bundler -v 1.7.12 | |
gem install passenger -v 4.0.58 | |
/usr/local/bin/passenger-install-apache2-module -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment