From owner-freebsd-ruby@FreeBSD.ORG Fri Jan 29 02:25:07 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 75245106566B for ; Fri, 29 Jan 2010 02:25:07 +0000 (UTC) (envelope-from astounding@gmail.com) Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.211.194]) by mx1.freebsd.org (Postfix) with ESMTP id 1E3E98FC18 for ; Fri, 29 Jan 2010 02:25:06 +0000 (UTC) Received: by ywh32 with SMTP id 32so684886ywh.14 for ; Thu, 28 Jan 2010 18:25:06 -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 :content-transfer-encoding; bh=SlwiOKaRKycZsgYsqyq2rOxPfQJZt1oLLXSXmXYEmLo=; b=RNZNVR53kg26Ma/qstAPlr07N6YnxJ6EJdFS7gwn7r23/5ouPsQMD7KOvQ/6r0a7Vx CDzlFa7yc1Uq5JIwA3I5kj8hxKtYF7TuC3IqYLcpPCbTILFRoFJIkucMOhyf4vObxVFt wiqKecRYBLh4zY6dKENWSd5SENEg6q8/5JaxA= 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:content-transfer-encoding; b=Wm5QguRXc7Uq2/m3rAoF6v3K0bXJweJSBz7JJJ9PwlViqqgYdtdsTS3A+s9NCRB5AY j1QSbelqJwmBLB3/NMvOBTyoqI7gk1AZ1CB/pZnBPcCcM+Y7ihq5/iiTrBZ6ofv/JJwJ dhQMPxUjyyCYMP2TxMdMojCuCHt5Q3JRxRFUk= MIME-Version: 1.0 Received: by 10.101.129.29 with SMTP id g29mr130562ann.231.1264731906374; Thu, 28 Jan 2010 18:25:06 -0800 (PST) In-Reply-To: References: <20100128120819.a15e60e0.stas@FreeBSD.org> <20100128143157.e1fd05a4.stas@FreeBSD.org> <20100128165027.f510a468.stas@FreeBSD.org> Date: Thu, 28 Jan 2010 19:25:06 -0700 Message-ID: From: Aaron Gifford To: freebsd-ruby@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Ruby Gem Require LoadError (8-STABLE, 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: Fri, 29 Jan 2010 02:25:07 -0000 I wrote: > One more interesting thing: > > % ruby19 -e 'p Gem.default_dir' > "/usr/local/lib/ruby19/gems/1.9" > > That is NOT right. =A0It should be "/usr/local/lib/ruby/gems/1.9" instead= . > > Where does Gem.default_dir get set, does anyone know? > > Aaron out. It looks like gem_prelude.rb sets up the gems include path. The relevant code section is: def self.default_dir File.join File.dirname(ConfigMap[:sitedir]), 'Gems', ConfigMap[:ruby_version] elsif RUBY_VERSION > '1.9' then File.join(ConfigMap[:libdir], ConfigMap[:ruby_install_name], 'gems'= , ConfigMap[:ruby_version]) else File.join(ConfigMap[:libdir], ruby_engine, 'gems', ConfigMap[:ruby_version]) end end So the Gem.default_dir is being set to: File.join(ConfigMap[:libdir], ConfigMap[:ruby_install_name], 'gems', ConfigMap[:ruby_version]) (that's the middle "RUBY_VERSION > '1.9'" code chunk) So ConfigMap[:ruby_install_name] is "ruby19" in this case, and THAT's what is screwing this up. IDEAS: Either the FreeBSD Ruby 1.9 port needs to install things in "/usr/local/lib/ruby19" instead of "/usr/local/lib/ruby/" so the code will work as-is, or else something's gotta change with ConfigMap[:ruby_install_name], or else gem_prelude.rb code has to be changed... So... anyone with expertise, where does one go from here? Aaron out.