mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Fix some typos
This commit is contained in:
46
PACKAGES.md
46
PACKAGES.md
@@ -15,21 +15,23 @@ type of system.
|
|||||||
|
|
||||||
When building repmgr against a RPM packaged build, you may discover that some
|
When building repmgr against a RPM packaged build, you may discover that some
|
||||||
development packages are needed as well. The following build errors can
|
development packages are needed as well. The following build errors can
|
||||||
occur::
|
occur:
|
||||||
|
```
|
||||||
/usr/bin/ld: cannot find -lxslt
|
/usr/bin/ld: cannot find -lxslt
|
||||||
/usr/bin/ld: cannot find -lpam
|
/usr/bin/ld: cannot find -lpam
|
||||||
|
```
|
||||||
|
Install the following packages to correct those:
|
||||||
|
|
||||||
Install the following packages to correct those::
|
```
|
||||||
|
|
||||||
yum install libxslt-devel
|
yum install libxslt-devel
|
||||||
yum install pam-devel
|
yum install pam-devel
|
||||||
|
```
|
||||||
If building repmgr as a regular user, then doing the install into the system
|
If building repmgr as a regular user, then doing the install into the system
|
||||||
directories using sudo, the syntax is hard. ``pg_config`` won't be in root's
|
directories using sudo, the syntax is hard. ``pg_config`` won't be in root's
|
||||||
path either. The following recipe should work::
|
path either. The following recipe should work:
|
||||||
|
```
|
||||||
sudo PATH="/usr/pgsql-9.0/bin:$PATH" make USE_PGXS=1 install
|
sudo PATH="/usr/pgsql-9.0/bin:$PATH" make USE_PGXS=1 install
|
||||||
|
```
|
||||||
|
|
||||||
Issues with 32 and 64 bit RPMs
|
Issues with 32 and 64 bit RPMs
|
||||||
------------------------------
|
------------------------------
|
||||||
@@ -39,16 +41,18 @@ If when building, you receive a series of errors of this form::
|
|||||||
/usr/bin/ld: skipping incompatible /usr/pgsql-9.0/lib/libpq.so when searching for -lpq
|
/usr/bin/ld: skipping incompatible /usr/pgsql-9.0/lib/libpq.so when searching for -lpq
|
||||||
|
|
||||||
This is likely because you have both the 32 and 64 bit versions of the
|
This is likely because you have both the 32 and 64 bit versions of the
|
||||||
``postgresql90-devel`` package installed. You can check that like this::
|
``postgresql90-devel`` package installed. You can check that like this:
|
||||||
|
|
||||||
|
```
|
||||||
rpm -qa --queryformat '%{NAME}\t%{ARCH}\n' | grep postgresql90-devel
|
rpm -qa --queryformat '%{NAME}\t%{ARCH}\n' | grep postgresql90-devel
|
||||||
|
```
|
||||||
|
|
||||||
And if two packages appear, one for i386 and one for x86_64, that's not supposed
|
And if two packages appear, one for i386 and one for x86_64, that's not supposed
|
||||||
to be allowed.
|
to be allowed.
|
||||||
|
|
||||||
This can happen when using the PGDG repo to install that package;
|
This can happen when using the PGDG repo to install that package;
|
||||||
here is an example sessions demonstrating the problem case appearing::
|
here is an example sessions demonstrating the problem case appearing:
|
||||||
|
```
|
||||||
# yum install postgresql-devel
|
# yum install postgresql-devel
|
||||||
..
|
..
|
||||||
Setting up Install Process
|
Setting up Install Process
|
||||||
@@ -66,6 +70,7 @@ here is an example sessions demonstrating the problem case appearing::
|
|||||||
Installing:
|
Installing:
|
||||||
postgresql90-devel i386 9.0.2-2PGDG.rhel5 pgdg90 1.5 M
|
postgresql90-devel i386 9.0.2-2PGDG.rhel5 pgdg90 1.5 M
|
||||||
postgresql90-devel x86_64 9.0.2-2PGDG.rhel5 pgdg90 1.6 M
|
postgresql90-devel x86_64 9.0.2-2PGDG.rhel5 pgdg90 1.6 M
|
||||||
|
```
|
||||||
|
|
||||||
Note how both the i386 and x86_64 platform architectures are selected for
|
Note how both the i386 and x86_64 platform architectures are selected for
|
||||||
installation. Your main PostgreSQL package will only be compatible with one of
|
installation. Your main PostgreSQL package will only be compatible with one of
|
||||||
@@ -73,10 +78,12 @@ those, and if the repmgr build finds the wrong postgresql90-devel these
|
|||||||
"skipping incompatible" messages appear.
|
"skipping incompatible" messages appear.
|
||||||
|
|
||||||
In this case, you can temporarily remove both packages, then just install the
|
In this case, you can temporarily remove both packages, then just install the
|
||||||
correct one for your architecture. Example::
|
correct one for your architecture. Example:
|
||||||
|
|
||||||
|
```
|
||||||
rpm -e postgresql90-devel --allmatches
|
rpm -e postgresql90-devel --allmatches
|
||||||
yum install postgresql90-devel-9.0.2-2PGDG.rhel5.x86_64
|
yum install postgresql90-devel-9.0.2-2PGDG.rhel5.x86_64
|
||||||
|
```
|
||||||
|
|
||||||
Instead just deleting the package from the wrong platform might not leave behind
|
Instead just deleting the package from the wrong platform might not leave behind
|
||||||
the correct files, due to the way in which these accidentally happen to interact.
|
the correct files, due to the way in which these accidentally happen to interact.
|
||||||
@@ -94,14 +101,18 @@ called ``postgresql-server-dev-$version``.
|
|||||||
|
|
||||||
When building repmgr against a Debian packages build, you may discover that some
|
When building repmgr against a Debian packages build, you may discover that some
|
||||||
development packages are needed as well. You will need the following development
|
development packages are needed as well. You will need the following development
|
||||||
packages installed::
|
packages installed:
|
||||||
|
|
||||||
|
```
|
||||||
sudo apt-get install libxslt-dev libxml2-dev libpam-dev libedit-dev
|
sudo apt-get install libxslt-dev libxml2-dev libpam-dev libedit-dev
|
||||||
|
```
|
||||||
|
|
||||||
If you're using Debian packages for PostgreSQL and are building repmgr with the
|
If you're using Debian packages for PostgreSQL and are building repmgr with the
|
||||||
USE_PGXS option you also need to install the corresponding development package::
|
USE_PGXS option you also need to install the corresponding development package:
|
||||||
|
|
||||||
|
```
|
||||||
sudo apt-get install postgresql-server-dev-9.0
|
sudo apt-get install postgresql-server-dev-9.0
|
||||||
|
```
|
||||||
|
|
||||||
If you build and install repmgr manually it will not be on the system path. The
|
If you build and install repmgr manually it will not be on the system path. The
|
||||||
binaries will be installed in /usr/lib/postgresql/$version/bin/ which is not on
|
binaries will be installed in /usr/lib/postgresql/$version/bin/ which is not on
|
||||||
@@ -110,14 +121,17 @@ multiple installed versions of PostgreSQL on the same system through a wrapper
|
|||||||
called pg_wrapper and repmgr is not (yet) known to this wrapper.
|
called pg_wrapper and repmgr is not (yet) known to this wrapper.
|
||||||
|
|
||||||
You can solve this in many different ways, the most Debian like is to make an
|
You can solve this in many different ways, the most Debian like is to make an
|
||||||
alternate for repmgr and repmgrd::
|
alternate for repmgr and repmgrd:
|
||||||
|
|
||||||
|
```
|
||||||
sudo update-alternatives --install /usr/bin/repmgr repmgr /usr/lib/postgresql/9.0/bin/repmgr 10
|
sudo update-alternatives --install /usr/bin/repmgr repmgr /usr/lib/postgresql/9.0/bin/repmgr 10
|
||||||
sudo update-alternatives --install /usr/bin/repmgrd repmgrd /usr/lib/postgresql/9.0/bin/repmgrd 10
|
sudo update-alternatives --install /usr/bin/repmgrd repmgrd /usr/lib/postgresql/9.0/bin/repmgrd 10
|
||||||
|
```
|
||||||
|
|
||||||
You can also make a deb package of repmgr using::
|
You can also make a deb package of repmgr using:
|
||||||
|
```
|
||||||
make USE_PGXS=1 deb
|
make USE_PGXS=1 deb
|
||||||
|
```
|
||||||
|
|
||||||
This will build a Debian package one level up from where you build, normally the
|
This will build a Debian package one level up from where you build, normally the
|
||||||
same directory that you have your repmgr/ directory in.
|
same directory that you have your repmgr/ directory in.
|
||||||
|
|||||||
Reference in New Issue
Block a user