Re: [EXTERNAL]: Re: pglogical install errors openSUSE Leap 42.1

From: Giulio Calacoci <giulio(dot)calacoci(at)2ndquadrant(dot)it>
To: "Bellrose, Brian" <brian(dot)bellrose(at)wabtec(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: [EXTERNAL]: Re: pglogical install errors openSUSE Leap 42.1
Date: 2020-02-19 14:07:18
Message-ID: CAAay-GSuvbd=J0LAoO8w2Q-qpRuDCUi2CeAVVduT2NC8ajYAMA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm not an OpenSuse expert, but I know a bit about building pglogical...

I've been able to compile pglogical on a leap 42.3 docker image

In the beginning, I tried to compile pglogical using the very same
postgresql packages you were using,
but for some reasons, I was consistently receiving linking errors.

After some debugging, and packages digging, I found some official SUSE
packages for leap 42
So I decided to give them a try.
Here is the URL to the repo:
https://download.opensuse.org/repositories/openSUSE:/Leap:/42.3:/Update/ports/openSUSE:Leap:42.3:Update.repo

Note: here https://download.opensuse.org/repositories/openSUSE:/Leap:/
you can find also repositories for older leap versions. including 42.1

An important suggestion I can give you is: please use a checkout from
git instead of using a tar file containing the source code.
This because pglogical uses a git submodule for the pglogical_dump component.

Here is the link to the 2ndquadrant source repository:
https://github.com/2ndQuadrant/pglogical

Here is the sequence of action I performed:

zypper addrepo https://download.opensuse.org/repositories/openSUSE:/Leap:/42.3:/Update/ports/openSUSE:Leap:42.3:Update.repo

zypper install postgresql94-devel openssl-devel libxml2-devel
libxslt-devel pam-devel readline-devel zlib-devel krb5-devel
e2fsprogs-devel libselinux-devel git vim

then I cloned the pglogical git:
git clone https://github.com/2ndQuadrant/pglogical.git

(note, I used the https link because in docker I was having some
issues using the ssh protocol. if you face the same issue update the
.gitmodule file inside the repository checkout to use the https link
to pglogical_dump https://github.com/2ndQuadrant/pglogical_dump.git )
git checkout REL2_3_0 (this because I wanted to use the latest
released code. feel free to use another tag if you wish)
git submodule sync
git submodule init
git submodule update

now the repository is up to date.
PATH=/usr/lib/postgresql94/bin:$PATH make USE_PGXS=1 clean all
PATH=/usr/lib/postgresql94/bin:$PATH make USE_PGXS=1 install

(as you can notice the path is different from the documentation as
suse uses different default paths from rhel and debian)

This worked for me on OpenSUSE leap 42.3, PLEASE let me know if it
works for you too.

Ciao,
Giulio

On Tue, 18 Feb 2020 at 23:07, Bellrose, Brian <brian(dot)bellrose(at)wabtec(dot)com> wrote:
>
> I found a repository that offered it and added the repo.
> https://download.opensuse.org/repositories/home:vjt:ifad/openSUSE_Leap_42.1/home:vjt:ifad.repo
>
> Only time will tell if that was a wise decision. I only need to it to get me through my upgrade. Moving all these to RHEL 8.1 and Postgres 11.7. Going to use pglogical to try and reduce downtime.
>
> Brian
>
> -----Original Message-----
> From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
> Sent: Tuesday, February 18, 2020 5:00 PM
> To: Bellrose, Brian <brian(dot)bellrose(at)Wabtec(dot)com>; pgsql-general(at)lists(dot)postgresql(dot)org
> Subject: Re: [EXTERNAL]: Re: pglogical install errors openSUSE Leap 42.1
>
> On 2/18/20 1:56 PM, Bellrose, Brian wrote:
> > Yes,
> >
> > S | Name | Summary | Type
> > --+-----------------------+-------------------------------------------------------------------------+--------
> > i | postgresql94 | Basic Clients and Utilities for PostgreSQL | package
> > i | postgresql94-contrib | Contributed Extensions and Additions to PostgreSQL | package
> > i | postgresql94-devel | PostgreSQL development header files and libraries | package
> > i | postgresql94-plperl | The PL/Tcl, PL/Perl, and PL/Python procedural languages for PostgreSQL | package
> > i | postgresql94-plpython | The PL/Python Procedural Languages for PostgreSQL | package
> > i | postgresql94-pltcl | PL/Tcl Procedural Language for PostgreSQL | package
> > i | postgresql94-server | The Programs Needed to Create and Run a PostgreSQL Server | package
> > i | postgresql94-test | The test suite for PostgreSQL | packagep
>
> Alright that looks good. You may still need to play Whack-a-Mole with devel libraries.
>
> I am curious how you got to 9.4.25 via an update, given that this Postgres version was released well past the OS EOL?
>
> >
> > Brian
> >
> > -----Original Message-----
> > From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
> > Sent: Tuesday, February 18, 2020 4:41 PM
> > To: Bellrose, Brian <brian(dot)bellrose(at)Wabtec(dot)com>;
> > pgsql-general(at)lists(dot)postgresql(dot)org
> > Subject: Re: [EXTERNAL]: Re: pglogical install errors openSUSE Leap
> > 42.1
> >
> > On 2/18/20 1:22 PM, Bellrose, Brian wrote:
> >> I used zypper to install postgres. Postgres is fine... Running 9.4.25 that I updated today. So you have krb5-devel... Ok, good to know. Seems like that may be the missing link. At least I hope it is the only one.
> >
> > Was postgresql94-devel also installed?
> >
> >>
> >> Brian
> >>
> >> -----Original Message-----
> >> From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
> >> Sent: Tuesday, February 18, 2020 4:19 PM
> >> To: Bellrose, Brian <brian(dot)bellrose(at)Wabtec(dot)com>;
> >> pgsql-general(at)lists(dot)postgresql(dot)org
> >> Subject: Re: [EXTERNAL]: Re: pglogical install errors openSUSE Leap
> >> 42.1
> >>
> >> On 2/18/20 12:54 PM, Bellrose, Brian wrote:
> >>> Yes, I understand that this OS is very old. I can't help that. I was handed this. The reason I am trying to install pglogical is so that I can upgrade and get off this OS. Our requirements are for limited downtime so pglocical is best bet. At least I thought it was.
> >>>
> >>> Yes, I followed the source install doc. Can't be really called an install doc when all it states is run a make. It has about three sentences that encompass their complete install instructions from source. No documentation on package dependencies or anything else or even what package do download. I tried 2.2.1 first and it did not work. I have gotten farther with 2.2.0, but I am getting what appears to be dependency errors. Might need to install krb5-devel. Not 100% clear though.
> >>
> >> Well on my Leap 15.1 krb5-devel does provide gssapi.h.
> >>
> >> How was Postgres installed on the machine?
> >>
> >>>
> >>> Brian
> >>>
> >>> -----Original Message-----
> >>> From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
> >>> Sent: Tuesday, February 18, 2020 3:49 PM
> >>> To: Bellrose, Brian <brian(dot)bellrose(at)Wabtec(dot)com>;
> >>> pgsql-general(at)lists(dot)postgresql(dot)org
> >>> Subject: [EXTERNAL]: Re: pglogical install errors openSUSE Leap 42.1
> >>>
> >>> On 2/18/20 11:39 AM, Bellrose, Brian wrote:
> >>>> In the process of trying to use pglogical to upgrade from 9.4 to 11.7.
> >>>> Current OS is openSUSE Leap 42.1. Downloaded pglogical-2.2.0.tar
> >>>> from
> >>>
> >>> FYI 42.1 is coming up on 3 years past EOL so you might have general issues with out of date libraries.
> >>>
> >>>> 2nsQuadrant site. I am getting the following error during make
> >>>> clean all
> >>>> command:
> >>>
> >>> Did you follow the source install instructions here?:
> >>>
> >>> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.2ndquadrant.
> >>> c
> >>> om_en_resources_pglogical_pglogical-2Dinstallation-2Dinstructions_&d
> >>> =
> >>> D
> >>> wID-g&c=pG3N8eJDEvizGbIy8hw-0w&r=Avd8jJaAOeUVJ3AmVEriBLvYqiK8qqaP7C8
> >>> h
> >>> u
> >>> ZnWyCI&m=1vh2nbBIrcqphzYV4i690_hEEZuRS71Da5SClwjBbOw&s=1O6j3zKQdkp8R
> >>> T
> >>> u
> >>> GPAQPB44lQi_IV9goSuWDjl0pnqI&e=
> >>>
> >>>>
> >>>> o pglogical_worker.c
> >>>>
> >>>> In file included from pglogical_worker.c:17:0:
> >>>>
> >>>> /usr/include/pgsql/server/libpq/libpq-be.h:36:27: fatal error:
> >>>> gssapi/gssapi.h: No such file or directory
> >>>>
> >>>> #include <gssapi/gssapi.h>
> >>>>
> >>>> ^
> >>>>
> >>>> compilation terminated.
> >>>>
> >>>> <builtin>: recipe for target 'pglogical_worker.o' failed
> >>>>
> >>>> It appears that gssapi is Kerberos related. Just not exactly sure
> >>>> what package I am missing and should install on the OS to get this
> >>>> to compile. Currently I have only one gssapi related package
> >>>> installed on this system
> >>>>
> >>>> S | Name | Summary |
> >>>> Type
> >>>>
> >>>> --+---------------------------+--------------------------------------+--------
> >>>>
> >>>> i | cyrus-sasl-gssapi | Plugin for the GSSAPI SASL mechanism |
> >>>> package
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Brian
> >>>>
> >>>> /This email and any attachments are only for use by the intended
> >>>> recipient(s) and may contain legally privileged, confidential,
> >>>> proprietary or otherwise private information. Any unauthorized use,
> >>>> reproduction, dissemination, distribution or other disclosure of
> >>>> the contents of this e-mail or its attachments is strictly prohibited.
> >>>> If you have received this email in error, please notify the sender
> >>>> immediately and delete the original. Neither this information
> >>>> block, the typed name of the sender, nor anything else in this
> >>>> message is intended to constitute an electronic signature unless a
> >>>> specific statement to the contrary is included in this message. /
> >>>
> >>>
> >>> --
> >>> Adrian Klaver
> >>> adrian(dot)klaver(at)aklaver(dot)com
> >>> This email and any attachments are only for use by the intended recipient(s) and may contain legally privileged, confidential, proprietary or otherwise private information. Any unauthorized use, reproduction, dissemination, distribution or other disclosure of the contents of this e-mail or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete the original. Neither this information block, the typed name of the sender, nor anything else in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.
> >>>
> >>
> >>
> >> --
> >> Adrian Klaver
> >> adrian(dot)klaver(at)aklaver(dot)com
> >> This email and any attachments are only for use by the intended recipient(s) and may contain legally privileged, confidential, proprietary or otherwise private information. Any unauthorized use, reproduction, dissemination, distribution or other disclosure of the contents of this e-mail or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete the original. Neither this information block, the typed name of the sender, nor anything else in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.
> >>
> >
> >
> > --
> > Adrian Klaver
> > adrian(dot)klaver(at)aklaver(dot)com
> > This email and any attachments are only for use by the intended recipient(s) and may contain legally privileged, confidential, proprietary or otherwise private information. Any unauthorized use, reproduction, dissemination, distribution or other disclosure of the contents of this e-mail or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete the original. Neither this information block, the typed name of the sender, nor anything else in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.
> >
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com
> This email and any attachments are only for use by the intended recipient(s) and may contain legally privileged, confidential, proprietary or otherwise private information. Any unauthorized use, reproduction, dissemination, distribution or other disclosure of the contents of this e-mail or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete the original. Neither this information block, the typed name of the sender, nor anything else in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.

--
Giulio Calacoci - 2ndQuadrant
PostgreSQL Training, Services and Support
giulio(dot)calacoci(at)2ndQuadrant(dot)it | www.2ndQuadrant.it

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bellrose, Brian 2020-02-19 14:12:30 RE: [EXTERNAL]: Re: pglogical install errors openSUSE Leap 42.1
Previous Message Pavel Luzanov 2020-02-19 11:33:53 Runtime partition pruning with hash partitioning