From owner-freebsd-ruby@FreeBSD.ORG Thu Feb 4 08:02:48 2010 Return-Path: Delivered-To: freebsd-ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F65D106566B for ; Thu, 4 Feb 2010 08:02:48 +0000 (UTC) (envelope-from crabtw@gmail.com) Received: from mail-pz0-f202.google.com (mail-pz0-f202.google.com [209.85.222.202]) by mx1.freebsd.org (Postfix) with ESMTP id 03B928FC12 for ; Thu, 4 Feb 2010 08:02:47 +0000 (UTC) Received: by pzk40 with SMTP id 40so2473169pzk.7 for ; Thu, 04 Feb 2010 00:02:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=zuMCUeI3RLA2JJ2ELdwXtz/cmP8kxWKPy9f2FBlkrCc=; b=NkVqE/Az33+SCEBHSRSfQQ4YEjPc2lfMWWM1fi6XD+CVXd5RH5wwnV/h9mHyJ0TmAz Un9yH1pcEpW+Q2vUxepie/S0s47kX/uwQrEpaYSHQRSqhrjOSazgFp1/iWUpobrJCz1Q qvxTqtDf+OJChgvXiNX3TxkDnQaz0VKeVukhs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=d19heeWatkElVidNECK5RrMI2H27AU/P4Q31w8q2fRlt8ptP5fj5YabEjTzIiEmZR5 mJZ8UsyImtogsMG1EWnNC4WDvmuvnprg/WjHK28pcsaLoZcCRartDlWDJ64cbFKNe4ko 55UjrDvOfbo0IgsE4fPkCGsqNdXNUeXDpO3L4= MIME-Version: 1.0 Received: by 10.142.247.1 with SMTP id u1mr509149wfh.249.1265270567315; Thu, 04 Feb 2010 00:02:47 -0800 (PST) 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> Date: Thu, 4 Feb 2010 16:02:47 +0800 Message-ID: <8e54b5841002040002q5d316ea3tdf760f2d7b422963@mail.gmail.com> From: Jyun-Yan You To: freebsd-ruby@freebsd.org, jatzen@gmail.com Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Rake dependency problem for Ruby 1.9.1 X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2010 08:02:48 -0000 On Thu, Feb 4, 2010 at 7:50 AM, Stanislav Sedov wrote: > On Wed, 3 Feb 2010 19:08:47 +0800 > Jyun-Yan You mentioned: > > > On Wed, Feb 3, 2010 at 6:18 PM, Stanislav Sedov > wrote: > > > > > On Wed, 3 Feb 2010 18:05:50 +0800 > > > Jyun-Yan You 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.