teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

14

a

2020/04/30 10:43

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -56,6 +56,7 @@
56
56
  Ⓐ ┣sqlite3-1.3.13-x64-mingw32\lib\sqlite3\
57
57
  Ⓑ ┗sqlite3-1.4.2\lib\sqlite3\
58
58
 
59
+
59
60
  ~追記~
60
61
  Ⓑの「sqlite3_native.so」を下記フォルダにそれぞれ配置したところ、エラーメッセージが変化しました。
61
62
  C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\sqlite3-1.3.13-x64-mingw32\lib\sqlite3\
@@ -69,8 +70,9 @@
69
70
  (See full trace by running task with --trace)
70
71
  ```
71
72
 
73
+
72
74
  ~追記2~
73
- bubdle update」
75
+ bundle update」
74
76
  「gem cleanup」
75
77
  を実行したことでまたエラーメッセージが変化しました。
76
78
 

13

a

2020/04/30 10:43

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -70,7 +70,7 @@
70
70
  ```
71
71
 
72
72
  ~追記2~
73
- gem update」
73
+ bubdle update」
74
74
  「gem cleanup」
75
75
  を実行したことでまたエラーメッセージが変化しました。
76
76
 

12

1

2020/04/30 10:42

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -67,4 +67,21 @@
67
67
 
68
68
  Tasks: TOP => db:migrate
69
69
  (See full trace by running task with --trace)
70
+ ```
71
+
72
+ ~追記2~
73
+ 「gem update」
74
+ 「gem cleanup」
75
+ を実行したことでまたエラーメッセージが変化しました。
76
+
77
+ ```
78
+ rake aborted!
79
+ Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
80
+
81
+
82
+ Caused by:
83
+ Gem::LoadError: can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.2. Make sure all dependencies are added to Gemfile.
84
+
85
+ Tasks: TOP => db:migrate => db:load_config
86
+ (See full trace by running task with --trace)
70
87
  ```

11

2020/04/30 10:40

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -49,9 +49,22 @@
49
49
  3.31.1 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837bb4d6
50
50
 
51
51
  ### 確認事項
52
- 下記「Ⓑ」のパスにのみ「sqlite3_native.so」が存在しますが、
52
+ 下記「Ⓑ」のパスにのみ「sqlite3_native.so」が存在するのですが、
53
53
  「Ⓐ」のパスが参照されてしまっている。とかは考えられますか?
54
54
 
55
55
  C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\
56
56
  Ⓐ ┣sqlite3-1.3.13-x64-mingw32\lib\sqlite3\
57
- Ⓑ ┗sqlite3-1.4.2\lib\sqlite3\
57
+ Ⓑ ┗sqlite3-1.4.2\lib\sqlite3\
58
+
59
+ ~追記~
60
+ Ⓑの「sqlite3_native.so」を下記フォルダにそれぞれ配置したところ、エラーメッセージが変化しました。
61
+ C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\sqlite3-1.3.13-x64-mingw32\lib\sqlite3\
62
+ C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\sqlite3-1.3.13-x64-mingw32\lib\sqlite3\2.6\
63
+
64
+ ```
65
+ rake aborted!
66
+ ArgumentError: wrong number of arguments (given 2, expected 0)
67
+
68
+ Tasks: TOP => db:migrate
69
+ (See full trace by running task with --trace)
70
+ ```

10

a

2020/04/30 10:22

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -27,6 +27,7 @@
27
27
  ### 試したこと
28
28
  ①下記回答者、ベストアンサーの対応
29
29
  https://teratail.com/questions/130646
30
+ https://teratail.com/questions/65641
30
31
  https://teratail.com/questions/44920
31
32
 
32
33
  ②C:\Ruby26-x64\bin に http://www.sqlite.org/download.html からダウンロードしたsqlite3.dll と sqlite3.exeを入れた。

9

a

2020/04/30 10:11

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -48,8 +48,8 @@
48
48
  3.31.1 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837bb4d6
49
49
 
50
50
  ### 確認事項
51
- 下記「B」のパスにのみ「sqlite3_native.so」が存在しますが、
51
+ 下記「」のパスにのみ「sqlite3_native.so」が存在しますが、
52
- A」のパスが参照されてしまっている。とかは考えられますか?
52
+ 」のパスが参照されてしまっている。とかは考えられますか?
53
53
 
54
54
  C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\
55
55
  Ⓐ ┣sqlite3-1.3.13-x64-mingw32\lib\sqlite3\

8

a

2020/04/30 09:56

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -48,9 +48,9 @@
48
48
  3.31.1 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837bb4d6
49
49
 
50
50
  ### 確認事項
51
- 下記「B」のパスにのみ「sqlite3_native.so」が存在しますが、
51
+ 下記「B」のパスにのみ「sqlite3_native.so」が存在しますが、
52
52
  「A」のパスが参照されてしまっている。とかは考えられますか?
53
53
 
54
54
  C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\
55
- ┣sqlite3-1.3.13-x64-mingw32\lib\sqlite3\ ・・・A
55
+ ┣sqlite3-1.3.13-x64-mingw32\lib\sqlite3\
56
- ┗sqlite3-1.4.2\lib\sqlite3\ ・・・B
56
+ ┗sqlite3-1.4.2\lib\sqlite3\

7

2020/04/30 09:55

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -45,4 +45,12 @@
45
45
  [ruby]
46
46
  2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
47
47
  [SQLite]
48
- 3.31.1 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837bb4d6
48
+ 3.31.1 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837bb4d6
49
+
50
+ ### 確認事項
51
+ ①下記「B」のパスにのみ「sqlite3_native.so」が存在しますが、
52
+ 「A」のパスが参照されてしまっている。とかは考えられますか?
53
+
54
+ C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\
55
+ ┣sqlite3-1.3.13-x64-mingw32\lib\sqlite3\ ・・・A
56
+ ┗sqlite3-1.4.2\lib\sqlite3\ ・・・B

6

a

2020/04/30 09:54

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -38,7 +38,11 @@
38
38
  ┗sqlite3.exe
39
39
 
40
40
  ### 補足情報(FW/ツールのバージョンなど)
41
+ [OS]
41
42
  Windows10 (64bit)
42
- Rails [5.0.2]
43
+ [Rails]
44
+ 5.0.2
45
+ [ruby]
43
- ruby [2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]]
46
+ 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
47
+ [SQLite]
44
- SQLite [3.31.1 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837bb4d6]
48
+ 3.31.1 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837bb4d6

5

2020/04/30 09:44

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -30,6 +30,7 @@
30
30
  https://teratail.com/questions/44920
31
31
 
32
32
  ②C:\Ruby26-x64\bin に http://www.sqlite.org/download.html からダウンロードしたsqlite3.dll と sqlite3.exeを入れた。
33
+
33
34
  sqlite-dll-win64-x64-3310100
34
35
  ┗sqlite3.dll
35
36
 

4

2020/04/30 09:42

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,7 @@
1
1
  ### 前提・実現したいこと
2
2
  Ruby on RailsでWEBアプリ開発をすべく、
3
3
  下記書籍に従ってアプリを作成しています。
4
+
4
5
   Ruby on Rails 4 アプリケーション プログラミング(山田 祥寛)
5
6
 
6
7
  コマンド「rake db:migrate」を実行した際にエラーが発生しました。
@@ -29,7 +30,12 @@
29
30
  https://teratail.com/questions/44920
30
31
 
31
32
  ②C:\Ruby26-x64\bin に http://www.sqlite.org/download.html からダウンロードしたsqlite3.dll と sqlite3.exeを入れた。
33
+ sqlite-dll-win64-x64-3310100
34
+ ┗sqlite3.dll
32
35
 
36
+ sqlite-tools-win32-x86-3310100
37
+ ┗sqlite3.exe
38
+
33
39
  ### 補足情報(FW/ツールのバージョンなど)
34
40
  Windows10 (64bit)
35
41
  Rails [5.0.2]

3

2020/04/30 09:41

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -1,13 +1,11 @@
1
1
  ### 前提・実現したいこと
2
2
  Ruby on RailsでWEBアプリ開発をすべく、
3
- まずは環境構築を行っています。
3
+ 下記書籍に従ってアプリを作成しています。
4
+  Ruby on Rails 4 アプリケーション プログラミング(山田 祥寛)
4
5
 
5
6
  コマンド「rake db:migrate」を実行した際にエラーが発生しました。
6
7
  解決策をご教授お願いします。
7
8
 
8
- 参考書籍は
9
- Ruby on Rails 4 アプリケーション プログラミング(山田 祥寛)
10
-
11
9
  ### 発生している問題・エラーメッセージ
12
10
 
13
11
  ```

2

2020/04/30 09:34

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -5,6 +5,9 @@
5
5
  コマンド「rake db:migrate」を実行した際にエラーが発生しました。
6
6
  解決策をご教授お願いします。
7
7
 
8
+ 参考書籍は
9
+ Ruby on Rails 4 アプリケーション プログラミング(山田 祥寛)
10
+
8
11
  ### 発生している問題・エラーメッセージ
9
12
 
10
13
  ```
@@ -23,9 +26,11 @@
23
26
  ```
24
27
 
25
28
  ### 試したこと
29
+ ①下記回答者、ベストアンサーの対応
26
30
  https://teratail.com/questions/130646
27
31
  https://teratail.com/questions/44920
28
32
 
33
+ ②C:\Ruby26-x64\bin に http://www.sqlite.org/download.html からダウンロードしたsqlite3.dll と sqlite3.exeを入れた。
29
34
 
30
35
  ### 補足情報(FW/ツールのバージョンなど)
31
36
  Windows10 (64bit)

1

エラーメッセージの修正

2020/04/30 09:28

投稿

Usama_bin_Ladin
Usama_bin_Ladin

スコア1

title CHANGED
File without changes
body CHANGED
@@ -8,18 +8,17 @@
8
8
  ### 発生している問題・エラーメッセージ
9
9
 
10
10
  ```
11
- c:\data\railbook2>rake db:migrate
12
11
  rake aborted!
13
- LoadError: cannot load such file -- sqlite3/sq
12
+ LoadError: cannot load such file -- sqlite3/sqlite3_native
14
- c:/data/railbook2/config/application.rb:7:in `
13
+ c:/data/railbook2/config/application.rb:7:in `<top (required)>'
15
- c:/data/railbook2/Rakefile:4:in `require_relat
14
+ c:/data/railbook2/Rakefile:4:in `require_relative'
16
- c:/data/railbook2/Rakefile:4:in `<top (require
15
+ c:/data/railbook2/Rakefile:4:in `<top (required)>'
17
16
 
18
17
  Caused by:
19
- LoadError: cannot load such file -- sqlite3/2.
18
+ LoadError: cannot load such file -- sqlite3/2.6/sqlite3_native
20
- c:/data/railbook2/config/application.rb:7:in `
19
+ c:/data/railbook2/config/application.rb:7:in `<top (required)>'
21
- c:/data/railbook2/Rakefile:4:in `require_relat
20
+ c:/data/railbook2/Rakefile:4:in `require_relative'
22
- c:/data/railbook2/Rakefile:4:in `<top (require
21
+ c:/data/railbook2/Rakefile:4:in `<top (required)>'
23
22
  (See full trace by running task with --trace)
24
23
  ```
25
24