pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jakub Olczyk <jwo@disroot.org>
To: Pavan Kumar <pavan.dba27@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: pg_backrest build dependencies rpm's
Date: Fri, 24 May 2019 09:16:08 +0200
Message-ID: <5f1aeb58-2c06-e617-58db-bf429c3fd9f7@disroot.org> (raw)
In-Reply-To: <CA+M0sHFr6buncuf+1Dp6yWzP742k+7Zx7GD+7bbF7TeQ-b+xhA@mail.gmail.com>
References: <CA+M0sHE=Ta7nKa3qZOTHmEedYkWyyJJ0DjPPAOTKjqE0LPGtTA@mail.gmail.com>
	<3fafbf1d-7fa4-09a9-cd69-8532df0d5a67@disroot.org>
	<CA+M0sHFr6buncuf+1Dp6yWzP742k+7Zx7GD+7bbF7TeQ-b+xhA@mail.gmail.com>

Hi Pavan,

I think you forgot to add the list to your reply, so I am adding it
right now.

On 23/05/2019 17:46, Pavan Kumar wrote:
> I installed  pgdg repository rpm.
> 
> [root@katyayani ~]# rpm -Uvh pgdg-redhat-repo-latest.noarch.rpm
> Preparing...                ########################################### [100%]
>    1:pgdg-redhat-repo       ########################################### [100%]
> 
> when i query for rpm's in the repository, i don't see the rpm i am looking for 
> [root@katyayani ~]# yum provides build
> Loaded plugins: refresh-packagekit, security, ulninfo
> Repository pgdg11 is listed more than once in the configuration
> Repository pgdg96 is listed more than once in the configuration
> Repository pgdg11-updates-testing is listed more than once in the configuration
> Repository pgdg96-updates-testing is listed more than once in the configuration
> Repository pgdg11-source is listed more than once in the configuration
> Repository pgdg11-source-updates-testing is listed more than once in the configuration
> Repository pgdg96-source is listed more than once in the configuration
> Repository pgdg96-source-updates-testing is listed more than once in the configuration
> pgdg94                                                                                                         | 4.1 kB     00:00
> pgdg94/primary_db                                                                                              | 238 kB     00:00
> pgdg95                                                                                                         | 4.1 kB     00:00
> pgdg95/primary_db                                                                                              | 242 kB     00:00
> Warning: 3.0.x versions of yum would erroneously match against filenames.
>  You can use "*/build" and/or "*bin/build" to get that behaviour
> No Matches found
> 
> Instead of configuring pgdg yum repository, is there any way to download rpm's  from pgdg repository portal ?

Well, I thought you might want to use the prepackaged version of
pgbackrest from the repository that matches the version of PostgreSQL
you have installed. So the command after installing the repository RPM
would look like this:

# yum install pgbackrest

In that way you won't need to compile anything from scratch and you can
count on the automated updates from the repository.

If that approach isn't really working for you and you can only compile
yourself the first step would be installing the @buildsys-build group
which is roughly equivalent to build-essential from Debian world. As for
other library packages I'd start with the ones that are listed as
BuildRequires in the source RPM package from PGDG repository and later
install anything that is still missing.

So the command for installing packages required during build would be:
# yum install @buildsys-build \
                openssl-devel \
                   zlib-devel \
          perl-ExtUtils-Embed

Cheers,
Jakub Olczyk

Attachments:

  signature.asc (application/pgp-signature, 489B) download

view thread (8+ messages)  latest in thread

Message-ID: <5f1aeb58-2c06-e617-58db-bf429c3fd9f7@disroot.org>
Permalink:  ../5f1aeb58-2c06-e617-58db-bf429c3fd9f7@disroot.org/
Also on:    postgresql.org/message-id/5f1aeb58-2c06-e617-58db-bf429c3fd9f7@disroot.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jwo@disroot.org, pavan.dba27@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: pg_backrest build dependencies rpm's
  In-Reply-To: <5f1aeb58-2c06-e617-58db-bf429c3fd9f7@disroot.org>

* 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