-Building a Ruby environment on an EC2 server -(Deployment ①) The most polite AWS commentary in the world. Until you bring your Rails app to AWS using EC2 -AWS Construction Fighting Diary-2 Memorandum -Building an Amazon Linux2 (MySQL5.7) environment with EC2 on AWS -Checking for Magick-config ... with gem install rmagick -RMagick 3.0.0 cannot be installed on Amazon Linux -A story I couldn't do when I tried to install Nginx on EC2 with yum -I tried deploying a Rails app using AWS + Nginx + Unicorn. ~ Part 1
$ rbenv install -v 2.6.5
configure: error: in `/tmp/ruby-build.202005191817.10626/ruby-2.6.5':
configure: error: no acceptable C compiler found in $PATH
$ sudo yum install gcc openssl-devel
$ sudo yum install -y gcc-6 bzip2 openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel
$ sudo yum erase ruby.noarch
$ sudo yum install gcc
$ cat /var/log/mysqld.log | grep password
A temporary password is generated for root@localhost: ************
$ mysql_secure_installation
Enter password for user root: ************
New password: ************
Re-enter new password: ***********
$ bundle install --path vendor/bundle
An error occurred while installing rmagick (3.0.0), and Bundler cannot continue.
Make sure that `gem install rmagick -v '3.0.0' --source 'https://rubygems.org/'`
$ sudo yum -y install ImageMagick
$ sudo yum -y install ImageMagick-devel
$ sudo yum install nginx
Loaded plugin:extras_suggestions, langpacks, priorities, update-motd
Package nginx is not available.
error:Do nothing
$ sudo amazon-linux-extras install nginx1.12
or
$ sudo yum install http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm -y
$ sudo yum install nginx -y
$ cd /var/lib
$ sudo chmod -R 775 nginx
Recommended Posts