Comments (2)
please make sure the command 'pg_config' works
from pg_jieba.
please make sure the command 'pg_config' works
如何确认 command 'pg_config' works 呢?
我执行了如下命令:
# for https://github.com/jaiminpan/pg_jieba
RUN \
apt update && \
apt upgrade -y -V && \
apt install -y -V git && \
apt install -y -V cmake && \
apt install -y -V libpq-dev && \
apt install -y -V build-essential && \
git clone https://github.com/jaiminpan/pg_jieba && \
cd pg_jieba && git submodule update --init --recursive && \
mkdir build && cd build
我现在在 posgis 做的 docker 里面 postgres:15-bullseye 编译 (https://github.com/postgis/docker-postgis/blob/master/15-3.3/Dockerfile) 遇到如下错误:
mkdir build && cd build
root@353c06e89d60:~/pg_jieba/build#
root@353c06e89d60:~/pg_jieba/build# cmake -DCMAKE_CXX_FLAGS="-Wall -std=c++11" -DCMAKE_PREFIX_PATH=/usr/lib/postgresql -DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql/15/server/ ..
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting pg_jieba build type -
-- Found PostgreSQL: /usr/lib/aarch64-linux-gnu/libpq.so (found version "15.3")
-- POSTGRESQL_EXECUTABLE is /usr/lib/postgresql/15/bin/postgres
-- Configuring done
-- Generating done
-- Build files have been written to: /root/pg_jieba/build
root@353c06e89d60:~/pg_jieba/build# make
Scanning dependencies of target pg_jieba
[ 33%] Building C object CMakeFiles/pg_jieba.dir/pg_jieba.c.o
/root/pg_jieba/pg_jieba.c:14:10: fatal error: postgres.h: No such file or directory
14 | #include "postgres.h"
| ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pg_jieba.dir/build.make:82: CMakeFiles/pg_jieba.dir/pg_jieba.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/pg_jieba.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
from pg_jieba.
Related Issues (20)
- Any tutorial or documentation regarding how to use it properly (create index)? HOT 2
- pg_dump备份数据备份不了pg_jieba HOT 2
- postgre11版支持吗 HOT 1
- pg11
- pg 11.5 不支持 HOT 10
- pg 10.10 不支持 HOT 7
- make 出错 HOT 1
- CentOS 7 + PostgreSQL 12,cmake失败 HOT 5
- Freebsd 12 + PostgreSQL 12, 编译后无法使用 HOT 1
- Space character (" ") on stop-word list acts like a separator instead of a character
- Postgresql 13下版本号问题 HOT 3
- centos7 + pg13, make: 未知的类型名‘sigjmp_buf’ HOT 1
- to_tsquery有没有办法精确搜索?
- ts_headline与预期结果不同
- 如何集成到greenplum
- postgres14 分词和预期结果不一致 HOT 5
- 在postgres14中使用jieba分词,ts_headline中将原文一些词给隐藏了 HOT 1
- 怎么支持postgresql版本15呢 HOT 2
- ubuntu 18 PG15 版本下无法编译 HOT 1
- 还维护吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg_jieba.