2016-07-20 19 views
0

Windows 10でRuby on Rails 5をインストールしました。私はレールサーバーを実行しようとしましたが、以下のエラーが表示されました。私はいろいろなソリューションを試しましたが、何もうまくいかないようです。おそらく、提案のほとんどはRoR4の前にあったからです。私はちょうどすべてをアンインストールしてから設定しRailsInstallerを使用して終了Ruby on Rails 5 for Windows 10のsqlite3をロードできません

...
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11-x64-mingw32/lib/sqlite3.rb:6:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError) 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11-x64-mingw32/lib/sqlite3.rb:6:in `rescue in <top (required)>' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11-x64-mingw32/lib/sqlite3.rb:2:in `<top (required)>' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `require' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `block (2 levels) in require' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `each' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `block in require' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `each' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `require' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler.rb:102:in `require' 
     from C:/Users/Tim/Documents/GitHub/event-registration-system/config/application.rb:7:in `<top (required)>' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:88:in `require' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:88:in `block in server' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:85:in `tap' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:85:in `server' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:49:in `run_command!' 
     from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands.rb:18:in `<top (required)>' 
     from bin/rails:4:in `require' 
     from bin/rails:4:in `<main>' 
+0

あなたは[この質問](http://stackoverflow.com/questions/17643897/cannot-load-such-file-sqlite3-sqlite3-native-loaderror-on-ruby-on-rails)を見たことがありますか? – MarsAtomic

+0

ええと...ここに投稿する前にそれを試してみましたが動作しませんでしたが、現在は動作していますが、localhostを実行すると別のエラーが表示されます: –

+0

'active_record/connection_adapters/sqlite3_adapter'を読み込めませんでした。 config/database.ymlのアダプタが有効であることを確認してください。 'mysql2'、 'postgresql'または 'sqlite3'以外のアダプタを使用する場合は、必要なアダプタのgemをGemfileに追加します。 –

答えて

1

を私のPATH /環境変数を更新し、sqliteのウェブサイトからDLLや実行可能ファイルを抽出して、私のディレクトリにこれを入れ、bundle installを走ってきましたWindows用のRails環境をアップして、この問題は解決しました。 Rails 5は現在sqliteで動作します。

私は問題が何だったのか分かりませんが、これが私に役立つ解決策でした。誰かがこの新しいバージョンの言語やフレームワークでこれを体験していた場合に備えて、ここに投稿したいと思っていました。

関連する問題