Skip to content

Commit bf9a64f

Browse files
zhangeamonzhangeamon
authored andcommitted
chore(postgresql) support version 17
1 parent 88f5761 commit bf9a64f

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

stacks/postgresql/build.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,22 @@ function build() {
4242
libjson-c-dev \
4343
libproj-dev \
4444
libprotobuf-c-dev \
45-
protobuf-c-compiler
45+
protobuf-c-compiler \
46+
bison \
47+
flex
4648
echo "-----------------start buid postpostgres-------------"
4749
# postgresql
4850
curl -sSL "https://ftp.postgresql.org/pub/source/v${PG_VER}/postgresql-${PG_VER}.tar.gz" | tar -xz && \
4951
cd postgresql-"${PG_VER}" && \
5052
./configure \
5153
--prefix=/opt/drycc/postgresql/"${PG_MAJOR}" \
5254
--enable-integer-datetimes \
53-
--enable-thread-safety \
5455
--enable-tap-tests \
5556
--with-uuid=e2fs \
56-
--with-gnu-ld \
5757
--with-pgport=5432 \
5858
--with-system-tzdata=/usr/share/zoneinfo \
5959
--with-includes=/usr/local/include \
6060
--with-libraries=/usr/local/lib \
61-
--with-krb5 \
6261
--with-gssapi \
6362
--with-ldap \
6463
--with-pam \
@@ -73,16 +72,14 @@ function build() {
7372
--with-lz4 \
7473
&& \
7574
# we can change from world to world-bin in newer releases
76-
make world && \
77-
make install-world
75+
make world-bin && \
76+
make install-world-bin
7877
cd -
7978
# postgis
8079
echo "-----------------start buid postgis-------------"
8180
curl -sSL "https://download.osgeo.org/postgis/source/postgis-${POSTGIS_VERSION}.tar.gz" | tar -xz && \
8281
cd postgis-"${POSTGIS_VERSION}" && \
83-
./configure \
84-
--prefix="/opt/drycc/postgresql/${PG_MAJOR}/postgis/${POSTGIS_VERSION}" \
85-
--with-pgconfig=/opt/drycc/postgresql/"${PG_MAJOR}"/bin/pg_config \
82+
./configure --with-pgconfig=/opt/drycc/postgresql/"${PG_MAJOR}"/bin/pg_config \
8683
&& \
8784
make && \
8885
make install && \

0 commit comments

Comments
 (0)