Re: How to install PGCRYPTO in PostgreSQL9

From: Andre Lopes <lopes80andre(at)gmail(dot)com>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to install PGCRYPTO in PostgreSQL9
Date: 2011-08-17 13:44:31
Message-ID: CAGFRAbONefCjyjun2dwt5XtrkGTcESEBstxVNVVndFBSxPjXSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have installed and tried to import the SQL, but I got this:

[code]
[andre(at)andre public]$ psql -d 420 -f /usr/pgsql-9.0/share/contrib/pgcrypto.sql
SET
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:9: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:14: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:19: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:24: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:29: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:34: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:39: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:44: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:49: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:54: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:59: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:64: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:72: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:77: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:85: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:90: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:98: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:103: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:111: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:116: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:124: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:129: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:137: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:142: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:150: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:155: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:163: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:168: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:176: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:181: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:189: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:197: ERROR: permission
denied for language c
psql:/usr/pgsql-9.0/share/contrib/pgcrypto.sql:202: ERROR: permission
denied for language c
[andre(at)andre public]$
[/code]

What's wrong here?

Best Regards,

2011/8/17 Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>:
> On Wed, 2011-08-17 at 06:28 -0700, Andre Lopes wrote:
>>
>> I am using CentOS and PostgreSQL9. I have an application that uses
>> Pgcrypto. I have googled but I am not sure how can I install this in
>> PostgreSQL9.
>
> If you are using RPMS, then install -contrib RPM, and then install
> pgcrypto using pgcrypto.sql that comes with the package.
>
> If it is the source installation, run make install under
> contrib/pgcrypto directory. Then again, load pgcrypto.sql to your
> database.
>
> Regards,
> --
> Devrim GÜNDÜZ
> Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
> PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
> Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
> http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2011-08-17 13:59:55 Re: How to install PGCRYPTO in PostgreSQL9
Previous Message Devrim GÜNDÜZ 2011-08-17 13:35:05 Re: How to install PGCRYPTO in PostgreSQL9