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


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

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'); ftp.login; ftp.chdir('pub/libffi'); puts 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"> > 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



Archive powered by MHonArc 2.6.16.

§