質問編集履歴
4
追加情報
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
CentOS 7 環境でのRuby
|
1
|
+
CentOS 7 環境でのRubyのインストール方法
|
test
CHANGED
File without changes
|
3
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -179,3 +179,35 @@
|
|
179
179
|
|
180
180
|
|
181
181
|
```
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
追記3(Rubyのインストールに成功したようだがヴァージョンの確認ができない)
|
186
|
+
|
187
|
+
```CentOS 7
|
188
|
+
|
189
|
+
[vagrant@localhost ~]$ rbenv install 2.7.1
|
190
|
+
|
191
|
+
Downloading ruby-2.7.1.tar.bz2...
|
192
|
+
|
193
|
+
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.bz2
|
194
|
+
|
195
|
+
Installing ruby-2.7.1...
|
196
|
+
|
197
|
+
Installed ruby-2.7.1 to /home/vagrant/.rbenv/versions/2.7.1
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
[vagrant@localhost ~]$ ruby -v
|
202
|
+
|
203
|
+
-bash: ruby: command not found
|
204
|
+
|
205
|
+
[vagrant@localhost ~]$ rbenv versions
|
206
|
+
|
207
|
+
2.7.1
|
208
|
+
|
209
|
+
[vagrant@localhost ~]$ rbenv global 2.7.1
|
210
|
+
|
211
|
+
[vagrant@localhost ~]$ ruby -v
|
212
|
+
|
213
|
+
```
|
2
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -79,3 +79,103 @@
|
|
79
79
|
make: *** [do-install-all] Error 1
|
80
80
|
|
81
81
|
```
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
追記2(コマンドless /tmp/ruby-build.20200427085831.17156.logをした後の内容)
|
86
|
+
|
87
|
+
```CentOS 7
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
Methods: 13019 (3991 undocumented)
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
Total: 18883 (6168 undocumented)
|
96
|
+
|
97
|
+
67.34% documented
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
Elapsed: 36.0s
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
generating x86_64-linux-fake.rb
|
106
|
+
|
107
|
+
x86_64-linux-fake.rb updated
|
108
|
+
|
109
|
+
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems -r./x86_64-linux-fake ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc" --rdoc-output=".ext/rdoc" --html-output=".ext/html"
|
110
|
+
|
111
|
+
installing binary commands: /home/vagrant/.rbenv/versions/2.7.1/bin
|
112
|
+
|
113
|
+
installing base libraries: /home/vagrant/.rbenv/versions/2.7.1/lib
|
114
|
+
|
115
|
+
installing arch files: /home/vagrant/.rbenv/versions/2.7.1/lib/ruby/2.7.0/x86_64-linux
|
116
|
+
|
117
|
+
installing pkgconfig data: /home/vagrant/.rbenv/versions/2.7.1/lib/pkgconfig
|
118
|
+
|
119
|
+
installing extension objects: /home/vagrant/.rbenv/versions/2.7.1/lib/ruby/2.7.0/x86_64-linux
|
120
|
+
|
121
|
+
installing extension objects: /home/vagrant/.rbenv/versions/2.7.1/lib/ruby/site_ruby/2.7.0/x86_64-linux
|
122
|
+
|
123
|
+
installing extension objects: /home/vagrant/.rbenv/versions/2.7.1/lib/ruby/vendor_ruby/2.7.0/x86_64-linux
|
124
|
+
|
125
|
+
installing extension headers: /home/vagrant/.rbenv/versions/2.7.1/include/ruby-2.7.0/x86_64-linux
|
126
|
+
|
127
|
+
installing extension scripts: /home/vagrant/.rbenv/versions/2.7.1/lib/ruby/2.7.0
|
128
|
+
|
129
|
+
installing extension scripts: /home/vagrant/.rbenv/versions/2.7.1/lib/ruby/site_ruby/2.7.0
|
130
|
+
|
131
|
+
installing extension scripts: /home/vagrant/.rbenv/versions/2.7.1/lib/ruby/vendor_ruby/2.7.0
|
132
|
+
|
133
|
+
installing extension headers: /home/vagrant/.rbenv/versions/2.7.1/include/ruby-2.7.0/ruby
|
134
|
+
|
135
|
+
installing rdoc: /home/vagrant/.rbenv/versions/2.7.1/share/ri/2.7.0/system
|
136
|
+
|
137
|
+
installing html-docs: /home/vagrant/.rbenv/versions/2.7.1/share/doc/ruby
|
138
|
+
|
139
|
+
installing capi-docs: /home/vagrant/.rbenv/versions/2.7.1/share/doc/ruby
|
140
|
+
|
141
|
+
installing command scripts: /home/vagrant/.rbenv/versions/2.7.1/bin
|
142
|
+
|
143
|
+
installing library scripts: /home/vagrant/.rbenv/versions/2.7.1/lib/ruby/2.7.0
|
144
|
+
|
145
|
+
installing common headers: /home/vagrant/.rbenv/versions/2.7.1/include/ruby-2.7.0
|
146
|
+
|
147
|
+
installing manpages: /home/vagrant/.rbenv/versions/2.7.1/share/man (man1, man5)
|
148
|
+
|
149
|
+
installing default gems from lib: /home/vagrant/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0 (build_info, cache, doc, extensions, gems, specifications)
|
150
|
+
|
151
|
+
benchmark 0.1.0
|
152
|
+
|
153
|
+
/tmp/ruby-build.20200427085831.17156.neMvlB/ruby-2.7.1/lib/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- openssl (LoadError)
|
154
|
+
|
155
|
+
from /tmp/ruby-build.20200427085831.17156.neMvlB/ruby-2.7.1/lib/rubygems/core_ext/kernel_require.rb:92:in `require'
|
156
|
+
|
157
|
+
from /tmp/ruby-build.20200427085831.17156.neMvlB/ruby-2.7.1/lib/rubygems/specification.rb:2426:in `to_ruby'
|
158
|
+
|
159
|
+
from ./tool/rbinstall.rb:846:in `block (2 levels) in install_default_gem'
|
160
|
+
|
161
|
+
from ./tool/rbinstall.rb:279:in `open_for_install'
|
162
|
+
|
163
|
+
from ./tool/rbinstall.rb:845:in `block in install_default_gem'
|
164
|
+
|
165
|
+
from ./tool/rbinstall.rb:835:in `each'
|
166
|
+
|
167
|
+
from ./tool/rbinstall.rb:835:in `install_default_gem'
|
168
|
+
|
169
|
+
from ./tool/rbinstall.rb:799:in `block in <main>'
|
170
|
+
|
171
|
+
from ./tool/rbinstall.rb:950:in `block in <main>'
|
172
|
+
|
173
|
+
from ./tool/rbinstall.rb:947:in `each'
|
174
|
+
|
175
|
+
from ./tool/rbinstall.rb:947:in `<main>'
|
176
|
+
|
177
|
+
make: *** [do-install-all] Error 1
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
```
|
1
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,3 +17,65 @@
|
|
17
17
|
-bash: git: command not found
|
18
18
|
|
19
19
|
```
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
追記
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
Rubyをインストールしようとした所、下記のようなエラーが出ました。
|
28
|
+
|
29
|
+
Inspect or clean up the working tree at /tmp/ruby-build.20200427052059.2195.A64Isy
|
30
|
+
|
31
|
+
とあるのでクリーンアップをしないといけないのはわかるのですが
|
32
|
+
|
33
|
+
どのようなコマンドでやるのかわかりません。。。
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
```CentOS 7
|
38
|
+
|
39
|
+
[vagrant@localhost ~]$ rbenv install 2.7.1
|
40
|
+
|
41
|
+
Downloading ruby-2.7.1.tar.bz2...
|
42
|
+
|
43
|
+
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.bz2
|
44
|
+
|
45
|
+
Installing ruby-2.7.1...
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
BUILD FAILED (CentOS Linux 7 using ruby-build 20200401-9-g3ef704e)
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
Inspect or clean up the working tree at /tmp/ruby-build.20200427052059.2195.A64Isy
|
54
|
+
|
55
|
+
Results logged to /tmp/ruby-build.20200427052059.2195.log
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
Last 10 log lines:
|
60
|
+
|
61
|
+
from ./tool/rbinstall.rb:846:in `block (2 levels) in install_default_gem'
|
62
|
+
|
63
|
+
from ./tool/rbinstall.rb:279:in `open_for_install'
|
64
|
+
|
65
|
+
from ./tool/rbinstall.rb:845:in `block in install_default_gem'
|
66
|
+
|
67
|
+
from ./tool/rbinstall.rb:835:in `each'
|
68
|
+
|
69
|
+
from ./tool/rbinstall.rb:835:in `install_default_gem'
|
70
|
+
|
71
|
+
from ./tool/rbinstall.rb:799:in `block in <main>'
|
72
|
+
|
73
|
+
from ./tool/rbinstall.rb:950:in `block in <main>'
|
74
|
+
|
75
|
+
from ./tool/rbinstall.rb:947:in `each'
|
76
|
+
|
77
|
+
from ./tool/rbinstall.rb:947:in `<main>'
|
78
|
+
|
79
|
+
make: *** [do-install-all] Error 1
|
80
|
+
|
81
|
+
```
|