2ndQuadrant / pglogical

Logical Replication extension for PostgreSQL 17, 16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4 (Postgres), providing much faster replication than Slony, Bucardo or Londiste, as well as cross-version upgrades.
http://2ndquadrant.com/en/resources/pglogical/
Other
1.01k stars 153 forks source link

Tried to compile on Gentoo Linux with Postgres 9.4.4. pglogical_output worked but pglogical failed. #2

Closed bryanconlon closed 8 years ago

bryanconlon commented 8 years ago
86_64-pc-linux-gnu-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -march=native -O2 -pipe -fpic pglogical_create_subscriber.o pglogical_fe.o -L/usr/lib64/postgresql-9.4/lib64 -Wl,-O1 -Wl,--as-needed  -Wl,--as-needed -Wl,-rpath,'/usr/lib64/postgresql-9.4/lib64',--enable-new-dtags -Wl,-O1 -Wl,--as-needed -L/usr/lib64/postgresql-9.4/lib64 -lpgcommon -lpgport -L/usr/lib64/postgresql-9.4/lib64 -lpq -lpgcommon -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lz -lreadline -lrt -lcrypt -ldl -lm  -o pglogical_create_subscriber
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpgcommon
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpgport
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpgcommon
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpgport
collect2: error: ld returned 1 exit status
Makefile:73: recipe for target 'pglogical_create_subscriber' failed
make: *** [pglogical_create_subscriber] Error 1
ringerc commented 8 years ago

There's not enough information to go on here.

pglogical version?

make command?

PATH environment version?

How PostgreSQL was installed from from where?

pgxs should be ensuring that the PostgreSQL libraries are on the linker path, assuming you compiled with USE_PGXS=1. If you didn't you'd get errors like in #1 . So I have to guess you've done something different, possibly using some Gentoo packaging or script.

If you continue to have this issue please file a new issue here with more details.