Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
Intro
Certain members in the Ruby community feel very strongly that you should never use a package manager to install Ruby and that you should use tools instead.
The most basic reason is that most package managers have older versions of Ruby in their official repositories.
If you would like to use the newest Ruby, make sure you use the correct package name, or use the tools described above instead.
Release Date
25 Dec 2018
Installing prerequisites
sudo apt-get install g++ gcc
sudo apt-get install gawk make bison sqlite3 autoconf pkg-config
sudo apt-get install libc6-dev libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev libgdbm-dev libncurses5-dev automake libtool libffi-dev
Ruby Installation
wget https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.0.tar.gz
tar -xvzf ruby-2.6.0.tar.gz
cd ruby-2.6.0
./configure
make && sudo make install
ruby -v
which ruby
sudo gem update --system
Rails Installation
sudo gem install rails -v 5.2.2
Rails Hello WOrld
mkdir /opt/rails_app/
cd /opt/rails_app/
rails new hello_world
cd hello_world
rails server
Add Comment
Please, Sign In to add comment