eulerto / pgquarrel

pgquarrel compares PostgreSQL database schemas (DDL)
BSD 3-Clause "New" or "Revised" License
389 stars 42 forks source link

could not find libpgport.a #71

Closed cuckooM closed 4 years ago

cuckooM commented 4 years ago

install pgquarrel failed on CentOS

# cat /etc/*release
CentOS Linux release 7.6.1810 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.6.1810 (Core) 
CentOS Linux release 7.6.1810 (Core)

# cmake -DCMAKE_PREFIX_PATH=/usr/pgsql-9.6 .
-- The C compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
pg_config: /usr/pgsql-9.6/bin/pg_config
CMake Error at CMakeLists.txt:129 (message):
  could not find libpgport.a

-- Configuring incomplete, errors occurred!
See also "/root/eulerto-pgquarrel-ad1c3e4/CMakeFiles/CMakeOutput.log".
eulerto commented 4 years ago

@mengbin16It seems you don't have postgresql96-devel.

eulerto commented 4 years ago

It seems recent commit ecb4530e68e6b99099fc8be7c9fe5b496bb61155 fixed it.