Windows環境でRuby on railsの勉強を始めた者です。
環境は
・Windows 7 32Bit
・Ruby 2.3.0p0 (2015-12-25 revision 53290) [i386-mingw32]
・Rails 4.2.6
・PostgreSQL 9.5.1
ここで
rails new mypage --database=postgresql
として新規プロジェクトを作成し、
rails s
で起動したところ、以下のエラーとなり起動できません。
E:\RubyWork\asagao>rails s E:/Ruby23/lib/ruby/gems/2.3.0/gems/pg-0.18.4-x86-mingw32/lib/pg.rb:14:in `requir e': cannot load such file -- 2.3/pg_ext (LoadError) from E:/Ruby23/lib/ruby/gems/2.3.0/gems/pg-0.18.4-x86-mingw32/lib/pg.rb: 14:in `rescue in <top (required)>' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/pg-0.18.4-x86-mingw32/lib/pg.rb: 3:in `<top (required)>' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runti me.rb:86:in `require' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runti me.rb:86:in `block (2 levels) in require' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runti me.rb:81:in `each' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runti me.rb:81:in `block in require' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runti me.rb:70:in `each' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runti me.rb:70:in `require' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler.rb:10 2:in `require' from E:/RubyWork/asagao/config/application.rb:7:in `<top (required)>' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/command s/commands_tasks.rb:78:in `require' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/command s/commands_tasks.rb:78:in `block in server' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/command s/commands_tasks.rb:75:in `tap' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/command s/commands_tasks.rb:75:in `server' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/command s/commands_tasks.rb:39:in `run_command!' from E:/Ruby23/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/command s.rb:17:in `<top (required)>' from bin/rails:4:in `require' from bin/rails:4:in `<main>'
pg_ext は
\Ruby\lib\ruby\gems\2.3.0\gems\pg-0.18.4-x86-mingw32\lib\x.x\pg_ext.so を指していると思いますが
バージョン毎のフォルダ(上記パスのx.x部)は、
E:\RUBY23\LIB\RUBY\GEMS\2.3.0\GEMS\PG-0.18.4-X86-MINGW32\LIB ├─1.9 pg_ext.so ├─2.0 pg_ext.so ├─2.1 pg_ext.so ├─2.2 pg_ext.so ├─i386-mingw32 libpq.dll Ver-9.4.4.15317 └─pg
となっています。
何が足りないのかご教授願います。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/06/11 02:05