json - 致命错误: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
有什么方法可以避免/修复错误?该错误表明该文件不存在。但是,我怎样才能让这个文件使它工作。
解决方案
推荐阅读
- javascript - 在 React Native 中渲染网格/数独板
- python - 获取和发布 Django formset 时的问题
- php - array_intersect() 与 php 中的二维数组
- inner-join - 为什么加号处出现 INNER JOIN 错误?
- python - 使用 Amadeus Airport Search 自动完成 API 时出现 503:“服务不可用”
- r - 在 R 中绘制似然函数、先验分布和后验分布
- c++ - 向量后推在构造函数类内部不起作用
- python - 从 2gb .csv 文件中的 json 提取值的最佳方法
- watson-assistant - 关于如何在 IBM Watson Assistant 中将数字格式化为货币的建议
- javascript - 在 JSON 中存储样式值的最佳方式