teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

文の修正

2018/10/25 05:34

投稿

ko-u
ko-u

スコア61

title CHANGED
@@ -1,1 +1,1 @@
1
- An error occurred while installing rmagick (2.16.0), and Bundler cannot continue.
1
+ Can't find the ImageMagick library or one of the dependent libraries。Rmagickが入れられないというエラー
body CHANGED
@@ -1,39 +1,35 @@
1
1
  Ruby初心者です。
2
2
  現在、ターミナル上で以下のようなエラーが起こっております。
3
3
 
4
- **rails sをすると**
5
- ```
6
- Could not find rmagick-2.16.0 in any of the sources
7
- ```
8
- **bundle をすると**
9
- ```
10
- An error occurred while installing rmagick (2.16.0), and
11
- Bundler cannot continue.
12
- Make sure that `gem install rmagick -v '2.16.0' --source
13
- 'https://rubygems.org/'` succeeds before bundling.
14
- ```
15
- というエラーが表示されています。
4
+ ご教授頂けますす。
16
5
 
6
+ 【問題点】
7
+ 以前にインストールしていたのにも関わらず、Rmagickをインストールすることが出来ないというエラー。
17
8
 
18
- 背景
9
+ 状況
19
- ruby 2.5.1
10
+ Ruby 2.5.1
20
11
 
21
- ・元々は、remagickではなくrailsがインストールされてないというエラーが起こっていました。そこで、下記サイトを参考に、
12
+ ```Permission denied @ rb_sysopen```
22
13
 
23
- ```
24
- sudo chown -R (ユザ名):staff /Users/(ユザ名)/.rbenv
14
+ 当初はrailsがインストルされていないというエラが表示されおりました。
25
- ```
26
15
 
27
- を実行したとろ、エラー内容remagickもの変わりました。
16
+ でディレクトリの権限ないかな?と思い、下記サイトを参考
28
17
 
29
- また、エラ内容に、
18
+ ```sudo chown -R (ユザ名):staff /Users/(ユーザ名)/.rbenv```
30
19
 
20
+ を実行したところrmagickがインストールされていないというエラーに変わりました。
21
+
22
+ 実際、ターミナル上では
23
+
31
24
  ```
32
- To see why this extension failed to compile, please check the
25
+ Make sure that `gem install rmagick -v '2.16.0' --source
33
- mkmf.log which can be found here:
26
+ 'https://rubygems.org/'` succeeds before bundling.
34
27
  ```
35
- とあったのでmkmf.logを見ると、
36
28
 
29
+ というエラーが表示されています。
30
+
31
+ mkmf.logを開くと
32
+
37
33
  ```
38
34
  find_executable: checking for clang... -------------------- yes
39
35
 
@@ -57,21 +53,23 @@
57
53
  --------------------
58
54
 
59
55
  Can't install RMagick 2.16.0. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.
60
-
61
56
  ```
62
- と表示されていました。
63
57
 
58
+ と表示されています。
64
59
 
65
- 対応
60
+ 原因?
66
- ・bundle installやbundle updateをするもエラー内容は変わらず
61
+ 原因はMacのターミナル上で日本語入力が文字化けしてしまっていたので以下の処理したことだと思います。(文字化けは解決)
67
- ・再度、sudo chown -R (ユーザ名):staff /Users/(ユーザ名)/.rbenvを実行するも変わらず
62
+ https://teratail.com/questions/101914
68
63
 
64
+ その後に、ローカルを開くとエラーが表示されるようになっていました。
69
65
 
66
+ 【対応】
67
+ ・bundle install, bundle update,gem install rmagick -v '2.16.0' をするも変わりません
68
+ ・再度、sudo chown -R (ユーザ名):staff /Users/(ユーザ名)/.rbenv
69
+ ・ImageMagick 6 系に再度update
70
70
 
71
- 【参考にしたサイト
71
+ 【参考にした記事
72
72
  https://qiita.com/nachiguro1003/items/4b564b92eca3ba35744a
73
73
  http://infinity108.com/114/
74
-
75
-
76
- 以上。ご教授して頂けると幸いです。
74
+ https://teratail.com/questions/101914
77
- よろしくお願いします。
75
+ https://qiita.com/motty93/items/29e22c6bf811f8dd00ab

1

追加

2018/10/25 05:34

投稿

ko-u
ko-u

スコア61

title CHANGED
File without changes
body CHANGED
@@ -26,9 +26,42 @@
26
26
 
27
27
  を実行したところ、エラー内容がremagickのものに変わりました。
28
28
 
29
+ また、エラー内容に、
29
30
 
31
+ ```
32
+ To see why this extension failed to compile, please check the
33
+ mkmf.log which can be found here:
34
+ ```
35
+ とあったのでmkmf.logを見ると、
30
36
 
37
+ ```
38
+ find_executable: checking for clang... -------------------- yes
31
39
 
40
+ --------------------
41
+
42
+ find_executable: checking for Magick-config... -------------------- yes
43
+
44
+ --------------------
45
+
46
+ configure_compile_options: checking for outdated ImageMagick version (<= 6.4.9)... -------------------- no
47
+
48
+ Detected ImageMagick version: 6.9.10
49
+ --------------------
50
+
51
+ configure_compile_options: checking for presence of MagickWand API (ImageMagick version >= 6.9.0)... -------------------- no
52
+
53
+ Detected 6.9+ version, using MagickWand API--------------------
54
+
55
+ assert_minimum_ruby_version!: checking for Ruby version >= 1.8.5... -------------------- yes
56
+
57
+ --------------------
58
+
59
+ Can't install RMagick 2.16.0. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.
60
+
61
+ ```
62
+ と表示されていました。
63
+
64
+
32
65
  【対応】
33
66
  ・bundle installやbundle updateをするもエラー内容は変わらず。
34
67
  ・再度、sudo chown -R (ユーザ名):staff /Users/(ユーザ名)/.rbenvを実行するも変わらず
@@ -39,5 +72,6 @@
39
72
  https://qiita.com/nachiguro1003/items/4b564b92eca3ba35744a
40
73
  http://infinity108.com/114/
41
74
 
75
+
42
76
  以上。ご教授して頂けると幸いです。
43
77
  よろしくお願いします。