我目前正在尝试从Github编译 pipeline_kafka扩展程序,将其添加到我的pipelinedb实例中,但我遇到的问题既不是谷歌也不是google似乎能够解决。
当我执行make命令时,我收到以下错误
stc @ vm:〜/ pipeline_kafka $ make gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing - fwrapv -fexcess-precision =标准-g -g -O2 -fstack-protector-strong -Wformat -Werror = format-security -I / usr / include / mit-krb5 -fPIC -pie -DLINUX_OOM_SCORE_ADJ = 0 -fno-omit- frame-pointer -fpic -I。 -I./ -I / usr / include / postgresql / 9.4 / server -I / usr / include / postgresql / internal -D_FORTIFY_SOURCE = 2 -D_GNU_SOURCE -I / usr / include / libxml2 -I / usr / include / tcl8.6 -c -o pipeline_kafka.o pipeline_kafka.c pipeline_kafka.c:23:40:致命错误:catalog / pipeline_stream_fn.h:没有这样的文件或目录#include" catalog / pipeline_stream_fn.h" ^编译终止。 :目标配方' pipeline_kafka.o'失败了:*** [pipeline_kafka.o]错误1
有没有人知道该怎么办?我正在使用debian 8。
有谁知道为什么这个扩展不再是pipelinedb的一部分了?
欢呼并提前致谢
答案 0 :(得分:1)
错误的原因是我使用/安装pipelinedb和pipeline_kafka的整个方法。
以下脚本在标准的Debian 8安装上为我工作。也许有帮助。
wget -O pipelinedb_install_package "https://www.pipelinedb.com/download/0.9.1/debian8"
sudo dpkg -i pipelinedb_install_package
mkdir ~/logs
pipeline-init -D ~/data/pipelinedb
pipeline-ctl -D ~/data/pipelinedb -l ~/logs/pipelinedb.log start
sleep 5.0
pipeline pipeline
sudo apt-get install git gcc g++ zlib1g-dev
mkdir ~/git
git clone https://github.com/edenhill/librdkafka.git ~/git/librdkafka
git clone https://github.com/pipelinedb/pipeline_kafka.git >~/git/pipeline_kafka
cd ~/git/librdkafka
./configure --prefix=/usr
make
sudo make install
cd ~/git/pipeline_kafka
./configure
make
sudo make install
pipeline pipeline -c "CREATE EXTENSION pipeline_kafka;"
sed -i 's/#shared_preload_libraries/shared_preload_libraries/' ~/data/pipelinedb/pipelinedb.conf
sed -i "s/shared_preload_libraries = ''/shared_preload_libraries=pipeline_kafka/" ~/data/pipelinedb/pipelinedb.conf