версия pg 10.10 $ sudo apt update
$ sudo apt install postgresql postgresql-contrib
$ sudo apt install postgresql-server-dev-10
$ sudo pg_dropcluster --stop 10 main
$ sudo pg_createcluster --locale ru_RU.UTF-8 10 main -- --data-checksums
$ sudo pg_ctlcluster 10 main start
$ sudo systemctl status postgresql.service
$ sudo -u postgres psql -U postgres -c "alter user postgres with password 'pass';"
$ sudo cp /etc/postgresql/10/main/postgresql.conf /etc/postgresql/10/main/postgresql.conf.bak
$ wget https://ftp.postgresql.org/pub/source/v10.10/postgresql-10.10.tar.bz2
$ tar xvzf 2.2.0.tar.gz
$ tar xvjf postgresql-10.10.tar.bz2
$ sudo find / -name "pg_config" -print
/usr/bin/pg_config
/usr/lib/postgresql/10/bin/pg_config
$ cd pg_probackup-2.2.0
##PG_CONFIG=/usr/bin/pg_config
##top_srcdir=/home/user/postgresql-10.10
##make USE_PGXS=1 PG_CONFIG=<path_to_pg_config> top_srcdir=<path_to_PostgreSQL_source_tree>
$ sudo apt install make
$ sudo apt install gcc
$ sudo apt install libkrb5-dev
$ sudo apt-get install libssl-dev
$ sudo apt-get install libz-dev
$ make USE_PGXS=1 PG_CONFIG=/usr/bin/pg_config top_srcdir=/home/user/postgresql-10.10
Начало просить:
/usr/bin/ld: cannot find -lselinux
/usr/bin/ld: cannot find -lxslt
/usr/bin/ld: cannot find -lxml2
/usr/bin/ld: cannot find -lpam
/usr/bin/ld: cannot find -ledit
Короче собрать не смог.
Комментариев нет:
Отправить комментарий