質問編集履歴

2

文脈の読みにくさを改善

2021/06/25 16:38

投稿

chemicalist11
chemicalist11

スコア44

test CHANGED
File without changes
test CHANGED
@@ -2,11 +2,75 @@
2
2
 
3
3
 
4
4
 
5
- gem install rails -v "6.0.2.1" 実行時以下のURLに記載のエラーが発生します。
5
+ gem install rails -v "6.0.2.1" 実行時以下のエラーが発生します。
6
6
 
7
7
  しばらく解決方法がないか調べましたが、私では見当たりませんでした。
8
8
 
9
9
  [https://gist.github.com/chemicalist11/f77e1979ad8cd0e70be9c097c3e109ba](https://gist.github.com/chemicalist11/f77e1979ad8cd0e70be9c097c3e109ba)
10
+
11
+
12
+
13
+ ```
14
+
15
+ koike@yamadatarounoMacBook-Air ~ % gem install rails -v "6.0.2.1"
16
+
17
+ Building native extensions. This could take a while...
18
+
19
+ ERROR: Error installing rails:
20
+
21
+ ERROR: Failed to build gem native extension.
22
+
23
+
24
+
25
+ current directory: /Users/koike/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mimemagic-0.3.10/ext/mimemagic
26
+
27
+ /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
28
+
29
+ rake aborted!
30
+
31
+ 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"]
32
+
33
+
34
+
35
+ Ensure you have either installed the shared-mime-info package for your distribution, or
36
+
37
+ obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to the location
38
+
39
+ of that file.
40
+
41
+
42
+
43
+ This gem might be installed as a dependency of some bigger package, such as rails, activestorage,
44
+
45
+ axlsx or cucumber. While most of these packages use the functionality of this gem, some gems have
46
+
47
+ included this gem by accident. Set USE_FREEDESKTOP_PLACEHOLDER=true if you are certain that you
48
+
49
+ do not need this gem, and wish to skip the inclusion of freedesktop.org.xml.
50
+
51
+
52
+
53
+ The FREEDESKTOP_PLACEHOLDER option is meant as a transitional feature, and will be deprecated in
54
+
55
+ the next release.
56
+
57
+
58
+
59
+ Tasks: TOP => default
60
+
61
+ (See full trace by running task with --trace)
62
+
63
+
64
+
65
+ rake failed, exit code 1
66
+
67
+
68
+
69
+ 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.
70
+
71
+ 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
72
+
73
+ ```
10
74
 
11
75
 
12
76
 

1

脱字修正

2021/06/25 16:38

投稿

chemicalist11
chemicalist11

スコア44

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- gem install rails -v "6.0.2.1" 実行時以下のURLに記載のエラーが発生す
5
+ gem install rails -v "6.0.2.1" 実行時以下のURLに記載のエラーが発生します。
6
6
 
7
7
  しばらく解決方法がないか調べましたが、私では見当たりませんでした。
8
8