[chef] Re: knife ssh cannot load such file -- readline (LoadError)


Chronological Thread 
  • From: AJ Christensen < >
  • To:
  • Subject: [chef] Re: knife ssh cannot load such file -- readline (LoadError)
  • Date: Sat, 3 Mar 2012 11:38:20 +1300
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of designates 10.50.216.231 as permitted sender) ; dkim=pass

When you built Ruby you didn't have the readline headers installed, so
it didn't link against them.

Rebuild ruby with the readline packages (incl. headers) installed.

--AJ

On 3 March 2012 11:36, Arthur Kalmenson 
< >
 wrote:
> Hello everyone,
>
> I was listening to the latest Food Fight podcast (enjoy it, btw) and they
> were talking about knife ssh. I haven't really looked at it yet, so I
> figured now was a good time. However, as soon as I ran any knife ssh
> command, I got this:
>
> $ knife ssh "role:experimental" "uptime"
> /home/arthur/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> `require': cannot load such file -- readline (LoadError)
> from
> /home/arthur/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> `require'
> from
> /home/arthur/.rvm/gems/ruby-1.9.3-p125/gems/chef-0.10.8/lib/chef/knife/ssh.rb:28:in
> `block in <class:Ssh>'
> from
> /home/arthur/.rvm/gems/ruby-1.9.3-p125/gems/chef-0.10.8/lib/chef/knife.rb:202:in
> `call'
> from
> /home/arthur/.rvm/gems/ruby-1.9.3-p125/gems/chef-0.10.8/lib/chef/knife.rb:202:in
> `load_deps'
> from
> /home/arthur/.rvm/gems/ruby-1.9.3-p125/gems/chef-0.10.8/lib/chef/knife.rb:163:in
> `run'
> from
> /home/arthur/.rvm/gems/ruby-1.9.3-p125/gems/chef-0.10.8/lib/chef/application/knife.rb:128:in
> `run'
> from /home/arthur/.rvm/gems/ruby-1.9.3-p125/gems/chef-0.10.8/bin/knife:25:in
> `<top (required)>'
> from /home/arthur/.rvm/gems/ruby-1.9.3-p125/bin/knife:19:in `load'
> from /home/arthur/.rvm/gems/ruby-1.9.3-p125/bin/knife:19:in `<main>'
>
>
> I thought it might have to do with using the latest ruby 1.9.3, so I tried
> it out in 1.9.2 but I got the same error. Google doesn't really give me much
> here, so I'm wondering if any has seen this before. Thanks!
>
> All the best,
> --
> Arthur Kalmenson



Archive powered by MHonArc 2.6.16.

§