Instal Ruby Json Gem di AWS EC2

# List amazon-linux extras
amazon-linux-extras list

# Output
# 39  ruby2.6=latest           enabled      [ =2.6  =stable ]
# 57  ruby3.0=latest           enabled      [ =stable ]

sudo amazon-linux-extras install ruby2.6

# Install ruby-devel to compile json gem
yum install ruby-devel

# Install json gem
gem install json
RicarHincapie