[Ruby] Error while installing ruby execution environment on EC2 instance

less than 1 minute read

Error statement

Where the ruby environment was constructed referring to the following site… https://qiita.com/naoki_mochizuki/items/814e0979217b1a25aa3e

[naoki] sudo yum install \ #yum installation
git make gcc-c++ patch \ #c and c++ compiler, change git difference to patch file
openssl-devel \
libyaml-devel libffi-devel libicu-devel \
libxml2 libxslt libxml2-devel libxslt-devel \
zlib-devel readline-devel \
mysql mysql-server mysql-devel \
ImageMagick ImageMagick-devel \
epel-release

Various errors occur

- bash: openssl-deve: command not found
- bash: libxml2: command not found
* The error statement has disappeared, but the same error is seen in git

Solution

I was completely misread. When executing the specified command, you must add sudo yum install to the beginning as shown below. All the commands have been passed. It took me a while to notice…

[Sudo yum install] + [git make gcc-c++ patch]

Tags: ,

Updated: