- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Re: net::ftp error from libffi.rb in omnibus-software
- Date: Fri, 11 Jul 2014 13:54:31 -0700
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
>
<
>
>
(mailto:
)>
>
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
>
> <
>
>
>
> (mailto:
)>
>
> 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
- [chef] net::ftp error from libffi.rb in omnibus-software, John Alberts, 07/11/2014
- [chef] Re: net::ftp error from libffi.rb in omnibus-software, Daniel DeLeo, 07/11/2014
- [chef] Re: Re: net::ftp error from libffi.rb in omnibus-software, John Alberts, 07/11/2014
- [chef] Re: Re: net::ftp error from libffi.rb in omnibus-software, John Alberts, 07/11/2014
- [chef] Re: Re: Re: net::ftp error from libffi.rb in omnibus-software, Daniel DeLeo, 07/11/2014
- [chef] Re: Re: Re: Re: net::ftp error from libffi.rb in omnibus-software, Lamont Granquist, 07/11/2014
- [chef] Re: Re: Re: Re: Re: net::ftp error from libffi.rb in omnibus-software, John Alberts, 07/11/2014
- [chef] Re: Re: Re: Re: Re: Re: net::ftp error from libffi.rb in omnibus-software, Eric G. Wolfe, 07/11/2014
- [chef] Re: Re: Re: Re: Re: Re: Re: net::ftp error from libffi.rb in omnibus-software, Lamont Granquist, 07/12/2014
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: net::ftp error from libffi.rb in omnibus-software, John Alberts, 07/12/2014
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: net::ftp error from libffi.rb in omnibus-software, Lamont Granquist, 07/12/2014
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: net::ftp error from libffi.rb in omnibus-software, John Alberts, 07/14/2014
Archive powered by MHonArc 2.6.16.