-
Notifications
You must be signed in to change notification settings - Fork 192
Special Ruby Builds
axelstudios edited this page Nov 20, 2014
·
12 revisions
Wiki ▸ Special Ruby Builds
Build OpenSSL and Ruby
curl -LO https://www.openssl.org/source/openssl-1.0.1j.tar.gz
tar -xzf openssl-1.0.1j.tar.gz
rm openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
./configure darwin64-x86_64-cc --prefix=$HOME/openssl
make -j8
make install
cd ..
rm -rf openssl-1.0.1j
curl -LO http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p594.tar.gz
tar -xzf ruby-2.0.0-p594.tar.gz
rm ruby-2.0.0-p594.tar.gz
cd ruby-2.0.0-p594
./configure --enable-load-relative --disable-install-doc --prefix=$HOME/ruby-2.0.0-aws-Darwin --with-openssl-dir=$HOME/openssl
make -j2
make install
cd ..
rm -rf ruby-2.0.0-p594
cd $HOME/ruby-2.0.0-aws-Darwin/
rm -rf share
bin/gem install aws-sdk --no-rdoc --no-ri
bin/gem install net-scp --no-rdoc --no-ri
rm lib/libruby-static.a
rm lib/ruby/gems/2.0.0/cache/*
cd ..
tar -jcvf ruby-2.0.0p594-aws-Darwin.tar.bz2 ruby-2.0.0-aws-Darwin
wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p594.tar.gz
tar -xzf ruby-2.0.0-p594.tar.gz
rm ruby-2.0.0-p594.tar.gz
cd ruby-2.0.0-p594
./configure --enable-load-relative --disable-install-doc --prefix=$HOME/ruby-2.0.0-aws-Linux-x86_64
make -j2
make install
cd ..
rm -rf ruby-2.0.0-p594
cd $HOME/ruby-2.0.0-aws-Linux-x86_64/
rm -rf share
bin/gem install aws-sdk --no-rdoc --no-ri
bin/gem install net-scp --no-rdoc --no-ri
rm lib/libruby-static.a
rm lib/ruby/gems/2.0.0/cache/*
cd ..
tar -jcvf ruby-2.0.0p594-aws-Linux-x86_64.tar.bz2 ruby-2.0.0-aws-Linux-x86_64