Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yurinek opened this issue Mar 5, 2019 · 1 comment

Comments

@yurinek
Copy link

yurinek commented Mar 5, 2019

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

@devsschmidt
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants