Rake dependency problem for Ruby 1.9.1
Jyun-Yan You
crabtw at gmail.com
Thu Feb 4 08:02:48 UTC 2010
On Thu, Feb 4, 2010 at 7:50 AM, Stanislav Sedov <stas at freebsd.org> wrote:
> On Wed, 3 Feb 2010 19:08:47 +0800
> Jyun-Yan You <crabtw at gmail.com> mentioned:
>
> > On Wed, Feb 3, 2010 at 6:18 PM, Stanislav Sedov <stas at freebsd.org>
> wrote:
> >
> > > On Wed, 3 Feb 2010 18:05:50 +0800
> > > Jyun-Yan You <crabtw at gmail.com> mentioned:
> > >
> > > > I got a problem when I tried to install some gems that depends rake.
> > > >
> > > > For example, www/rubygem-passenger, it needs devel/rubygem-rake but I
> > > can't
> > > > install it.
> > > > It says that rake already included in Ruby 1.9.1.
> > > >
> > > > If I don't have rake in gem list, I can't install passenger
> > > >
> > > > How can I solve the problem?
> > >
> > > It shouldn't depend on it. rubygem-passenger has USE_RAKE=yes in
> Makefile,
> > > and this knob adds dependency only if ruby 1.8 is used. What command
> > > do you use to install rubygem-passenger, and what the exact error
> message
> > > is?
> > >
> > > --
> > > Stanislav Sedov
> > > ST4096-RIPE
> > >
> >
> > install rubygem-passenger:
> >
> > cd /usr/ports/www/rubygem-passenger
> > make RUBY_VER=1.9 install clean
> >
> > error message:
> >
> > /usr/bin/env /usr/local/bin/gem19 install -l --no-update-sources
> > --no-ri --install-dir /usr/local/lib/ruby/gems/1.9
> > /usr/ports/distfiles/rubygem/passenger-2.2.7.gem -- --build-args
> > ERROR: Error installing
> > /usr/ports/distfiles/rubygem/passenger-2.2.7.gem:
> > passenger requires rake (>= 0.8.1, runtime)
> >
>
> Ok, I think there's a bug in rubygem-passenger, as we do have rake in ruby
> 1.9.
> Maybe passenger doesn't support ruby 1.9 yet?
>
>
> --
> Stanislav Sedov
> ST4096-RIPE
>
passenger supports ruby 1.9.1
I think the problem is that rubygems can't find the rake distributed by ruby
1.9.
The port uses rubygems to install gems and rubygems only finds the libraries
that installed by itself.
One way to solve the problem, adding --ignore-dependencies option when we
install gems.
Because we have specified dependencies in Makefile, adding this option is
safe.
More information about the freebsd-ruby
mailing list