-
Notifications
You must be signed in to change notification settings - Fork 14
Description
o/
I'am install postgresql-14 and all dev packages from default repository.
But i get compilation errors.
# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
# apt search postgresql-server-dev-all
Sorting... Done
Full Text Search... Done
postgresql-server-dev-all/jammy,now 238 amd64 [installed]
extension build tool for multiple PostgreSQL versions
# make USE_PGXS=1
---snipped---
make[1]: Entering directory '/root/pg_statsinfo/agent'
make[2]: Entering directory '/root/pg_statsinfo/agent/bin'
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer pg_statsinfod.o autovacuum.o checkpoint.o collector.o collector_wait_sampling.o logger.o logger_send.o logger_common.o logger_in.o logger_out.o maintenance.o snapshot.o writer.o pg_control.o pgut/pgut.o pgut/pgut-list.o pgut/pgut-pthread.o -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now -L/usr/lib/llvm-14/lib -Wl,--as-needed -L/usr/lib/x86_64-linux-gnu -lpq -lpthread -lpgcommon -lpgport -o pg_statsinfod
/usr/bin/ld: cannot find -lpgcommon: No such file or directory
/usr/bin/ld: cannot find -lpgport: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [/usr/lib/postgresql/14/lib/pgxs/src/makefiles/pgxs.mk:475: pg_statsinfod] Error 1
make[2]: Leaving directory '/root/pg_statsinfo/agent/bin'
make[1]: *** [Makefile:9: all] Error 2
make[1]: Leaving directory '/root/pg_statsinfo/agent'
make: *** [Makefile:36: all] Error 2
libpgcommon.a and libpgport.a libraries are static and presents, but i'am not find headers files for them.
pg_stats_reporter and pg_store_plans compile without problems.
what am I doing wrong ?
thank you very much!