Help installing lwgeom on macOS

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Help installing lwgeom on macOS

Kent Johnson
I am trying to install lwgeom 0.1-4 from source on macOS 10.13.3.

First try:
R CMD INSTALL lwgeom_0.1-4.tar.gz
...
checking for geos-config... no
no
configure: error: geos-config not found or not executable.

Second try:
R CMD INSTALL lwgeom_0.1-4.tar.gz
--configure-args='-with-geos-config=/Library/Frameworks/GEOS.framework/Versions/3/unix/bin/geos-config'
...
configure: geos-config set to
/Library/Frameworks/GEOS.framework/Versions/3/unix/bin/geos-config
checking geos-config exists... yes
checking geos-config executable... yes
checking geos-config usability... yes
configure: GEOS: 3.6.1
checking GEOS version >= 3.3.0... yes
checking geos_c.h usability... no
checking geos_c.h presence... no
checking for geos_c.h... no
configure: error: geos_c.h not found in given locations.

I do have liblwgeom installed as part of Postgres.app. I have tried adding
--with-liblwgeom=/Applications/Postgres.app/Contents/Versions/10/lib/liblwgeom-2.4.0.dylib
to --configure-args with the same failure.

I have the framework version of GEOS installed from kyngchaos and tried
adding
--configure-vars='CPPFLAGS=-I/Library/Frameworks/GEOS.framework/Versions/3/Headers'
with the same failure.

I don't really know what I'm doing here so any help is appreciated. FWIW
I'm installing lwgeom to get access to the st_make_valid() function.

Thank you!
Kent Johnson

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: Help installing lwgeom on macOS

Kent Johnson
This seems to work:

R CMD INSTALL lwgeom_0.1-4.tar.gz
--configure-args='-with-geos-config=/Library/Frameworks/GEOS.framework/Versions/3/unix/bin/geos-config
--with-liblwgeom=/Applications/Postgres.app/Contents/Versions/10/lib/liblwgeom-2.4.0.dylib'
--configure-vars='PKG_CPPFLAGS="-I/Library/Frameworks/GEOS.framework/Versions/3/unix/include
-I/Library/Frameworks/PROJ.framework/Versions/4/unix/include"' -d

Kent

On Sun, Feb 25, 2018 at 2:33 PM, Kent Johnson <[hidden email]> wrote:

> I am trying to install lwgeom 0.1-4 from source on macOS 10.13.3.
>
> First try:
> R CMD INSTALL lwgeom_0.1-4.tar.gz
> ...
> checking for geos-config... no
> no
> configure: error: geos-config not found or not executable.
>
> Second try:
> R CMD INSTALL lwgeom_0.1-4.tar.gz --configure-args='-with-geos-
> config=/Library/Frameworks/GEOS.framework/Versions/3/unix/bin/geos-config'
> ...
> configure: geos-config set to /Library/Frameworks/GEOS.
> framework/Versions/3/unix/bin/geos-config
> checking geos-config exists... yes
> checking geos-config executable... yes
> checking geos-config usability... yes
> configure: GEOS: 3.6.1
> checking GEOS version >= 3.3.0... yes
> checking geos_c.h usability... no
> checking geos_c.h presence... no
> checking for geos_c.h... no
> configure: error: geos_c.h not found in given locations.
>
> I do have liblwgeom installed as part of Postgres.app. I have tried adding
> --with-liblwgeom=/Applications/Postgres.app/Contents/Versions/10/lib/
> liblwgeom-2.4.0.dylib
> to --configure-args with the same failure.
>
> I have the framework version of GEOS installed from kyngchaos and tried
> adding
> --configure-vars='CPPFLAGS=-I/Library/Frameworks/GEOS.
> framework/Versions/3/Headers'
> with the same failure.
>
> I don't really know what I'm doing here so any help is appreciated. FWIW
> I'm installing lwgeom to get access to the st_make_valid() function.
>
> Thank you!
> Kent Johnson
>

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: Help installing lwgeom on macOS

Patrick Schratz
In reply to this post by Kent Johnson
Hi Kent,

brew install geos && brew install postgis (for lwgeom) works for me.

On Feb 25 2018, at 8:33 pm, Kent Johnson <[hidden email]> wrote:

>
> I am trying to install lwgeom 0.1-4 from source on macOS 10.13.3.
> First try:
> R CMD INSTALL lwgeom_0.1-4.tar.gz
> ...
> checking for geos-config... no
> no
> configure: error: geos-config not found or not executable.
>
> Second try:
> R CMD INSTALL lwgeom_0.1-4.tar.gz
> --configure-args='-with-geos-config=/Library/Frameworks/GEOS.framework/Versions/3/unix/bin/geos-config'
> ...
> configure: geos-config set to
> /Library/Frameworks/GEOS.framework/Versions/3/unix/bin/geos-config
> checking geos-config exists... yes
> checking geos-config executable... yes
> checking geos-config usability... yes
> configure: GEOS: 3.6.1
> checking GEOS version >= 3.3.0... yes
> checking geos_c.h usability... no
> checking geos_c.h presence... no
> checking for geos_c.h... no
> configure: error: geos_c.h not found in given locations.
>
> I do have liblwgeom installed as part of Postgres.app. I have tried adding
> --with-liblwgeom=/Applications/Postgres.app/Contents/Versions/10/lib/liblwgeom-2.4.0.dylib
> to --configure-args with the same failure.
>
> I have the framework version of GEOS installed from kyngchaos and tried
> adding
> --configure-vars='CPPFLAGS=-I/Library/Frameworks/GEOS.framework/Versions/3/Headers'
> with the same failure.
>
> I don't really know what I'm doing here so any help is appreciated. FWIW
> I'm installing lwgeom to get access to the st_make_valid() function.
>
> Thank you!
> Kent Johnson
>
> [[alternative HTML version deleted]]
> _______________________________________________
> R-sig-Geo mailing list
> [hidden email]
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>


        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo