首页 > 解决方案 > 致命错误:utils/jsonb.h:没有这样的文件或目录

问题描述

我正在使用此文档在 postgres 中尝试 ZSON 压缩:https ://sudonull.com/post/77435-ZSON-PostgreSQL-extension-for-transparent-JSONB-compression 。但是,在运行 make 时出现以下错误:

     sudo make install
     gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -- 
     param=ssp- 
     buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DLINUX_OOM_SCORE_ADJ=0 -Wall -Wmissing- 
     prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format- 
     attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -fPIC -g - 
     O2 -I. -I. -I/usr/include/pgsql/server -I/usr/include/pgsql/internal -D_GNU_SOURCE - 
     I/usr/include/libxml2   -c -o zson.o zson.c
     zson.c:6:25: fatal error: utils/jsonb.h: No such file or directory
    #include <utils/jsonb.h>
                     ^
    compilation terminated.
    make: *** [zson.o] Error 1

有什么方法可以避免/修复错误?该错误表明该文件不存在。但是,我怎样才能让这个文件使它工作。

标签: jsondatabasepostgresqlcompression

解决方案


推荐阅读