mysql-Rake上的Ruby on Rails出现问题
作者:互联网
我是Rails的新手,所以请原谅我缺乏理解.我已经通过RubyGems安装了最新版本的RubyGems,Ruby,Rails,Rake和MySQL等,但是在开始制作基本的Rails应用程序时遇到了这个问题:
Icarus:temporary atg$rails new people
... (output omitted) ...
Icarus:temporary atg$cd people
Icarus:people atg$rake db:create
(in /Users/atg/temporary/people)
rake aborted!
uninitialized constant Bundler
/Users/atg/temporary/people/Rakefile:4
(See full trace by running task with --trace)
Icarus:people atg$rake db:create --trace
(in /Users/atg/temporary/people)
rake aborted!
uninitialized constant Bundler
/Users/atg/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing'
/Users/atg/temporary/people/config/boot.rb:9
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/atg/temporary/people/config/application.rb:1
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/atg/temporary/people/Rakefile:4
/Users/atg/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/Users/atg/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/Users/atg/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/Users/atg/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/atg/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/Users/atg/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/Users/atg/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/atg/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/atg/.gem/ruby/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
我不知道自己做错了什么,而且我对此很陌生,以至于我一生都在努力工作,我不知道可以调试它吗?有什么想法/指导吗?
感谢所有帮助,并在此先感谢!
解决方法:
如果您是第一次体验,我建议从Rails 2.3.8开始.有许多教程和更广泛的支持. 3.0相当新鲜,但有几个主要变化.无论如何,您最终都可以从2.3.8升级到3.0.0.
标签:rake,ruby,ruby-on-rails,mysql 来源: https://codeday.me/bug/20191105/1998029.html