Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 45382643FDC for ; Tue, 16 Mar 2010 06:20:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 65932-05 for ; Tue, 16 Mar 2010 09:20:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay.ptn-ipout01.plus.net (relay.ptn-ipout01.plus.net [212.159.7.35]) by mail.postgresql.org (Postfix) with ESMTP id 9895C64223F for ; Tue, 16 Mar 2010 06:20:47 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAB/qnkvUnw4R/2dsb2JhbACad3O5AIR8BA Received: from pih-relay04.plus.net ([212.159.14.17]) by relay.ptn-ipout01.plus.net with ESMTP; 16 Mar 2010 09:20:45 +0000 Received: from [84.51.143.99] (helo=server3.office.archonet.com) by pih-relay04.plus.net with esmtp (Exim) id 1NrSxB-0002o3-3R; Tue, 16 Mar 2010 09:20:45 +0000 Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTPA id BD1BA274075; Tue, 16 Mar 2010 09:20:44 +0000 (GMT) Message-ID: <4B9F4D6C.5040708@archonet.com> Date: Tue, 16 Mar 2010 09:20:44 +0000 From: Richard Huxton User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9pre) Gecko/20100217 Lightning/1.0b1 Shredder/3.0.3pre MIME-Version: 1.0 To: Rob Sargent CC: pgsql-sql@postgresql.org Subject: Re: installing uuid generators References: <4B9EC98B.8080201@gmail.com> In-Reply-To: <4B9EC98B.8080201@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Plusnet-Relay: f30e3d7992873e0443c2808a4b0b0b75 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/100 X-Sequence-Number: 33807 On 15/03/10 23:58, Rob Sargent wrote: > Stop me if you've heard this one before :) > > Given that pg_config --libdir yields "/usr/lib64" > to where/what would you expect > > "AS '$libdir/uuid-ossp', 'uuid_generate_v5'" > > to resolve? > > The loader script, > ~/tools/postgresql-8.4.2/contrib/uuid-ossp/uuid-ossp.sql, generates > "tools/postgresql-8.4.2/contrib/uuid-ossp/uuid-ossp.sql:9: ERROR: could > not access file "$libdir/uuid-ossp": No such file or directory" Could it be that $libdir doesn't contain uuid-ossp when the .sql script is being executed? It's also worth checking that the pg_config you are executing is the one associated with postgresql-8.4.2 - make sure your PATH is set appropriately. I'm not sure that it would give this error, but I keep making the mistake of setting my PATH with the three versions I have on my dev box. -- Richard Huxton Archonet Ltd