pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jotpe <jotpe@posteo.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: extract properties from certificates
Date: Sun, 25 Feb 2018 09:26:22 +0100
Message-ID: <3c0b91e1-7abe-5316-cd3e-65522c0d131f@posteo.de> (raw)
In-Reply-To: <d7bc72f1-c8b2-7690-94f9-c6d80f171ecd@posteo.de>
References: <c48b2f47-3279-0e64-306c-69cb2a4f52a6@posteo.de>
	<16680.1519487919@sss.pgh.pa.us>
	<d7bc72f1-c8b2-7690-94f9-c6d80f171ecd@posteo.de>

I could compile the pg-cert extension package, but postgresql 9.6 
refused to install it.

create extension cert;
FEHLER:  geschachteltes CREATE EXTENSION wird nicht unterstützt
means "ERROR: nested CREATE EXTENSION is not supported"

At line 12 in /usr/share/postgresql/9.6/extension/cert--0.1.1.sql 
another extension called bignum is created.
As a short try, I tryed to install in seperatly. I commentent that out, 
git cloned the https://github.com/beargiles/pg-bignum project, make and 
make install leads to an error, but the extension files are available in 
the extensions directory:

  sudo make install
/bin/mkdir -p '/usr/share/postgresql/9.6/extension'
/bin/mkdir -p '/usr/share/postgresql/9.6/extension'
/bin/mkdir -p '/usr/lib/postgresql/9.6/lib'
/bin/mkdir -p '/usr/share/doc/postgresql-doc-9.6/extension'
/usr/bin/install -c -m 644 .//bignum.control 
'/usr/share/postgresql/9.6/extension/'
/usr/bin/install -c -m 644 .//sql/bignum--0.8.0.sql 
.//sql/bignum--0.8.0.sql  '/usr/share/postgresql/9.6/extension/'
/usr/bin/install: Neu erstelltes 
'/usr/share/postgresql/9.6/extension/bignum--0.8.0.sql' wird nicht mit 
'.//sql/bignum--0.8.0.sql' überschrieben.
/usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk:114: die Regel 
für Ziel „install“ scheiterte
make: *** [install] Fehler 1

I could not create the bignum extension in my database:

create extension bignum;
FEHLER:  konnte nicht auf Datei »bignum« zugreifen: Datei oder 
Verzeichnis nicht gefunden
means "ERROR: could not access file "bignum": File or directory not found"


Has anybody anybody an idea, how to fix this,
or maybe another aproach to extract properties from X.509 certificates?

Beste Regards Johannes



Am 24.02.2018 um 19:07 schrieb jotpe:
> 
> 
> Am 24.02.2018 um 16:58 schrieb Tom Lane:
>> jotpe <jotpe@posteo.de> writes:
>>> I found the pg-cert extension at https://github.com/beargiles/pg-cert
>>> I have trouble to compile it. When I enter "make" following error
>>> message appears:
>>> Makefile:29: /usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk:
>>> Datei oder Verzeichnis nicht gefunden
>>> make: *** Keine Regel, um
>>> „/usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk“ zu erstellen.
>>> Schluss.
>>
>>> What am I missing?
>>
>> I'd expect pgxs.mk to be packaged in a postgresql-devel (or
>> postgresql-dev, depending on local culture) subpackage.  Maybe you didn't
>> install that?
> 
> Guessed right. postgresql-server-dev-all for debian 9 did it. Thanks.
> 
>>             regards, tom lane
>>
> 




view thread (7+ messages)  latest in thread

Message-ID: <3c0b91e1-7abe-5316-cd3e-65522c0d131f@posteo.de>
Permalink:  ../3c0b91e1-7abe-5316-cd3e-65522c0d131f@posteo.de/
Also on:    postgresql.org/message-id/3c0b91e1-7abe-5316-cd3e-65522c0d131f@posteo.de

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: jotpe@posteo.de
  Subject: Re: extract properties from certificates
  In-Reply-To: <3c0b91e1-7abe-5316-cd3e-65522c0d131f@posteo.de>
  References: <c48b2f47-3279-0e64-306c-69cb2a4f52a6@posteo.de> <16680.1519487919@sss.pgh.pa.us> <d7bc72f1-c8b2-7690-94f9-c6d80f171ecd@posteo.de> <3c0b91e1-7abe-5316-cd3e-65522c0d131f@posteo.de>

* 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