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


Chronological Thread 
  • From: Arthur Kalmenson < >
  • To:
  • Subject: [chef] Re: Re: knife ssh cannot load such file -- readline (LoadError)
  • Date: Mon, 5 Mar 2012 10:46:00 -0500
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of designates 10.216.131.30 as permitted sender) ; dkim=pass

Thanks AJ. I'm using knife on an Ubuntu machine, so I'm not sure where the readline package is. I've installed chef on my workstation with RVM, so perhaps I'm missing the readline header because of that?

Following this guide: http://assets.en.oreilly.com/1/event/61/oscon2011_tute_chef_19882.htm, I have all the correct libraries installed... Any ideas what the issue might be?

--
Arthur Kalmenson


On Fri, Mar 2, 2012 at 5:38 PM, AJ Christensen < " target="_blank"> > wrote:
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 < " target="_blank"> > 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.

§