質問編集履歴
2
文脈の読みにくさを改善
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,9 +1,41 @@
|
|
1
1
|
### gem install 実行時エラーの解決方法を教えてほしい
|
2
2
|
|
3
|
-
gem install rails -v "6.0.2.1" 実行時以下の
|
3
|
+
gem install rails -v "6.0.2.1" 実行時以下のエラーが発生します。
|
4
4
|
しばらく解決方法がないか調べましたが、私では見当たりませんでした。
|
5
5
|
[https://gist.github.com/chemicalist11/f77e1979ad8cd0e70be9c097c3e109ba](https://gist.github.com/chemicalist11/f77e1979ad8cd0e70be9c097c3e109ba)
|
6
6
|
|
7
|
+
```
|
8
|
+
koike@yamadatarounoMacBook-Air ~ % gem install rails -v "6.0.2.1"
|
9
|
+
Building native extensions. This could take a while...
|
10
|
+
ERROR: Error installing rails:
|
11
|
+
ERROR: Failed to build gem native extension.
|
12
|
+
|
13
|
+
current directory: /Users/koike/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mimemagic-0.3.10/ext/mimemagic
|
14
|
+
/Users/koike/.rbenv/versions/2.6.5/bin/ruby -rrubygems /Users/koike/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rake-12.3.2/exe/rake RUBYARCHDIR\=/Users/koike/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/-darwin-20/2.6.0/mimemagic-0.3.10 RUBYLIBDIR\=/Users/koike/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/-darwin-20/2.6.0/mimemagic-0.3.10
|
15
|
+
rake aborted!
|
16
|
+
Could not find MIME type database in the following locations: ["/usr/local/share/mime/packages/freedesktop.org.xml", "/opt/homebrew/share/mime/packages/freedesktop.org.xml", "/opt/local/share/mime/packages/freedesktop.org.xml", "/usr/share/mime/packages/freedesktop.org.xml"]
|
17
|
+
|
18
|
+
Ensure you have either installed the shared-mime-info package for your distribution, or
|
19
|
+
obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to the location
|
20
|
+
of that file.
|
21
|
+
|
22
|
+
This gem might be installed as a dependency of some bigger package, such as rails, activestorage,
|
23
|
+
axlsx or cucumber. While most of these packages use the functionality of this gem, some gems have
|
24
|
+
included this gem by accident. Set USE_FREEDESKTOP_PLACEHOLDER=true if you are certain that you
|
25
|
+
do not need this gem, and wish to skip the inclusion of freedesktop.org.xml.
|
26
|
+
|
27
|
+
The FREEDESKTOP_PLACEHOLDER option is meant as a transitional feature, and will be deprecated in
|
28
|
+
the next release.
|
29
|
+
|
30
|
+
Tasks: TOP => default
|
31
|
+
(See full trace by running task with --trace)
|
32
|
+
|
33
|
+
rake failed, exit code 1
|
34
|
+
|
35
|
+
Gem files will remain installed in /Users/koike/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mimemagic-0.3.10 for inspection.
|
36
|
+
Results logged to /Users/koike/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/-darwin-20/2.6.0/mimemagic-0.3.10/gem_make.out
|
37
|
+
```
|
38
|
+
|
7
39
|
他に必要な情報があれば教えて下さい。
|
8
40
|
初学者のため、色々とお手数をおかけしてしまい、申し訳ございません。
|
9
41
|
解決方法について、ご教示よろしくお願い致します。
|
1
脱字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
### gem install 実行時エラーの解決方法を教えてほしい
|
2
2
|
|
3
|
-
gem install rails -v "6.0.2.1" 実行時以下のURLに記載のエラーが発生す
|
3
|
+
gem install rails -v "6.0.2.1" 実行時以下のURLに記載のエラーが発生します。
|
4
4
|
しばらく解決方法がないか調べましたが、私では見当たりませんでした。
|
5
5
|
[https://gist.github.com/chemicalist11/f77e1979ad8cd0e70be9c097c3e109ba](https://gist.github.com/chemicalist11/f77e1979ad8cd0e70be9c097c3e109ba)
|
6
6
|
|