Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

install ruby json gem in 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
 
PREVIOUS NEXT
Tagged: #install #ruby #json #gem #aws
ADD COMMENT
Topic
Name
5+7 =