[chef] Re: Re: Re: Re: Re: net::ftp error from libffi.rb in omnibus-software


Chronological Thread 
  • From: John Alberts < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: net::ftp error from libffi.rb in omnibus-software
  • Date: Fri, 11 Jul 2014 15:01:02 -0700

I did recently update to 10.9. Maybe that's it. I'll reinstall everything and see if that helps.

On Jul 11, 2014 2:44 PM, "Lamont Granquist" < "> > wrote:

OSX upgrades and time machine restores seem to regularly wreck my homebrew and ruby installs and i need to reinstall all my homebrew stuff and often I find it best to install the latest ruby (ruby-1.9.3-p547) and start over with a clean gemset.

On Fri Jul 11 13:54:31 2014, Daniel DeLeo wrote:
You shouldn’t need to. I don’t understand why you see this error, since net/ftp is required by omnibus/software which is definitely getting loaded, and your net/ftp seems to work outside of omnibus. You might try to debug it with `puts` statements in omnibus/software (run `gem which omnibus/software` to find it) and/or pry. Seems like `require` is “succeeding” without actually loading the files somehow?

--
Daniel DeLeo


On Friday, July 11, 2014 at 1:47 PM, John Alberts wrote:

Should I be using a newer version of ruby with omnibus than 1.9.3?



On Fri, Jul 11, 2014 at 11:56 AM, John Alberts < " target="_blank"> (mailto: " target="_blank"> com)> wrote:
I'm pretty sure there's nothing wrong with my ruby install. Works fine for everything so far. I'm on osx Mavericks using rbenv installed ruby 1.9.3. Did some basic checks, including your suggestion, and all seems well from the command line. Even tried listing the specific file the libffi.rb recipe is trying to retrieve. See below.

ᐅ which ruby
/Users/j.alberts/.rbenv/shims/ruby

ᐅ ruby -v
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.5.0]

ᐅ gem which forwardable
/Users/j.alberts/.rbenv/versions/1.9.3-p448/lib/ruby/1.9.1/forwardable.rb

ᐅ ls /Users/j.alberts/.rbenv/versions/1.9.3-p448/lib/ruby/1.9.1/net/ftp.rb
/Users/j.alberts/.rbenv/versions/1.9.3-p448/lib/ruby/1.9.1/net/ftp.rb

ᐅ ruby -e "require 'net/ftp'; ftp = Net::FTP.new('sourceware.org (http://sourceware.org)'); ftp.login; ftp.chdir('pub/libffi'); puts ftp.ls (http://ftp.ls)('libffi-3.0.13.*'); ftp.close"
-rw-r--r-- 1 ftp ftp 845747 Mar 17 2013 libffi-3.0.13.tar.gz


John



On Fri, Jul 11, 2014 at 11:03 AM, Daniel DeLeo < " target="_blank"> (mailto: " target="_blank"> )> wrote:


On Friday, July 11, 2014 at 10:49 AM, John Alberts wrote:

I'm trying to build a package using omnibus-ruby on my osx mavericks laptop. The package uses the ruby and rubygems recipes (are they called recipes in omnibus?) from omnibus-software which pulls in libffi.rb. libffi is trying to download a tarball via ftp and I'm getting a net::ftp error. I've tried adding a "require 'net/ftp'" to the git_fetcher.rb in omnibus-ruby, but that doesn't help.
Any thoughts on how I can fix this error?

Full error is here: https://gist.github.com/albertsj1/af22659753599dffe367

Thanks


--
John Alberts


net/ftp is part of the ruby stdlib, so it seems your ruby installation is busted (or you have something very wrong with your load path). Find your ruby stdlib dir (something like `gem which forwardable` should get you close) and check if net/ftp.rb is there.

--
Daniel DeLeo




--
John Alberts




--
John Alberts








Archive powered by MHonArc 2.6.16.

§