LoginSignup
0
1

More than 3 years have passed since last update.

Rails Tutorial 第13章 S3のエラー以外は完了

Posted at

2020/8/30 1.5時間

13.1.3まで進めました。

2020/8/31 0.5時間

13.16まで進めました。

2020/9/1 0.5時間

13.21まで進めました。

2020/9/2 0.5時間

13.22まで進めました。

2020/9/3 2.0時間

有給休暇で、13.29まで進めました。

2020/9/4 0.5時間

13.2.3.2まで進めました。

2020/9/5 2.5時間

休みの日で、13.3.1まで進めました。

2020/9/6 1.5時間

休みの日で、13.3.4まで進めました。

2020/9/7 0.5時間

13.55まで進めました。

2020/9/8 0.5時間

13.3.5.1まで進めました。

2020/9/9 0.5時間

13.3完了です。

2020/9/10 2.0時間

有給休暇で、13.63まで進めました。
Cloud9のディスクが不足でgemのinstallができず、ディスクを拡張しました。

2020/9/11 0.5時間

13.4.2完了です。

2020/9/12 4.0時間

休みの日で、13.4.3完了です。
ImageMagickのインストールエラーで時間をとられました。さらにAWS S3のエラーで2時間ほどはまり、この日はあきらめました。

2020/9/13 1.5時間

休みの日で進めました。S3のエラーは根本は解決しませんでしたが、そのまま進めました。

13章を完了です。
所要時間は19.0時間です。

cloud9でyumがないためImageMagickがインストールできない

ubuntu:~/environment/sample_app (user-microposts) $ sudo yum install -y ImageMagick
sudo: yum: command not found

yumがないとエラー、Ubuntuではyumではなくaptのようです。
ネットで調べ、apt-getを入力します。

ubuntu:~/environment/sample_app (user-microposts) $ sudo apt-get update
ubuntu:~/environment/sample_app (user-microposts) $ sudo apt-get install imagemagick
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 imagemagick : Depends: imagemagick-6.q16 (>= 8:6.9.2.10+dfsg-2~) but it is not going to be installed
 linux-headers-5.3.0-1034-aws : Depends: linux-aws-5.3-headers-5.3.0-1034 but it is not going to be installed
 linux-image-5.3.0-1034-aws : Depends: linux-modules-5.3.0-1034-aws but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

エラーがでたので、メッセージにあるTryの後のコマンドを入力してみたところ、無事できました。

ubuntu:~/environment/sample_app (user-microposts) $ sudo apt --fix-broken  install 
..done
ubuntu:~/environment/sample_app (user-microposts) $ sudo apt-get install imagemagick

演習13.4.4.2 エラーがでると書いてあるが、エラーはでなかった

テキストではtestでエラーがでると書いてありますが、エラーはでませんでした。rails.pngが小さくて縮小されないのではと思い、ダウンロードしてみたところ、凄く小さいアイコンファイルでした。サイズが大きいファイルで置き換えてみましたが、エラーはでません。

リスト13.68のファイルを作ってみましたが、結果が変わらないのでこのファイルが効いているのかも分かりませんでした。

0
1
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
0
1