OSGeo / homebrew-osgeo4mac

Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
https://git.io/fhh3X
BSD 3-Clause "New" or "Revised" License
363 stars 111 forks source link

SAGA Installation #417

Closed topographos closed 6 years ago

topographos commented 6 years ago

Hi, Its my first attempt to install SAGA GIS using homebrew on OS HIgh Sierra 10.13.5. After running a command brew install saga-gis --with-app the process is interrupted with the following error:

./configure: line 16489: syntax error near unexpected token DXFLIB,' ./configure: line 16489: PKG_CHECK_MODULES(DXFLIB, dxflib, LIBDXFFOUND=1,LIBDXFFOUND=0)'

I will appreciate any help

Michal

full extract:

Michals-MacBook-Air:~ michal$ brew install saga-gis --with-app
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask, osgeo/osgeo4mac).
==> Updated Formulae
clamav          e2fsprogs       hugo            shairport-sync  u-boot-tools
clingo          fn              libuv           sshguard        yaz
coq             go-statik       math-comp       terragrunt      youtube-dl
dnscrypt-proxy  goreleaser      mvtools         tor
dovecot         hadolint        odpi            tox

==> Installing saga-gis from osgeo/osgeo4mac
==> Downloading https://downloads.sourceforge.net/project/saga-gis/SAGA%20-%206/
Already downloaded: /Users/michal/Library/Caches/Homebrew/saga-gis-6.3.0.tar.gz
==> autoreconf -i
==> ./configure --prefix=/usr/local/Cellar/saga-gis/6.3.0 --disable-openmp --dis
Last 15 lines from /Users/michal/Library/Logs/Homebrew/saga-gis/02.configure:
checking how to hardcode library paths into programs... immediate
checking for cvGetRows in -lopencv_core... no
checking for Set_Mercator_Coordinates in -lgeotrans... no
checking for fftw_execute in -lfftw3... yes
checking for LAS_GetVersion in -llas... no
checking for HPDF_Pages_New in -lhpdf... yes
checking for SQLFetch in -lodbc... yes
checking for pj_is_latlong in -lproj... yes
checking for VIGRA_RGBE_ReadPixels_Raw in -lvigraimpex... no
checking for omp_get_num_threads in -lgomp... no
checking libsvm/svm.h usability... no
checking libsvm/svm.h presence... no
checking for libsvm/svm.h... no
./configure: line 16489: syntax error near unexpected token `DXFLIB,'
./configure: line 16489: `PKG_CHECK_MODULES(DXFLIB, dxflib, LIBDXFFOUND=1,LIBDXFFOUND=0)'
nickrobison commented 6 years ago

@topographos Sorry to hear you're having issues. I believe the problem is due to pkg-config not being installed. I've updated the formula to add it as a build dependency. Please give it another go and let me know if you're still encountering issues.

topographos commented 6 years ago

No worries, I appreciate your hard work. The solution worked and the installation was successful Thank you