Skip to content

Special Ruby Builds

Alex Swindler edited this page Apr 15, 2016 · 12 revisions

WikiSpecial Ruby Builds

AWS Ruby Packages

Windows 32-bit

(Using Git Bash)

Download and install Ruby 2.0-p645

cd /C/Ruby200/
rm -rf doc share unins000.* lib/libmsvcrt-ruby200-static.a
cd bin
gem install bundler --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.0-p645-aws-win32.zip

Windows 64-bit

(Using Git Bash)

Download and install Ruby 2.0-p645 x64

cd /C/Ruby200-x64/
rm -rf doc share unins000.* lib/libx64-msvcrt-ruby200-static.a
cd bin
gem install bundler --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.0-p645-aws-win64.zip

OS X Mavericks (Yosemite is untested)

Build OpenSSL and Ruby

curl -LO http://openssl.org/source/openssl-1.0.1m.tar.gz
tar -xzf openssl-1.0.1m.tar.gz
rm openssl-1.0.1m.tar.gz
cd openssl-1.0.1m
./configure darwin64-x86_64-cc --prefix=$HOME/openssl
make -j8
make install
cd ..
rm -rf openssl-1.0.1m
curl -LO http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p645.tar.gz
tar -xzf ruby-2.0.0-p645.tar.gz
rm ruby-2.0.0-p645.tar.gz
cd ruby-2.0.0-p645
./configure --enable-load-relative --disable-install-doc --prefix=$HOME/ruby-2.0.0-aws-Darwin --with-openssl-dir=$HOME/openssl
make -j8
make install
cd ..
rm -rf ruby-2.0.0-p645
cd $HOME/ruby-2.0.0-aws-Darwin/
rm -rf share
rm lib/libruby-static.a
bin/gem install bundler --no-rdoc --no-ri
rm lib/ruby/gems/2.0.0/cache/*
cd ..
tar -jcvf ruby-2.0.0-p645-aws-Darwin.tar.bz2 ruby-2.0.0-aws-Darwin

Ubuntu

wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p645.tar.gz
tar -xzf ruby-2.0.0-p645.tar.gz
rm ruby-2.0.0-p645.tar.gz
cd ruby-2.0.0-p645
./configure --enable-load-relative --disable-install-doc --prefix=$HOME/ruby-2.0.0-aws-Linux-x86_64
make -j8
make install
cd ..
rm -rf ruby-2.0.0-p645
cd $HOME/ruby-2.0.0-aws-Linux-x86_64/
rm -rf share
bin/gem install bundler --no-rdoc --no-ri
rm lib/libruby-static.a
rm lib/ruby/gems/2.0.0/cache/*
cd ..
tar -jcvf ruby-2.0.0-p645-aws-Linux-x86_64.tar.bz2 ruby-2.0.0-aws-Linux-x86_64

PAT 2.0 Ruby Packages

Windows

(Using Git Bash)

Download and install Ruby 2.0-p648, adding the bin directory to your path Download and install Devkit to C:\Devkit\

cd /C/Devkit/
../Ruby200/bin/ruby.exe dk.rb init

Edit C:\Devkit\config.yml to include only C:/Ruby200

../Ruby200/bin/ruby.exe dk.rb install
cd ~
gem update --system
gem install bundler --no-rdoc --no-ri
git clone git@github.com:NREL/OpenStudio-server.git -b windows-support-ubuntu
cd OpenStudio-server
bundler install --without test development
cd server
bundler install --without test development
cd /C/Ruby200/
rm -rf doc share unins000.* lib/libmsvcrt-ruby200-static.a lib/libmsvcrt-ruby200.dll.a
cd bin
cd ..
rm -rf lib/ruby/gems/2.0.0/cache/* lib/ruby/gems/2.0.0/doc/*
mkdir ruby-2.0.0-p648-windows
cp -r bin include lib ruby-2.0.0-p648-windows/

Right click --> Send to --> Compressed (zipped) folder ruby-2.0.0p648-windows.zip