This commit is contained in:
2026-11-02 16:53:59 +08:00
parent 841873418c
commit ca06c68d24
6 changed files with 53 additions and 8 deletions

View File

@@ -114,9 +114,6 @@ fi
# OPTIONS="${OPTIONS} --enable-dtrace"
if [ "$sysName" = "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}
LIB_DEPEND_DIR=`brew --prefix openssl@3`
OPTIONS="$OPTIONS --with-openssl=$LIB_DEPEND_DIR"
export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig

View File

@@ -71,6 +71,16 @@ Install_App()
cd ${postgreDir} && tar -jxvf ${postgreDir}/postgresql-${VERSION}.tar.bz2
fi
if [ "$sysName" = "Darwin" ];then
OPENSSL_DEPEND_DIR=`brew --prefix openssl@3`
OPTIONS="$OPTIONS --with-includes="${OPENSSL_DEPEND_DIR}/include""
OPTIONS="$OPTIONS --with-libraries="${OPENSSL_DEPEND_DIR}/lib""
LIB_DEPEND_DIR=`brew --prefix icu4c`
export PKG_CONFIG_PATH="${LIB_DEPEND_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH"
export PATH="${LIB_DEPEND_DIR}/bin:$PATH"
OPTIONS="$OPTIONS PKG_CONFIG_PATH="${LIB_DEPEND_DIR}/lib/pkgconfig""
fi
if [ ! -d $serverPath/postgresql ];then
cd ${postgreDir}/postgresql-${VERSION} && ./configure \

View File

@@ -70,7 +70,17 @@ Install_App()
cd ${postgreDir} && tar -jxvf ${postgreDir}/postgresql-${VERSION}.tar.bz2
fi
if [ "$sysName" = "Darwin" ];then
OPENSSL_DEPEND_DIR=`brew --prefix openssl@3`
OPTIONS="$OPTIONS --with-includes="${OPENSSL_DEPEND_DIR}/include""
OPTIONS="$OPTIONS --with-libraries="${OPENSSL_DEPEND_DIR}/lib""
LIB_DEPEND_DIR=`brew --prefix icu4c`
export PKG_CONFIG_PATH="${LIB_DEPEND_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH"
export PATH="${LIB_DEPEND_DIR}/bin:$PATH"
OPTIONS="$OPTIONS PKG_CONFIG_PATH="${LIB_DEPEND_DIR}/lib/pkgconfig""
fi
if [ ! -d $serverPath/postgresql ];then
cd ${postgreDir}/postgresql-${VERSION} && ./configure \
--prefix=$serverPath/postgresql \

View File

@@ -71,7 +71,16 @@ Install_App()
cd ${postgreDir} && tar -jxvf ${postgreDir}/postgresql-${VERSION}.tar.bz2
fi
if [ "$sysName" = "Darwin" ];then
OPENSSL_DEPEND_DIR=`brew --prefix openssl@3`
OPTIONS="$OPTIONS --with-includes="${OPENSSL_DEPEND_DIR}/include""
OPTIONS="$OPTIONS --with-libraries="${OPENSSL_DEPEND_DIR}/lib""
LIB_DEPEND_DIR=`brew --prefix icu4c`
export PKG_CONFIG_PATH="${LIB_DEPEND_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH"
export PATH="${LIB_DEPEND_DIR}/bin:$PATH"
OPTIONS="$OPTIONS PKG_CONFIG_PATH="${LIB_DEPEND_DIR}/lib/pkgconfig""
fi
if [ ! -d $serverPath/postgresql ];then

View File

@@ -71,6 +71,16 @@ Install_App()
cd ${postgreDir} && tar -jxvf ${postgreDir}/postgresql-${VERSION}.tar.bz2
fi
if [ "$sysName" = "Darwin" ];then
OPENSSL_DEPEND_DIR=`brew --prefix openssl@3`
OPTIONS="$OPTIONS --with-includes="${OPENSSL_DEPEND_DIR}/include""
OPTIONS="$OPTIONS --with-libraries="${OPENSSL_DEPEND_DIR}/lib""
LIB_DEPEND_DIR=`brew --prefix icu4c`
export PKG_CONFIG_PATH="${LIB_DEPEND_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH"
export PATH="${LIB_DEPEND_DIR}/bin:$PATH"
OPTIONS="$OPTIONS PKG_CONFIG_PATH="${LIB_DEPEND_DIR}/lib/pkgconfig""
fi
if [ ! -d $serverPath/postgresql ];then
cd ${postgreDir}/postgresql-${VERSION} && ./configure \

View File

@@ -74,19 +74,28 @@ Install_App()
cd ${postgreDir} && tar -jxvf ${postgreDir}/postgresql-${VERSION}.tar.bz2
fi
if [ "$sysName" = "Darwin" ];then
OPENSSL_DEPEND_DIR=`brew --prefix openssl@3`
OPTIONS="$OPTIONS --with-includes="${OPENSSL_DEPEND_DIR}/include""
OPTIONS="$OPTIONS --with-libraries="${OPENSSL_DEPEND_DIR}/lib""
LIB_DEPEND_DIR=`brew --prefix icu4c`
export PKG_CONFIG_PATH="${LIB_DEPEND_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH"
export PATH="${LIB_DEPEND_DIR}/bin:$PATH"
OPTIONS="$OPTIONS PKG_CONFIG_PATH="${LIB_DEPEND_DIR}/lib/pkgconfig""
fi
if [ ! -d $serverPath/postgresql ];then
cd ${postgreDir}/postgresql-${VERSION} && ./configure \
--prefix=$serverPath/postgresql \
--with-openssl \
$OPTIONS
# --with-pgport=33206
make -j${cpuCore} && make install && make clean
echo "cd ${postgreDir}/postgresql-${VERSION} && ./configure \
--prefix=$serverPath/postgresql \
--with-openssl"
# --with-pgport=33206
make -j${cpuCore} && make install && make clean
--with-openssl \
$OPTIONS"
fi
if [ -d $serverPath/postgresql ];then