Не удалось установить pglogical на osx
Я не могу найти много информации в сети для установки pglocical на osx. Поэтому я попытался построить его, следуя инструкции на:
https://github.com/2ndQuadrant/pglogical
выход:
MacBook-Air:pglogical vao$ ll /usr/local/bin/pg_config
lrwxr-xr-x 1 vao admin 40 Feb 9 2017 /usr/local/bin/pg_config -> ../Cellar/postgresql/9.6.1/bin/pg_config
MacBook-Air:pglogical vao$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin/
MacBook-Air:pglogical vao$ pwd
/Users/vao/pglogical
MacBook-Air:pglogical vao$ make USE_PGXS=1
pglogical_apply.o pglogical_conflict.o pglogical_manager.o pglogical.o pglogical_node.o pglogical_relcache.o pglogical_repset.o pglogical_rpc.o pglogical_functions.o pglogical_queue.o pglogical_fe.o pglogical_worker.o pglogical_sync.o pglogical_sequences.o pglogical_executor.o pglogical_dependency.o pglogical_apply_heap.o pglogical_apply_spi.o pglogical_output_config.o pglogical_output_plugin.o pglogical_output_proto.o pglogical_proto_json.o pglogical_proto_native.o /compatPostgreSQL 96/pglogical_compat.o
sed 's/__PGLOGICAL_VERSION__/2.0.0/;s/__REQUIRES__//' /Users/vao/pglogical/pglogical.control.in > /Users/vao/pglogical/pglogical.control
clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -I/usr/local/Cellar/postgresql/9.6.1/include -I -I. -I./ -I/usr/local/Cellar/postgresql/9.6.1/include/server -I/usr/local/Cellar/postgresql/9.6.1/include/internal -I/usr/local/opt/openssl/include -I/usr/local/opt/readline/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 -c -o pglogical_apply.o pglogical_apply.c
In file included from pglogical_apply.c:62:
In file included from ./pglogical_conflict.h:22:
In file included from ./pglogical_proto_native.h:20:
./pglogical_output_plugin.h:20:10: fatal error: 'pglogical_compat.h' file not found
#include "pglogical_compat.h"
^~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [pglogical_apply.o] Error 1
не уверен, что эта информация является относительной, и ошибка, которую я получаю, зависит от компилятора, но:
MacBook-Air:pglogical vao$ gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
версия для OSX:
MacBook-Air:pglogical vao$ system_profiler SPSoftwareDataType | sed '5,6!d'
System Version: macOS 10.12.4 (16E195)
Kernel Version: Darwin 16.5.0