English 中文(简体)
铁路线错改为线负荷错误
原标题:rails console error readline load error

我对铁路有问题。 在我尝试使用:

yum install readline-devel

I m working with Rails 3.1.1 on a fedora 14 machine.

    /home/led/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/completion.rb:9:in `require : no such file to load -- readline (LoadError)
    from /home/led/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/completion.rb:9:in `<top (required)> 
    from /home/led/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/console.rb:3:in `require 
    from /home/led/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/console.rb:3:in `<top (required)> 
    from /home/led/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:37:in `require 
    from /home/led/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:37:in `<top (required)> 
    from script/rails:6:in `require 
    from script/rails:6:in `<main> 

通过:

i tried installing readline via rvm following this link [readline install via rvm][1]

铁路和铁路公司工作,但问题是当我系统重新boot时,再次试图显示这一错误。

/usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs : Could not find rack (~> 1.2.1) amongst [ParseTree-3.0.5, RubyInline-3.8.4, ZenTest-4.3.3, abstract-1.0.0, actionmailer-3.0.5, actionpack-3.0.5, activemodel-3.0.5, activerecord-3.0.5, activeresource-3.0.5, activesupport-3.0.5, arel-2.0.9, builder-2.1.2, bundler-1.0.10, cgi_multipart_eof_fix-2.5.0, daemons-1.0.10, diff-lcs-1.1.2, erubis-2.6.6, fastthread-1.0.7, gem_plugin-0.2.3, git-1.2.5, i18n-0.6.0, i18n-0.5.0, json-1.4.6, mail-2.3.0, mime-types-1.17.2, mime-types-1.16, mongrel-1.1.5, mongrel_cluster-1.0.5, multimap-1.1.2, mysql-2.8.1, mysql2-0.3.7, polyglot-0.3.2, polyglot-0.3.1, rack-1.3.5, rack-1.1.0, rack-mount-0.8.3, rack-mount-0.6.13, rack-test-0.6.1, rack-test-0.5.4, rails-3.0.5, railties-3.0.5, rake-0.9.2.2, rake-0.9.2, regin-0.3.8, regin-0.3.7, rspec-core-2.6.4, rspec-expectations-2.6.0, rspec-mocks-2.6.0, ruby2ruby-1.2.4, ruby_parser-2.0.4, sexp_processor-3.0.4, sqlite3-1.3.3, text-format-1.0.0, thor-0.14.6, treetop-1.4.10, treetop-1.4.9, tzinfo-0.3.30, tzinfo-0.3.26] (Gem::LoadError)
    from /usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:761:in `activate_dependencies 
    from /usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:758:in `each 
    from /usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:758:in `activate_dependencies 
    from /usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:742:in `activate 
    from /usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:764:in `activate_dependencies 
    from /usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:758:in `each 
    from /usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:758:in `activate_dependencies 
    from /usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:742:in `activate 
    from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1211:in `gem 
    from /usr/bin/rails:18
问题回答

您需要安装阅读线头和图书馆prior,安装“Rub”译员(在你完成安装考试和测验仪后显示)

您可以看到,再做一次<代码>rvm notes。

安装阅读灯。 以上“古姆”指挥部安装了阅读图书馆,但为了与它互动,你需要这样的图书馆。

如果不在你的Gemfile中,就加起来,则会安装捆绑,并再次检查。





相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签