Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Feb 2010 16:02:47 +0800
From:      Jyun-Yan You <crabtw@gmail.com>
To:        freebsd-ruby@freebsd.org, jatzen@gmail.com
Subject:   Re: Rake dependency problem for Ruby 1.9.1
Message-ID:  <8e54b5841002040002q5d316ea3tdf760f2d7b422963@mail.gmail.com>
In-Reply-To: <20100203155037.4458bd51.stas@FreeBSD.org>
References:  <8e54b5841002030205r12c8787bmd311464dfdbfd8c2@mail.gmail.com> <20100203021840.3cb12a90.stas@FreeBSD.org> <8e54b5841002030308o5311e2c4q34291dd26f54b473@mail.gmail.com> <20100203155037.4458bd51.stas@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 4, 2010 at 7:50 AM, Stanislav Sedov <stas@freebsd.org> wrote:

> On Wed, 3 Feb 2010 19:08:47 +0800
> Jyun-Yan You <crabtw@gmail.com> mentioned:
>
> > On Wed, Feb 3, 2010 at 6:18 PM, Stanislav Sedov <stas@freebsd.org>
> wrote:
> >
> > > On Wed, 3 Feb 2010 18:05:50 +0800
> > > Jyun-Yan You <crabtw@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8e54b5841002040002q5d316ea3tdf760f2d7b422963>