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

質問編集履歴

2

誤字

2020/07/21 14:59

投稿

barysan0510
barysan0510

スコア1

title CHANGED
File without changes
body CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  そのため、https://qiita.com/shuhey/items/8cd28aed5906fb5fa6ecを参考にコマンドを実行したところ、
11
11
 
12
- 2. sqlite3_native.soファイルを生成の所で、gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:/sqlite-amalgamation-3260000 --with-sqlite3-lib=C:\Ruby26-x64\binを入力すると、
12
+ . sqlite3_native.soファイルを生成の所で、gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:/sqlite-amalgamation-3260000 --with-sqlite3-lib=C:\Ruby26-x64\binを入力すると、
13
13
 
14
14
  C:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
15
15
 

1

改行など

2020/07/21 14:59

投稿

barysan0510
barysan0510

スコア1

title CHANGED
File without changes
body CHANGED
@@ -1,23 +1,39 @@
1
1
  1.前提・実現したいこと
2
+
2
3
  Ruby on Railsの環境構築(Windows10)
3
4
 
4
5
 
5
6
  2.発生している問題・エラーメッセージ
7
+
6
8
  Windows10で「rails s」コマンドを実行したときに「cannot load such file -- sqlite3/sqlite3_native」とエラーが出ました。
7
- そのため、https://qiita.com/shuhey/items/8cd28aed5906fb5fa6ecを参考にコマンドを実行したところ、2. sqlite3_native.soファイルを生成の所で、gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:/sqlite-amalgamation-3260000 --with-sqlite3-lib=C:\Ruby26-x64\binを入力すると、
9
+
10
+ そのため、https://qiita.com/shuhey/items/8cd28aed5906fb5fa6ecを参考にコマンドを実行したところ、
11
+
12
+ 2. sqlite3_native.soファイルを生成の所で、gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:/sqlite-amalgamation-3260000 --with-sqlite3-lib=C:\Ruby26-x64\binを入力すると、
13
+
8
14
  C:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
15
+
9
16
  というのが出て、sqlite3_native.soファイルが生成できませんでした。
10
17
 
11
18
 
12
19
  4.自分で調べたことや試したこと
20
+
13
21
  rails new sample_app
22
+
14
23
  →sample_appからGemfileというファイルのgem 'sqlite3'の行を、gem 'sqlite3', '~> 1.3.6'に変更してファイルを保存
24
+
15
25
  →cd sample_app
26
+
16
27
  →ridk exec pacman -S mingw-w64-x86_64-sqlite3
28
+
17
29
  →bundle install
30
+
18
31
  →rails s
32
+
19
33
  →「cannot load such file -- sqlite3/sqlite3_native」とエラーが出る
34
+
20
35
  →gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:/sqlite-amalgamation-3260000 --with-sqlite3-lib=C:\Ruby26-x64\binを入力
36
+
21
37
  →C:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file. (RuntimeError)が出る
22
38
 
23
39