Error installing ruby execution environment on EC2 instance

Error statement

I was building a ruby environment with reference to the following site ... https://qiita.com/naoki_mochizuki/items/814e0979217b1a25aa3e

[naoki] sudo yum install \ #install yum
git make gcc-c++ patch \ #c and c++Compiler, git diff changed 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 occurs with git.

Solution

I was completely misread. When executing the specified command, you must prefix it with sudo yum install as shown below. Now everything has passed the command. It took me a while to notice ...

【sudo yum install】 + 【git make gcc-c++ patch】

Recommended Posts

Error installing ruby execution environment on EC2 instance
I tried installing docker on an EC2 instance
How to install Ruby on an EC2 instance on AWS
Installing Ruby + Rails on Ubuntu 18.04 (rbenv)
Error when deploying EC2 on CircleCI
Ruby on Rails 6.0 environment construction memo
[Rails] AWS EC2 instance environment construction
[Ruby] Building a Ruby development environment on Ubuntu
Procedure to create Ruby execution environment locally
[Error] Switch environment construction to use Ruby on Rails oss (open source)
Muscle Ruby on Rails Day 1 ~ Environment Construction ~
[Ruby on Rails] How to display error messages
[Java] Build Java development environment on Ubuntu & check execution
[Personal memo] Ruby on Rails environment construction (Windows)
Build a Laravel environment on an AWS instance
[Ruby on Rails] Let's build an environment on mac
Ruby on Rails development environment construction on M1 Mac
[Ruby on Rails] Individual display of error messages
EC2 on Docker-compose
Install docker-compose on a Graviton 2 instance of AWS EC2
[Environment construction] Ruby on Rails 5.2 system development environment construction [within 1 hour]
[Ruby on Rails Tutorial] Error in the test in Chapter 3
Build a Ruby on Rails development environment on AWS Cloud9
Docker the development environment of Ruby on Rails project
Deploy laravel using docker on EC2 on AWS ① (Create EC2 instance)
Deploy to Ruby on Rails Elastic beanstalk (Environment construction)
[Environment construction Mac] Ruby on Rails (+ Webpacker handles errors)
What I stumbled upon when installing Ruby on Ubuntu
Ruby on Rails environment construction using VirtualBox, Vagrant, cyberduck