質問編集履歴
6
誤字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
/usr/bin/env: ‘ruby2.5’: No such file or directory
|
27
27
|
```
|
28
28
|
|
29
|
-
もともとあった
|
29
|
+
もともとあったruby2.5本体のみ消しました
|
30
30
|
```
|
31
31
|
vagrant@vagrant:/vagrant/my_project$ dpkg -l | grep ruby
|
32
32
|
ii libruby2.5:amd64 2.5.7-1bbox3~bionic1 amd64 Libraries necessary to run Ruby 2.5
|
5
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -77,5 +77,14 @@
|
|
77
77
|
|
78
78
|
```
|
79
79
|
|
80
|
+
おそらくrubyとrailsのパスの違いが原因なのですが解決には至っていません。
|
81
|
+
```
|
82
|
+
vagrant@vagrant:/usr/bin$ which ruby
|
83
|
+
/home/vagrant/.rbenv/shims/ruby
|
84
|
+
vagrant@vagrant:/usr/bin$ which rails
|
85
|
+
/usr/local/bin/rails
|
86
|
+
```
|
87
|
+
|
88
|
+
|
80
89
|
### 補足情報(FW/ツールのバージョンなど)
|
81
90
|
初心者で至らない点があると思いますがよろしくお願いします。
|
4
誤字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -51,7 +51,7 @@
|
|
51
51
|
|
52
52
|
|
53
53
|
ruby2.5のみ消去
|
54
|
-
vagrant@vagrant:/vagrant/
|
54
|
+
vagrant@vagrant:/vagrant/my_project$ sudo apt --purge remove ruby2.5
|
55
55
|
Reading package lists... Done
|
56
56
|
Building dependency tree
|
57
57
|
Reading state information... Done
|
@@ -67,7 +67,7 @@
|
|
67
67
|
Removing ruby2.5 (2.5.7-1bbox3~bionic1) ...
|
68
68
|
dpkg: warning: while removing ruby2.5, directory '/var/lib/gems/2.5.0' not empty so not removed
|
69
69
|
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
|
70
|
-
vagrant@vagrant:/vagrant/
|
70
|
+
vagrant@vagrant:/vagrant/my_project$ dpkg -l | grep ruby
|
71
71
|
ii libruby2.5:amd64 2.5.7-1bbox3~bionic1 amd64 Libraries necessary to run Ruby 2.5
|
72
72
|
ii ruby2.5-dev:amd64 2.5.7-1bbox3~bionic1 amd64 Header files for compiling extension modules for the Ruby 2.5
|
73
73
|
ii ruby2.5-doc 2.5.7-1bbox3~bionic1 all Documentation for Ruby 2.5
|
3
誤字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
ubuntuを利用していて、rbenvを使ってプロジェクトのrubyバージョンを2.5.7→2.5.8にしたいです。
|
3
3
|
|
4
4
|
rbenv自体の設定は成功しているのに、自分のプロジェクトではバージョンは反映されませんでした。
|
5
|
-
おそらく、rbenv関係なく元から入っていた
|
5
|
+
おそらく、rbenv関係なく元から入っていたruby2.5.7が原因だと思い、消去したのですが、すると、/usr/bin/env: ‘ruby2.5’: No such file or directoryと言われてしまいました。
|
6
6
|
|
7
7
|
### 発生している問題・エラーメッセージ
|
8
8
|
rbenvが自分のアプリで反映されない
|
2
誤字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
```
|
37
37
|
|
38
38
|
### 試したこと
|
39
|
-
もともとあった
|
39
|
+
もともとあったrubyを消した
|
40
40
|
|
41
41
|
```
|
42
42
|
もともとあったruby関連のもの
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -38,5 +38,44 @@
|
|
38
38
|
### 試したこと
|
39
39
|
もともとあったrailsを消した
|
40
40
|
|
41
|
+
```
|
42
|
+
もともとあったruby関連のもの
|
43
|
+
|
44
|
+
agrant@vagrant:~$ dpkg -l | grep ruby
|
45
|
+
ii libruby2.5:amd64 2.5.7-1bbox3~bionic1 amd64 Libraries necessary to run Ruby 2.5
|
46
|
+
ii ruby2.5 2.5.7-1bbox3~bionic1 amd64 Interpreter of object-oriented scripting language Ruby
|
47
|
+
ii ruby2.5-dev:amd64 2.5.7-1bbox3~bionic1 amd64 Header files for compiling extension modules for the Ruby 2.5
|
48
|
+
ii ruby2.5-doc 2.5.7-1bbox3~bionic1 all Documentation for Ruby 2.5
|
49
|
+
ii rubygems-integration 1.11 all integration of Debian Ruby packages with Rubygems
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
ruby2.5のみ消去
|
54
|
+
vagrant@vagrant:/vagrant/Web_Attendance$ sudo apt --purge remove ruby2.5
|
55
|
+
Reading package lists... Done
|
56
|
+
Building dependency tree
|
57
|
+
Reading state information... Done
|
58
|
+
The following packages were automatically installed and are no longer required:
|
59
|
+
fonts-lato javascript-common libjs-jquery rubygems-integration
|
60
|
+
Use 'sudo apt autoremove' to remove them.
|
61
|
+
The following packages will be REMOVED:
|
62
|
+
ruby2.5*
|
63
|
+
0 upgraded, 0 newly installed, 1 to remove and 128 not upgraded.
|
64
|
+
After this operation, 133 kB disk space will be freed.
|
65
|
+
Do you want to continue? [Y/n] Y
|
66
|
+
(Reading database ... 91417 files and directories currently installed.)
|
67
|
+
Removing ruby2.5 (2.5.7-1bbox3~bionic1) ...
|
68
|
+
dpkg: warning: while removing ruby2.5, directory '/var/lib/gems/2.5.0' not empty so not removed
|
69
|
+
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
|
70
|
+
vagrant@vagrant:/vagrant/Web_Attendance$ dpkg -l | grep ruby
|
71
|
+
ii libruby2.5:amd64 2.5.7-1bbox3~bionic1 amd64 Libraries necessary to run Ruby 2.5
|
72
|
+
ii ruby2.5-dev:amd64 2.5.7-1bbox3~bionic1 amd64 Header files for compiling extension modules for the Ruby 2.5
|
73
|
+
ii ruby2.5-doc 2.5.7-1bbox3~bionic1 all Documentation for Ruby 2.5
|
74
|
+
ii rubygems-integration 1.11 all integration of Debian Ruby packages with Rubygems
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
```
|
79
|
+
|
41
80
|
### 補足情報(FW/ツールのバージョンなど)
|
42
81
|
初心者で至らない点があると思いますがよろしくお願いします。
|