From: Basil Bourque <basil.list@me.com>
To: pgsql-sql@postgresql.org
Subject: Re: linux. ossp-uuid
Date: Tue, 21 Dec 2010 18:00:32 -0800
Message-ID: <C4B0C78C-3319-4A59-B88F-AFF7BFEE49F8@me.com> (raw)
In-Reply-To: <AANLkTinSwYKvOaVQajxnfxcgpvTG8c=_EgJ=YMkza6q+@mail.gmail.com>
References: <AANLkTinSwYKvOaVQajxnfxcgpvTG8c=_EgJ=YMkza6q+@mail.gmail.com>
As documented here:
http://www.postgresql.org/docs/9.0/interactive/uuid-ossp.html
Rather than assuming the host operating system has an implementation of UUID, Postgres depends on the presence of a specific implementation of UUID generation & handling. This open-source implementation is called "OSSP uuid", found here:
http://www.ossp.org/pkg/lib/uuid/
My guess:
You compiled the code necessary for Postgres to reach out to this UUID implementation. But you are missing the actual UUID implementation.
The OneClick installer from EnterpriseDB.com placed this on my Mac, which I assume is the UUID implementation:
/Library/PostgreSQL/9.0/lib/postgresql/uuid-ossp.so
In addition I found what I assume is the code that enables Postgres to reach out and call that implementation.
/Library/PostgreSQL/9.0/lib/libuuid.dylib
/Library/PostgreSQL/9.0/lib/libuuid.la
Lastly I found this SQL script which I ran to enable the already-complied code:
/Library/PostgreSQL/9.0/share/postgresql/contrib/uuid-ossp.sql
I'm no expert, but I hope that helps.
--Basil Bourque
> I have linux server. Package uuid installed
>
> I build and install postgresql from source with --with-ossp-uuid flag.
>
> After installation I try to execute:
>
> =======
> create or replace function
> uuid_generate_v1()
>
> returns
> uuid
>
> as '$libdir/uuid-ossp', 'uuid_generate_v1'
>
> volatile strict language C
>
> =======
>
> and got error
>
> "could not load libraty /usr/lib/postgresql/uuid-ossp.so": /usr/lib/postgresql/uuid-ossp.so: undefined symbol: uuid_error"
>
> How I can fix it?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: basil.list@me.com
Subject: Re: linux. ossp-uuid
In-Reply-To: <C4B0C78C-3319-4A59-B88F-AFF7BFEE49F8@me.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox