-
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
- Ubuntu 20.04 has
5.2.3
- SLES 15 SP1 has
5.1.4
The instructions provided below specify the steps to build Rails version 6.0.3.2 on Linux on IBM Z for following distributions:
- RHEL (7.6, 7.7, 7.8, 8.1, 8.2)
- SLES (12 SP5, 15 SP1)
- Ubuntu (16.04, 18.04, 20.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 writable directory anywhere you'd like to place it.
- Building Ruby (For RHEL (7.6, 7.7, 7.8) ,SLES 12 SP5 and Ubuntu 16.04 )
Note: For Ubuntu 16.04, install the following packages before building Ruby: zlib1g-dev libssl-dev libreadline-dev
.
-
RHEL (7.6, 7.7, 7.8) , SLES 12 SP5
export GEM_HOME=$HOME/.gem/ruby export PATH=$HOME/.gem/ruby/bin:$PATH
-
RHEL (8.1 , 8.2)
export PATH=$HOME/bin:$PATH
-
RHEL (7.6, 7.7, 7.8)
sudo yum install -y patch make gcc
-
RHEL (8.1, 8.2)
sudo yum groupinstall -y 'Development Tools' sudo yum install -y redhat-rpm-config zlib-devel.s390x zlib.s390x ruby-devel.s390x make gcc patch
-
SLES 12 SP5
sudo zypper install -y patch make gcc
-
SLES 15 SP1
sudo zypper install -y ruby2.5 ruby2.5-devel gcc zlib-devel gawk make patch tar gzip
-
Ubuntu 16.04
sudo apt-get update sudo apt-get install -y patch git
-
Ubuntu (18.04, 20.04)
sudo apt-get update sudo apt-get install -y ruby ruby-dev make gcc zlib1g-dev patch
gem install rails -v 6.0.3.2 # For RHEL and SLES 12.x
sudo gem install rails -v 6.0.3.2 # For Ubuntu and SLES 15 SP1
sudo ln -sf /usr/lib64/ruby/gems/2.5.0/gems/railties-6.0.3.2/exe/rails /usr/bin/rails # For SLES 15 SP1 only
-
(Output)
Rails 6.0.3.2
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.