浏览 3627 次
锁定老帖子 主题:rails 与postgresql配置问题
该帖已经被评为新手帖
|
|
---|---|
作者 | 正文 |
发表时间:2006-11-24
postgresql 8.1.4 ruby 1.8.5 rails1.1.6 postgres-pr-0.4.0.gem驱动 建数据库没有问题 rails运行也没有问题 但是打开网页的时候就出现问题了 => Rails application started on http://0.0.0.0:3001 => Ctrl-C to shutdown server; call with --help for options [2006-11-24 16:47:47] INFO WEBrick 1.3.1 [2006-11-24 16:47:47] INFO ruby 1.8.5 (2006-08-25) [i386-linux] [2006-11-24 16:47:47] INFO WEBrick::HTTPServer#start: pid=2998 port=3001 127.0.0.1 - - [24/Nov/2006:17:01:56 CST] "GET /admin HTTP/1.1" 200 0 - -> /admin [2006-11-24 17:02:00] ERROR MissingSourceFile: no such file to load -- irb /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/breakpoint.rb:18 /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in `require_or_load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in `depend_on' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:in `const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `send' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:75:in `reset_after_dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:46:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' ./script/server:3 -e:4:in `load' -e:4 127.0.0.1 - - [24/Nov/2006:17:02:04 CST] "GET /favicon.ico HTTP/1.1" 200 0 - -> /favicon.ico 说源文件没有存 但是用rake db:migrete 和rake clone_structure_to_test 测试都没没有问题阿 我的database.yml development: adapter: postgresql database: depot_development username: vividness password: jiangming encoding: UTF8 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2006-11-24
我没遇到过这种情况,不过搜索一下有很多结果,应该是irb没有安装吧,yum install irb
|
|
返回顶楼 | |
发表时间:2006-11-24
果然是个高手 真的是 irb 没有安装阿
谢谢 |
|
返回顶楼 | |
发表时间:2006-11-24
minginging 写道 果然是个高手 真的是 irb 没有安装阿
谢谢 faint! |
|
返回顶楼 | |
发表时间:2006-11-24
没办法 我是初学者 不好意思出了这么低级的错误
|
|
返回顶楼 | |