yum install http://repo.okay.com.mx/centos/7/x86_64/release/mariadb-connector-c-3.0.10-1.el7.x86_64.rpm
yum install http://repo.okay.com.mx/centos/7/x86_64/release/mariadb-connector-c-devel-3.0.10-1.el7.x86_64.rpm
检查头文件mariadb_com.h
# ll /usr/include/mysql/mariadb_com.h
-rw-r--r-- 1 root root 17284 May 4 2019 /usr/include/mysql/mariadb_com.h
su - omm
cd /opt/openGauss-server/
export CODE_BASE=`pwd`
export BINARYLIBS=`pwd`/binarylibs
export GAUSSHOME=/opt/og
export GCC_PATH=$BINARYLIBS/buildtools/centos7.6_x86_64/gcc7.3/
export CC=$GCC_PATH/gcc/bin/gcc
export CXX=$GCC_PATH/gcc/bin/g++
export LD_LIBRARY_PATH=$GAUSSHOME/lib:$GCC_PATH/gcc/lib64:$GCC_PATH/isl/lib:$GCC_PATH/mpc/lib/:$GCC_PATH/mpfr/lib/:$GCC_PATH/gmp/lib/:$LD_LIBRARY_PATH
export PATH=$GAUSSHOME/bin:$GCC_PATH/gcc/bin:$PATH
./configure --prefix=/opt/og \
--3rd=$BINARYLIBS \
--gcc-version=7.3.0 \
--with-readline \
--with-zlib \
--with-libxml \
--enable-mysql-fdw \
--enable-oracle-fdw \
--enable-thread-safety \
CC=g++ CFLAGS="-O2 -g3"
**Environment**:
- Version:
- OS (e.g. from /etc/os-release):
- Kernel (e.g. `uname -a`):
- Install tools:
- Others:
make
...
...
make[3]: Leaving directory `/opt/openGauss-server/contrib/postgres_fdw'
make -C ../../contrib/mysql_fdw all
make[3]: Entering directory `/opt/openGauss-server/contrib/mysql_fdw'
ERROR: You need fetch and copy mysql_fdw from 'third_party' repo to 'third_party_binarylibs' repo and keep directory strucutre unchanged
make[3]: *** [prep_checked] Error 1
make[3]: Leaving directory `/opt/openGauss-server/contrib/mysql_fdw'
make[2]: *** [../../contrib/mysql_fdw-recursive] Error 2
make[2]: Leaving directory `/opt/openGauss-server/src/gausskernel'
make[1]: *** [all-gausskernel-recurse] Error 2
make[1]: Leaving directory `/opt/openGauss-server/src'
make: *** [all-src-recurse] Error 2
提示错误信息: You need fetch and copy mysql_fdw from 'third_party' repo to 'third_party_binarylibs' repo and keep directory strucutre unchanged
编译环境:centos7.6 x86