GithubHelp home page GithubHelp logo

Comments (2)

jaiminpan avatar jaiminpan commented on August 31, 2024

please make sure the command 'pg_config' works

from pg_jieba.

leeyisoft avatar leeyisoft commented on August 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.