質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Windows 7

Microsoft Windows 7は過去にリリースされたMicrosoft WindowsのOSであり、Windows8の1代前です。2009年の7月にリリースされ販売されました。Windows7の前はWindowsVistaで、その更に3年前にリリースされました。

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

Q&A

解決済

1回答

4177閲覧

Ruby on Rails4 @ Windows7-64bit での rails server 起動について

Aneks

総合スコア114

Windows 7

Microsoft Windows 7は過去にリリースされたMicrosoft WindowsのOSであり、Windows8の1代前です。2009年の7月にリリースされ販売されました。Windows7の前はWindowsVistaで、その更に3年前にリリースされました。

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

0グッド

0クリップ

投稿2014/12/19 16:19

開発環境について
上記でも同じような質問をしたのですが、結局は解決しませんでした。
slite3.dllを入れてみれば良いとのことだったのですが、入れてみても変化せず。いろいろ試してみましたが、やはりできそうにありません。
同じような症状が出たことのある方、どのようにして解決されたか、ぜひ教えてほしいです。


標題のとおり、Ruby21を入れて、Devkitを入れて、Rails4.1.6を入れて、rails serverをcmdから起動させようとするのですが、下記のようなエラーが出て、sqlite3_nativeファイルが見つけられませんでした、というメッセージが出ます。
どうすれば起動できるのか、同じような経験のある方、いらっしゃいましたら教えてください。
c:\Rails\app>rails server
C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3.rb:6:in
require': cannot load such file -- sqlite3/sqlite3_native (LoadError) from C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sq lite3.rb:6:in rescue in <top (required)>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sq
lite3.rb:2:in <top (required)>' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim e.rb:76:in require'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim
e.rb:76:in block (2 levels) in require' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim e.rb:72:in each'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim
e.rb:72:in block in require' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim e.rb:61:in each'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim
e.rb:61:in require' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler.rb:133 :in require'
from c:/Rails/taskshare/config/application.rb:7:in <top (required)>' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command s/commands_tasks.rb:79:in require'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command
s/commands_tasks.rb:79:in block in server' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command s/commands_tasks.rb:76:in tap'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command
s/commands_tasks.rb:76:in server' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command s/commands_tasks.rb:40:in run_command!'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command
s.rb:17:in <top (required)>' from bin/rails:4:in require'
from bin/rails:4:in `<main>'

これまでに試してみた方法としては、sqlite3_nativeがないとのことだったので、
C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/2.1内にあるsqlite3_native.soというファイルの.so部分を削除して、
C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3内に貼り付けるなどしました。
その際には同様のエラーが出たのですが、これを.soを付加した状態で再度rails serverを起動してみたところ、
c:\Rails\app>rails server
C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3.rb:6:in
require': 126: 指定されたモジュールが見つかりません。 - C:/Ruby21/lib/ruby/g ems/2.1.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/sqlite3_native.so (LoadErro r) from C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sq lite3.rb:6:in rescue in <top (required)>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sq
lite3.rb:2:in <top (required)>' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim e.rb:76:in require'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim
e.rb:76:in block (2 levels) in require' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim e.rb:72:in each'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim
e.rb:72:in block in require' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim e.rb:61:in each'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtim
e.rb:61:in require' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler.rb:133 :in require'
from c:/Rails/taskshare/config/application.rb:7:in <top (required)>' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command s/commands_tasks.rb:79:in require'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command
s/commands_tasks.rb:79:in block in server' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command s/commands_tasks.rb:76:in tap'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command
s/commands_tasks.rb:76:in server' from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command s/commands_tasks.rb:40:in run_command!'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/command
s.rb:17:in <top (required)>' from bin/rails:4:in require'
from bin/rails:4:in `<main>'

このようなエラーメッセージに変化しました。
これらは何か関係あるのでしょうか。
思いつく方法はこれだけで、それ以外で何か良い方法や同様の経験をされた方がいらっしゃいましたら、教えてください。
土日を利用して、自力でも解決策を探してみます。
解決した場合には、こちらに解決方法を掲載します。
よろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

以下URLの手順でもできないでしょうか。
http://qiita.com/akaneko3/items/6436b4b323f8a0b65e70

あと、Windows上に環境構築することは必須なのでしょうか。
もし、必須でなく、WindowsのメモリやCPUに余裕があるのであれば、
VirtualBoxなどを使ってLinuxの仮想マシンを用意し、
そこへRailsの環境を準備した方が簡単に環境構築できるのではないかと思います。

投稿2014/12/19 16:33

toru81

総合スコア170

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

Aneks

2014/12/20 07:29

必須といいますか、単純にLinuxの操作を覚えなおすのが面倒だなーと思いまして。 Windowsの方が慣れてる分だけ理解しやすいですし、情報も比較的多いように感じているからです。 VMwareを使って、ubuntuを入れてはあるんですけど、やはりコマンドラインの操作を覚えるのが面倒で途中で挫折した経験がありますから。 URLの手順については、ありがとうございます。 早速、試してみたいと思います。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問