From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OjzZ5-0004cc-8u for garchives@archives.gentoo.org; Fri, 13 Aug 2010 19:05:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85AE0E0A7C for ; Fri, 13 Aug 2010 19:05:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 92F3BE0817 for ; Fri, 13 Aug 2010 19:00:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id EC4241B416F for ; Fri, 13 Aug 2010 19:00:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.462 X-Spam-Level: X-Spam-Status: No, score=-2.462 required=5.5 tests=[AWL=0.137, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dZQLqPiiXScC for ; Fri, 13 Aug 2010 19:00:20 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 6780A1B4058 for ; Fri, 13 Aug 2010 19:00:19 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OjzUB-0002lh-V9 for gentoo-user@gentoo.org; Fri, 13 Aug 2010 21:00:11 +0200 Received: from graaff.xs4all.nl ([80.101.101.38]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Aug 2010 21:00:11 +0200 Received: from graaff by graaff.xs4all.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Aug 2010 21:00:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Hans de Graaff Subject: [gentoo-user] Re: Postgres gem not found by cron job Date: Fri, 13 Aug 2010 20:36:05 +0200 Message-ID: References: <4C62E92A.80807@orlitzky.com> <4C62F6F5.1010702@gmail.com> <4C62FAE5.9030601@orlitzky.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: graaff.xs4all.nl User-Agent: Pan/0.133 (House of Butterflies) Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 68ce4e75-0fad-4f4b-a1d1-5ccd67bf27d2 X-Archives-Hash: 92a845abb0bbb57ef3456db8c569d453 On Wed, 11 Aug 2010 15:32:53 -0400, Michael Orlitzky wrote: > Thanks for the tip. The cron environment was missing > "RUBYOPT=3D-rauto_gem" -- adding it fixed the problem. >=20 > Dark magic, whatever it does. It ensures that installed gems are found automatically without specifying this explicitly in your script. The other solution is to "require 'rubygems'" first in your script. Kind regards, Hans