-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packages moved from testing to community #157
Comments
Thanks, it's work. configure: error: could not find libgeos_c - you may need to specify the directory of a geos-config file using --with-geosconfig Need help. Thanks |
Did you do it for both the Edit: I have done a decent amount of changes to my dockerfile, I had a similar issue that was fixed with #149 |
Yes, done for both. Also tried build with postgres:11 and got the same error configure: error: could not find libgeos_c - you may need to specify the directory of a geos-config file using --with-geosconfig http://i.imgur.com/XZCVk4F.png My Dockerfile: |
Just a few changes:
My dockerfile for postgres12-postgis3 looks like the following: FROM postgres:12-alpine
ENV POSTGIS_VERSION 3.0.0
ENV POSTGIS_SHA256 1c83fb2fc8870d36ed49859c49a12c8c4c8ae8c5c3f912a21a951c5bcc249123
RUN set -ex \
\
&& apk add --no-cache --virtual .fetch-deps ca-certificates openssl tar \
\
&& wget -O postgis.tar.gz "https://github.com/postgis/postgis/archive/$POSTGIS_VERSION.tar.gz" \
&& echo "$POSTGIS_SHA256 *postgis.tar.gz" | sha256sum -c - \
&& mkdir -p /usr/src/postgis \
&& tar \
--extract \
--file postgis.tar.gz \
--directory /usr/src/postgis \
--strip-components 1 \
&& rm postgis.tar.gz \
\
&& apk add --no-cache --virtual .build-deps \
autoconf automake json-c-dev libtool libxml2-dev make perl \
\
&& apk add --no-cache --virtual .build-deps-edge \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
g++ gdal-dev geos-dev proj-dev protobuf-c-dev \
&& cd /usr/src/postgis \
&& ./autogen.sh \
&& ./configure \
&& make \
&& make install \
&& apk add --no-cache --virtual .postgis-rundeps \
json-c \
&& apk add --no-cache --virtual .postgis-rundeps-edge \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
geos gdal proj protobuf-c libstdc++ \
&& cd / \
&& rm -rf /usr/src/postgis \
&& apk del .fetch-deps .build-deps .build-deps-edge
|
GammaGames - Your build got much further, I am getting the following error now during the build. /usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2 -I../liblwgeom -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros -I../libpgcommon -I../deps/wagyu -I../deps/uthash/include -I/usr/include -I/usr/include/libxml2 -I/usr/include/json-c -fPIC -DPIC -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o postgis_module.bc postgis_module.c Any thoughts? |
@gijoe460 Try adding an |
I'm following your build exactly for now. Once i get it working i have some local files/config i do. |
Your error message looks like clang is missing, did you try adding it as I said above? |
Yes. Looks like we got a little farther along, Still a new error. cd '/usr/local/lib/postgresql/bitcode' && /usr/lib/llvm8/bin/llvm-lto -thinlto -thinlto-action=thinlink -o postgis-3.index.bc postgis-3/postgis_module.bc postgis-3/lwgeom_accum.bc postgis-3/lwgeom_spheroid.bc postgis-3/lwgeom_ogc.bc postgis-3/lwgeom_functions_analytic.bc postgis-3/lwgeom_inout.bc postgis-3/lwgeom_functions_basic.bc postgis-3/lwgeom_btree.bc postgis-3/lwgeom_box.bc postgis-3/lwgeom_box3d.bc postgis-3/lwgeom_geos.bc postgis-3/lwgeom_geos_prepared.bc postgis-3/lwgeom_geos_clean.bc postgis-3/lwgeom_geos_relatematch.bc postgis-3/lwgeom_export.bc postgis-3/lwgeom_in_gml.bc postgis-3/lwgeom_in_kml.bc postgis-3/lwgeom_in_geohash.bc postgis-3/lwgeom_in_geojson.bc postgis-3/lwgeom_in_encoded_polyline.bc postgis-3/lwgeom_triggers.bc postgis-3/lwgeom_dump.bc postgis-3/lwgeom_dumppoints.bc postgis-3/lwgeom_functions_lrs.bc postgis-3/lwgeom_functions_temporal.bc postgis-3/lwgeom_rectree.bc postgis-3/long_xact.bc postgis-3/lwgeom_sqlmm.bc postgis-3/lwgeom_rtree.bc postgis-3/lwgeom_transform.bc postgis-3/lwgeom_window.bc postgis-3/gserialized_typmod.bc postgis-3/gserialized_gist_2d.bc postgis-3/gserialized_gist_nd.bc postgis-3/gserialized_supportfn.bc postgis-3/gserialized_spgist_2d.bc postgis-3/gserialized_spgist_3d.bc postgis-3/gserialized_spgist_nd.bc postgis-3/brin_2d.bc postgis-3/brin_nd.bc postgis-3/brin_common.bc postgis-3/gserialized_estimate.bc postgis-3/geography_inout.bc postgis-3/geography_btree.bc postgis-3/geography_centroid.bc postgis-3/geography_measurement.bc postgis-3/geography_measurement_trees.bc postgis-3/geometry_inout.bc postgis-3/postgis_libprotobuf.bc postgis-3/vector_tile.pb-c.bc postgis-3/geobuf.pb-c.bc postgis-3/mvt.bc postgis-3/lwgeom_out_mvt.bc postgis-3/geobuf.bc postgis-3/lwgeom_out_geobuf.bc postgis-3/lwgeom_out_geojson.bc postgis-3/postgis_legacy.bc |
I think I got it- Changes made to your Dockerfile
|
The previous Dockerfile for PostGIS builds would fail when trying to use libgeos. Using a Dockerfile from the official postgis repos helped resolves the issue and upgrades us to PostGIS 3.0.0. New Dockerfile based on the one found here: postgis/docker-postgis#157 (comment)
The previous Dockerfile for PostGIS builds would fail when trying to use libgeos. Using a Dockerfile from the official postgis repos helped resolves the issue. New Dockerfile based on the one found here: postgis/docker-postgis#157 (comment)
@GammaGames @Desa007 @gijoe460 I believe this is no longer an issue as of the current builds from the master branch can build v2.5.3 and will build v3.x as soon as some pending PRs are merged. Can you test/confirm? Thanks! |
I'll check today and get back. |
I just pulled the Edit: I tried to build both of the above packages, got:
|
@GammaGames when you try to build, are you invoking |
You're right, that worked. I can't seem to build any containers on the pi though, but that should be a separate issue. |
@GammaGames I think maybe issue #144 is tracking that, but I haven't look at it closely yet |
The previous Dockerfile for PostGIS builds would fail when trying to use libgeos. Using a Dockerfile from the official postgis repos helped resolves the issue. New Dockerfile based on the one found here: postgis/docker-postgis#157 (comment)
A handful of packages, namely
gdal-dev
,geos-dev
, andproj-dev
(and their non-dev dependencies) were moved fromtesting
tocommunity
. Changing theapk add
commands to use the correct repository,http://dl-cdn.alpinelinux.org/alpine/edge/community
, instead ofhttp://dl-cdn.alpinelinux.org/alpine/edge/testing
fixes the issues.This is likely because of something that was brought up in the mailing list, though I haven't been able to find any further discussion after that thread.
The text was updated successfully, but these errors were encountered: