LoginSignup
1
0

More than 3 years have passed since last update.

【Rails】 AWSデプロイ エラー遭遇まとめ

Last updated at Posted at 2020-05-19

参考文献

Rubyインストール編

rbenv インストールエラー

$ 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

MySQL編

root初期パスワード在り処

$ 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: ***********

RMgick編

RMagickインストールエラー

$ 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

Nginx編

Nginxインストールエラー

$ sudo yum install nginx
読み込んだプラグイン:extras_suggestions, langpacks, priorities, update-motd
パッケージ nginx は利用できません。
エラー: 何もしません

解決コマンド

$ 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

nginx.conf設定後のpostメソッド対策

$ cd /var/lib
$ sudo chmod -R 775 nginx
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0