From owner-freebsd-ruby@FreeBSD.ORG Fri Jan 29 00:11:55 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 E9B411065672 for ; Fri, 29 Jan 2010 00:11:54 +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 7CBFB8FC12 for ; Fri, 29 Jan 2010 00:11:54 +0000 (UTC) Received: by ywh32 with SMTP id 32so586962ywh.14 for ; Thu, 28 Jan 2010 16:11:53 -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=0GU/xgkXiBztFfeDGDAzX4IWgcQxZ3VwRynFDUmk2hg=; b=wuPts6j4//wIVhIt8chO0ONRvGzILlG1hj3G/NRa7l3rWvW2Yf7piaZ9ZRkoKcE/H6 HtelNwszpSuSF2CiJ/BiRq+Oks6vS0cbQe2YQUNuGI25VVti3hzVD1UECS25AXg9ENqh ubDEPm4DvKf/gEHx4F/7pQ1s8/gKigCriYAlc= 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=vTU5xJaPknHTmmzKnu4TMv7y2QJGFsxPVFlvia5BtxbRUcO9f8M0p09xW8jKunfzss kbnGuqrctzuRr7Z0PZYfn76Kyrvp9E/S1bPiDLCtfjH+ITT0t+/cHZhMGpMRLEJtPhhg 4x9bzDPN/a7WtjkrWX7dwr+6GjL1tomj5b0RE= MIME-Version: 1.0 Received: by 10.100.235.36 with SMTP id i36mr54979anh.104.1264723913592; Thu, 28 Jan 2010 16:11:53 -0800 (PST) In-Reply-To: <20100128143157.e1fd05a4.stas@FreeBSD.org> References: <20100128120819.a15e60e0.stas@FreeBSD.org> <20100128143157.e1fd05a4.stas@FreeBSD.org> Date: Thu, 28 Jan 2010 17:11:53 -0700 Message-ID: From: Aaron Gifford To: Stanislav Sedov , freebsd-ruby@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: 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 00:11:55 -0000 2010/1/28 Stanislav Sedov said: > Oh, so you have ruby 1.9 as a default version? Yes, I manually symlinked all /usr/local/bin/*19 executables to make 1.9 my default ruby. (I much prefer 1.9 :) > Weird, it should work with 'require "rubygems"' as well. 1.8? Really? I didn't know... I've just always required it since whatever version I used needed it for any gems to work right (I don't recall what version). Thanks for the info. > I'll try to check at the evening. > Maybe something got broken after the last update. One other thing that could be the culprit: on my system, all builds happen within a "build" jail: 1) Create new jail from the most recent world in /usr/obj (a build of 8.0-RELEASE was in /usr/obj, or an earlier 8-STABLE build) as described in 'man jail' (i.e. make installworld DESTDIR=/path && make distribution DESTDIR=/path) 2) Mount (using nullfs) both /usr/obj and /usr/src within the new jail 3) Within the new jail, update /usr/src to the latest source, clean out /usr/obj, mergemaster, then make buildworld 4) Outside of the jail, mergemaster, make installkernel, reboot, make installworld, then clean up any old config. files, etc. 5) Totally wipe out the build jail in #1 and create a NEW jail (same as #1) using the newest /usr/obj build 6) Enter the jail (which should now be a FRESH and UP-TO-DATE CLEAN install of 8-STABLE, with ZERO left-over old files or config. files anywhere) and rebuild all ports I need (creating packages of each for later installation in other jails, on the main system, and other systems) I wonder if this unusual process of building ports within a jail somehow is freaking things out somewhere... In theory, it SHOULD work transparently, identically to building outside of a jail. And to my knowledge, no other ports or system binaries behave any differently. It should also give me CLEANER builds as my jail build environment won't be polluted with any configuration changes that my base system has. Not knowing enough about ruby's gem loading/building/require system, I don't know where to go looking myself. If I knew more of how require worked in conjunction with gems, maybe I would have found the problem already. Thanks for any/all info. Aaron out.