命令行执行 gem install rails 以后,终端没有任何显示。大家安装 rails 的时候,也是这个样子么,要等多久才能安装好啊?
#6 楼 @blacktulip 我是按照这篇文章写的:http://thasulinux.wordpress.com/2011/01/26/install-rails-3-on-fedora-14/ 另外,刚刚那个问题,我突然想到,是不是 gem install xxx 的时候,前面必须加 sudo 啊。我先试一下,看能不能解决。
#6 楼 @blacktulip 您知道,为什么,我已经将 gem 源换成是淘宝源了,但是每次安装 gem install 的时候还是请求 rubygems 的源么,详细问题见下面的代码: [user@cloud-privacy /]$ gem sources --list *** CURRENT SOURCES *** http://ruby.taobao.org/ [user@cloud-privacy /]$ sudo gem install rails -V [sudo] password for user: GET http://rubygems.org/latest_specs.4.8.gz 302 Moved Temporarily GET http://production.s3.rubygems.org/latest_specs.4.8.gz
#8 楼 @blacktulip 恩,我昨天用的 rvm 安装 ruby 1.9.2 但是存在了问题,没能解决。今天又重新找了一篇文章。 http://ruby-china.org/topics/11567 这是用 rvm 安装时,我存在的问题,您只需要看最后一楼。您看看能不能帮我解决了昨天的问题吧?
I "rails testweb",then "cd testweb",then "ruby script/server"..and something goes wrong,here's the following description: => Booting WEBrick => Rails 2.3.14 application starting on http://0.0.0.0:3000 /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/gem_dependency.rb:21:in add_frozen_gem_path': undefined methodsource_index' for Gem:Module (NoMethodError) from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:298:in add_gem_load_paths' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:132:inprocess' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in send' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:inrun' from /home/liuzhou/testweb/config/environment.rb:9 from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:inrequire' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:innew_constants_in' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in require' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/commands/server.rb:84 from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:ingem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `require' from script/server:3
thank you for you help...