質問編集履歴
2
文の修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
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
|
-
・
|
10
|
+
・Ruby 2.5.1
|
20
11
|
|
21
|
-
|
12
|
+
```Permission denied @ rb_sysopen```
|
22
13
|
|
23
|
-
```
|
24
|
-
|
14
|
+
当初はrailsがインストールされていないというエラーが表示されおりました。
|
25
|
-
```
|
26
15
|
|
27
|
-
|
16
|
+
そこでディレクトリの権限がないのかな?と思い、下記サイトを参考に
|
28
17
|
|
29
|
-
|
18
|
+
```sudo chown -R (ユーザ名):staff /Users/(ユーザ名)/.rbenv```
|
30
19
|
|
20
|
+
を実行したところrmagickがインストールされていないというエラーに変わりました。
|
21
|
+
|
22
|
+
実際、ターミナル上では
|
23
|
+
|
31
24
|
```
|
32
|
-
|
25
|
+
Make sure that `gem install rmagick -v '2.16.0' --source
|
33
|
-
|
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
|
-
|
61
|
+
原因はMacのターミナル上で日本語入力が文字化けしてしまっていたので以下の処理をしたことだと思います。(文字化けは解決)
|
67
|
-
|
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
追加
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
|
よろしくお願いします。
|