0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

gem install mailcactherで起きたエラーを解決する

Last updated at Posted at 2021-09-04

mailcactherをインストールしたい

やったこと

gem install mailcacther
を実行してmailcactherをインストールしようとする

(ちなみに、mailcactherはbundleを使ってインストールすると不具合が生じるらしい)

エラー発生

1 warning and 2 errors generated.
make: *** [parser.o] Error 1

以下のコマンドを打つ

gem install thin -v '1.5.1' -- --with-cflags="-Wno-error=implicit-function-declaration"

またエラー発生

Permission denied @ rb_sysopen - /Users/nagaoka/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/thin-1.5.1/CHANGELOG 

権限を許可しないといけないらしい。
sudoをつけて権限を許可させよう

sudo gem install thin -v '1.5.1' -- --with-cflags="-Wno-error=implicit-function-declaration"


成功!!!

だけどsudoをむやみに使うのはよくないみたいだから今度はその理由についてまとめたい

参照

現場で使える Ruby on Rails実践ガイド p302
https://qiita.com/tokimari/items/feda1ed61f2d8b5b317c

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?