-
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
(Using Git Bash)
Download and install Ruby 2.0p594
cd /C/Ruby200/
rm -rf doc share unins000.* lib/libmsvcrt-ruby200-static.a
cd bin
gem install aws-sdk --no-rdoc --no-ri
gem install net-scp --no-rdoc --no-ri
cd ..
rm -rf lib/ruby/gems/2.0.0/cache/*
mkdir ruby-2.0.0-aws-win32
cp -r bin include lib ruby-2.0.0-aws-win32/
Right click --> Send to --> Compressed (zipped) folder ruby-2.0.0p594-aws-win32.zip
(Using Git Bash)
Download and install Ruby 2.0p594 x64
cd /C/Ruby200-x64/
rm -rf doc share unins000.* lib/libx64-msvcrt-ruby200-static.a
cd bin
gem install aws-sdk --no-rdoc --no-ri
gem install net-scp --no-rdoc --no-ri
cd ..
rm -rf lib/ruby/gems/2.0.0/cache/*
mkdir ruby-2.0.0-aws-win64
cp -r bin include lib ruby-2.0.0-aws-win64/
Right click --> Send to --> Compressed (zipped) folder ruby-2.0.0p594-aws-win64.zip
#### OS X Mavericks (Yosemite is untested)
Build OpenSSL and Ruby
```bash
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