pipelinedb / pipeline_kafka

PipelineDB extension for Kafka support
Other
61 stars 22 forks source link

Install for pg 11: pipeline_kafka.c:32:20: fatal error: config.h: No such file or directory #86

Open yurinek opened 5 years ago

yurinek commented 5 years ago

Hi , I try to install it for pg 11 on debian stretch. On 2 servers I got the same error.

My script:

sudo apt-get -y install git gcc g++ zlib1g-dev make postgresql-server-dev-${NEWVERSION}

mkdir ~/git

git config --global http.sslVerify false

git clone -b v0.11.6 https://github.com/edenhill/librdkafka.git ~/git/librdkafka git clone https://github.com/pipelinedb/pipeline_kafka.git ~/git/pipeline_kafka

cd ~/git/librdkafka bash configure --prefix=/usr make sudo make install

cd ~/git/pipeline_kafka bash configure make sudo make install

~/git/pipeline_kafka# make # outputs following errors: " gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -I/usr/include/postgresql -I/usr/include/postgresql/11/server/../pipelinedb -I. -I./ -I/usr/include/postgresql/11/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/mit-krb5 -c -o pipeline_kafka.o pipeline_kafka.c pipeline_kafka.c:32:20: fatal error: config.h: No such file or directory

include "config.h"

                ^

compilation terminated.

: recipe for target 'pipeline_kafka.o' failed make: *** [pipeline_kafka.o] Error 1 " this file is not there: -rw-r----- 1 root root 35358 Mar 5 15:24 LICENSE -rw-r----- 1 root root 648 Mar 5 15:24 Makefile -rw-r----- 1 root root 3976 Mar 5 15:24 README.md -rw-r----- 1 root root 949 Mar 5 15:24 circle.yml -rw-r----- 1 root root 7504 Mar 5 15:33 config.log -rwxr-x--- 1 root root 81373 Mar 5 15:24 configure -rw-r----- 1 root root 989 Mar 5 15:24 docker-compose.yml -rw-r----- 1 root root 3961 Mar 5 15:24 pipeline_kafka--1.0.0.sql -rw-r----- 1 root root 63920 Mar 5 15:24 pipeline_kafka.c -rw-r----- 1 root root 229 Mar 5 15:24 pipeline_kafka.control -rw-r----- 1 root root 430 Mar 5 15:24 pipeline_kafka.h drwxr-x--- 2 root root 4096 Mar 5 15:24 test any suggestions? thank you in advance! [kafka.log](https://github.com/pipelinedb/pipeline_kafka/files/2931551/kafka.log)
devsschmidt commented 5 years ago

the issue is that pipelinedb package has not been installed sudo apt install -y pipelinedb-postgresql-11 solved the problem