質問編集履歴
6
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,7 +54,7 @@
|
|
54
54
|
|
55
55
|
|
56
56
|
|
57
|
-
もともとあったr
|
57
|
+
もともとあったruby2.5本体のみ消しました
|
58
58
|
|
59
59
|
```
|
60
60
|
|
5
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -156,6 +156,24 @@
|
|
156
156
|
|
157
157
|
|
158
158
|
|
159
|
+
おそらくrubyとrailsのパスの違いが原因なのですが解決には至っていません。
|
160
|
+
|
161
|
+
```
|
162
|
+
|
163
|
+
vagrant@vagrant:/usr/bin$ which ruby
|
164
|
+
|
165
|
+
/home/vagrant/.rbenv/shims/ruby
|
166
|
+
|
167
|
+
vagrant@vagrant:/usr/bin$ which rails
|
168
|
+
|
169
|
+
/usr/local/bin/rails
|
170
|
+
|
171
|
+
```
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
159
177
|
### 補足情報(FW/ツールのバージョンなど)
|
160
178
|
|
161
179
|
初心者で至らない点があると思いますがよろしくお願いします。
|
4
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -104,7 +104,7 @@
|
|
104
104
|
|
105
105
|
ruby2.5のみ消去
|
106
106
|
|
107
|
-
vagrant@vagrant:/vagrant/
|
107
|
+
vagrant@vagrant:/vagrant/my_project$ sudo apt --purge remove ruby2.5
|
108
108
|
|
109
109
|
Reading package lists... Done
|
110
110
|
|
@@ -136,7 +136,7 @@
|
|
136
136
|
|
137
137
|
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
|
138
138
|
|
139
|
-
vagrant@vagrant:/vagrant/
|
139
|
+
vagrant@vagrant:/vagrant/my_project$ dpkg -l | grep ruby
|
140
140
|
|
141
141
|
ii libruby2.5:amd64 2.5.7-1bbox3~bionic1 amd64 Libraries necessary to run Ruby 2.5
|
142
142
|
|
3
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
rbenv自体の設定は成功しているのに、自分のプロジェクトではバージョンは反映されませんでした。
|
8
8
|
|
9
|
-
おそらく、rbenv関係なく元から入っていたr
|
9
|
+
おそらく、rbenv関係なく元から入っていたruby2.5.7が原因だと思い、消去したのですが、すると、/usr/bin/env: ‘ruby2.5’: No such file or directoryと言われてしまいました。
|
10
10
|
|
11
11
|
|
12
12
|
|
2
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,7 +74,7 @@
|
|
74
74
|
|
75
75
|
### 試したこと
|
76
76
|
|
77
|
-
もともとあったr
|
77
|
+
もともとあったrubyを消した
|
78
78
|
|
79
79
|
|
80
80
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -78,6 +78,84 @@
|
|
78
78
|
|
79
79
|
|
80
80
|
|
81
|
+
```
|
82
|
+
|
83
|
+
もともとあったruby関連のもの
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
agrant@vagrant:~$ dpkg -l | grep ruby
|
88
|
+
|
89
|
+
ii libruby2.5:amd64 2.5.7-1bbox3~bionic1 amd64 Libraries necessary to run Ruby 2.5
|
90
|
+
|
91
|
+
ii ruby2.5 2.5.7-1bbox3~bionic1 amd64 Interpreter of object-oriented scripting language Ruby
|
92
|
+
|
93
|
+
ii ruby2.5-dev:amd64 2.5.7-1bbox3~bionic1 amd64 Header files for compiling extension modules for the Ruby 2.5
|
94
|
+
|
95
|
+
ii ruby2.5-doc 2.5.7-1bbox3~bionic1 all Documentation for Ruby 2.5
|
96
|
+
|
97
|
+
ii rubygems-integration 1.11 all integration of Debian Ruby packages with Rubygems
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
ruby2.5のみ消去
|
106
|
+
|
107
|
+
vagrant@vagrant:/vagrant/Web_Attendance$ sudo apt --purge remove ruby2.5
|
108
|
+
|
109
|
+
Reading package lists... Done
|
110
|
+
|
111
|
+
Building dependency tree
|
112
|
+
|
113
|
+
Reading state information... Done
|
114
|
+
|
115
|
+
The following packages were automatically installed and are no longer required:
|
116
|
+
|
117
|
+
fonts-lato javascript-common libjs-jquery rubygems-integration
|
118
|
+
|
119
|
+
Use 'sudo apt autoremove' to remove them.
|
120
|
+
|
121
|
+
The following packages will be REMOVED:
|
122
|
+
|
123
|
+
ruby2.5*
|
124
|
+
|
125
|
+
0 upgraded, 0 newly installed, 1 to remove and 128 not upgraded.
|
126
|
+
|
127
|
+
After this operation, 133 kB disk space will be freed.
|
128
|
+
|
129
|
+
Do you want to continue? [Y/n] Y
|
130
|
+
|
131
|
+
(Reading database ... 91417 files and directories currently installed.)
|
132
|
+
|
133
|
+
Removing ruby2.5 (2.5.7-1bbox3~bionic1) ...
|
134
|
+
|
135
|
+
dpkg: warning: while removing ruby2.5, directory '/var/lib/gems/2.5.0' not empty so not removed
|
136
|
+
|
137
|
+
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
|
138
|
+
|
139
|
+
vagrant@vagrant:/vagrant/Web_Attendance$ dpkg -l | grep ruby
|
140
|
+
|
141
|
+
ii libruby2.5:amd64 2.5.7-1bbox3~bionic1 amd64 Libraries necessary to run Ruby 2.5
|
142
|
+
|
143
|
+
ii ruby2.5-dev:amd64 2.5.7-1bbox3~bionic1 amd64 Header files for compiling extension modules for the Ruby 2.5
|
144
|
+
|
145
|
+
ii ruby2.5-doc 2.5.7-1bbox3~bionic1 all Documentation for Ruby 2.5
|
146
|
+
|
147
|
+
ii rubygems-integration 1.11 all integration of Debian Ruby packages with Rubygems
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
```
|
156
|
+
|
157
|
+
|
158
|
+
|
81
159
|
### 補足情報(FW/ツールのバージョンなど)
|
82
160
|
|
83
161
|
初心者で至らない点があると思いますがよろしくお願いします。
|