-
Notifications
You must be signed in to change notification settings - Fork 56
Building Ruby on Rails
Below versions of Ruby on Rails are available in respective distributions at the time of creation of these build instructions:
- Ubuntu 16.04 has
4.2.6-1 - Ubuntu 18.04 has
4.2.10-0
The instructions provided below specify the steps to build Rails version 5.2.1 on Linux on IBM Z for following distributions:
- RHEL (6.10, 7.3, 7.4, 7.5)
- SLES (12 SP3, 15)
- Ubuntu (16.04, 18.04)
General Notes:
- When following the steps below please use a standard permission user unless otherwise specified.
- A directory
/<source_root>/will be referred to in these instructions, this is a temporary writeable directory anywhere you'd like to place it.
- Building Ruby (For RHEL (6.10, 7.3, 7.4, 7.5) and SLES (12 SP3, 15))
Note: The available yum / zypper version of Ruby is too low level for the distros.
-
RHEL (6.10, 7.3, 7.4, 7.5) and SLES (12 SP3, 15)
export GEM_HOME=/home/<USER>/.gem/ruby export PATH=/home/<USER>/.gem/ruby/bin:$PATH
Note: Where <USER> is the standard user you are installing under.
-
RHEL (6.10, 7.3, 7.4, 7.5)
sudo yum install -y patch make gcc -
SLES (12 SP3, 15)
sudo zypper install -y patch make gcc -
Ubuntu (16.04, 18.04)
sudo apt-get update sudo apt-get install -y ruby ruby-dev patch make gcc zlib1g-dev
-
RHEL (6.10, 7.3, 7.4, 7.5) and SLES (12 SP3, 15)
gem install rails -v 5.2.1 -
Ubuntu (16.04, 18.04)
sudo gem install rails -v 5.2.1
-
(Output)
5.2.1
The information provided in this article is accurate at the time of writing, but on-going development in the open-source projects involved may make the information incorrect or obsolete. Please open issue or contact us on IBM Z Community if you have any questions or feedback.