質問編集履歴
2
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -181,3 +181,55 @@
|
|
181
181
|
/tmp/ruby-build.20200425081810.15411.fr6t2b/ruby-2.7.1 /tmp/ruby-build.20200425081810.15411.fr6t2b ~
|
182
182
|
|
183
183
|
```
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
追記(rbenvのアンインストールのためにやったこと)
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
1、rbenvのバージョンを確認
|
192
|
+
|
193
|
+
```centos7
|
194
|
+
|
195
|
+
[vagrant@localhost .rbenv]$ rbenv -v
|
196
|
+
|
197
|
+
rbenv 1.1.2-30-gc879cb0
|
198
|
+
|
199
|
+
```
|
200
|
+
|
201
|
+
2、アンインストールを試すがそんなバージョンはないと言われる
|
202
|
+
|
203
|
+
```centos7
|
204
|
+
|
205
|
+
[vagrant@localhost .rbenv]$ rbenv uninstall 1.1.2-30-gc879cb0
|
206
|
+
|
207
|
+
rbenv: version `1.1.2-30-gc879cb0' not installed
|
208
|
+
|
209
|
+
[vagrant@localhost .rbenv]$ rbenv uninstall 1.1.2
|
210
|
+
|
211
|
+
rbenv: version `1.1.2' not installed
|
212
|
+
|
213
|
+
```
|
214
|
+
|
215
|
+
3、下記のコマンドを試してみる
|
216
|
+
|
217
|
+
```centos7
|
218
|
+
|
219
|
+
[vagrant@localhost .rbenv]$ rm -rf `rbenv root`
|
220
|
+
|
221
|
+
[vagrant@localhost .rbenv]$
|
222
|
+
|
223
|
+
```
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
4、うまく行ったのかと思い、ヴァージョンを確かめるもまだ存在している
|
228
|
+
|
229
|
+
```centos7
|
230
|
+
|
231
|
+
[vagrant@localhost .rbenv]$ rbenv -v
|
232
|
+
|
233
|
+
rbenv 1.1.2-30-gc879cb0
|
234
|
+
|
235
|
+
```
|
1
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,6 +60,124 @@
|
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
-
Ruby、及びRail
|
63
|
+
Ruby、及びRailsをダウンロードするには
|
64
64
|
|
65
65
|
どうすればいいでしょうか?
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
追記(Ruby、及びRailsをダウンロードするために
|
70
|
+
|
71
|
+
/tmp/ruby-build.20200425081810.15411.fr6t2b
|
72
|
+
|
73
|
+
Results logged to /tmp/ruby-build.20200425081810.15411.logをクリーンアップしなければならないらしく、やったこと)
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
1、rbenvを削除する
|
78
|
+
|
79
|
+
```centos7
|
80
|
+
|
81
|
+
[vagrant@localhost ~]$ rm -rf ~/.rbenv
|
82
|
+
|
83
|
+
```
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
2、rbenvをcloneする
|
88
|
+
|
89
|
+
```centos7
|
90
|
+
|
91
|
+
[vagrant@localhost ~]$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
|
92
|
+
|
93
|
+
Cloning into '/home/vagrant/.rbenv'...
|
94
|
+
|
95
|
+
remote: Enumerating objects: 5, done.
|
96
|
+
|
97
|
+
remote: Counting objects: 100% (5/5), done.
|
98
|
+
|
99
|
+
remote: Compressing objects: 100% (5/5), done.
|
100
|
+
|
101
|
+
remote: Total 2852 (delta 0), reused 1 (delta 0), pack-reused 2847
|
102
|
+
|
103
|
+
Receiving objects: 100% (2852/2852), 550.56 KiB | 0 bytes/s, done.
|
104
|
+
|
105
|
+
Resolving deltas: 100% (1781/1781), done.
|
106
|
+
|
107
|
+
[vagrant@localhost ~]$ rbenv --version
|
108
|
+
|
109
|
+
rbenv 1.1.2-30-gc879cb0
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
3、rbenvのバージョンを確認
|
116
|
+
|
117
|
+
```centos7
|
118
|
+
|
119
|
+
[vagrant@localhost ~]$ rbenv --version
|
120
|
+
|
121
|
+
rbenv 1.1.2-30-gc879cb0
|
122
|
+
|
123
|
+
```
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
4、ruby-buildが必要らしいので入れます
|
128
|
+
|
129
|
+
```centos7
|
130
|
+
|
131
|
+
vagrant@localhost ~]$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
|
132
|
+
|
133
|
+
Cloning into '/home/vagrant/.rbenv/plugins/ruby-build'...
|
134
|
+
|
135
|
+
remote: Enumerating objects: 159, done.
|
136
|
+
|
137
|
+
remote: Counting objects: 100% (159/159), done.
|
138
|
+
|
139
|
+
remote: Compressing objects: 100% (84/84), done.
|
140
|
+
|
141
|
+
remote: Total 10836 (delta 119), reused 93 (delta 69), pack-reused 10677
|
142
|
+
|
143
|
+
Receiving objects: 100% (10836/10836), 2.27 MiB | 0 bytes/s, done.
|
144
|
+
|
145
|
+
Resolving deltas: 100% (7146/7146), done.
|
146
|
+
|
147
|
+
```
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
5、同じエラーになります。
|
152
|
+
|
153
|
+
```centos7
|
154
|
+
|
155
|
+
[vagrant@localhost ~]$ rbenv install 2.7.1
|
156
|
+
|
157
|
+
Downloading ruby-2.7.1.tar.bz2...
|
158
|
+
|
159
|
+
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.bz2
|
160
|
+
|
161
|
+
Installing ruby-2.7.1...
|
162
|
+
|
163
|
+
mkdir: cannot create directory '/usr/local/rbenv/versions': Permission denied
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
BUILD FAILED (CentOS Linux 7 using ruby-build 20200401)
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
Inspect or clean up the working tree at /tmp/ruby-build.20200425081810.15411.fr6t2b
|
172
|
+
|
173
|
+
Results logged to /tmp/ruby-build.20200425081810.15411.log
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
Last 10 log lines:
|
178
|
+
|
179
|
+
/tmp/ruby-build.20200425081810.15411.fr6t2b ~
|
180
|
+
|
181
|
+
/tmp/ruby-build.20200425081810.15411.fr6t2b/ruby-2.7.1 /tmp/ruby-build.20200425081810.15411.fr6t2b ~
|
182
|
+
|
183
|
+
```
|