Rails 新手提问,创建第一个 rails 程序出现的报错

robin · 2012年05月27日 · 最后由 kenshin54 回复于 2012年05月27日 · 3621 次阅读

binbindetp@ubuntu:~/rails_projects$ rails new first_app /home/binbindetp/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in to_specs': Could not find activesupport (>= 0) amongst [bundler-1.1.3, rake-0.9.2.2, rubygems-bundler-1.0.2, rvm-1.11.3.3] (Gem::LoadError) from /home/binbindetp/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:into_spec' from /home/binbindetp/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in gem' from /usr/share/rails-ruby1.8/railties/lib/rails_generator.rb:31:inrescue in ' from /usr/share/rails-ruby1.8/railties/lib/rails_generator.rb:27:in <top (required)>' from <internal:lib/rubygems/custom_require>:29:inrequire' from internal:lib/rubygems/custom_require:29:in require' from /usr/share/rails-ruby1.8/railties/bin/rails:14:in'

搜了半天也只在 stackoverflow 找到一个未解决的类似问题 附

binbindetp@ubuntu:~/rails_projects$ which bundle /home/binbindetp/.rvm/gems/ruby-1.9.2-p320@global/bin/bundle

这个激活请求解答

try this bundle install

需要 登录 后方可回复, 如果你还没有账号请 注册新账号