[GRASS-dev] Error when compiling using homebrew - says liblas but is gdal???

Rainer M Krug Rainer at krugs.de
Wed Aug 5 09:12:07 PDT 2015


Mac OS X Yosemite, homebrew recipe.

,----
| Checking for gdal-config... /usr/local/opt/gdal/bin/gdal-config
| rm: conftest.dSYM: is a directory
| checking whether to use libLAS... yes
| checking for liblas-config... /usr/local/opt/liblas/bin/liblas-config
| configure: error: *** Unable to locate libLAS library.
`----

The config.log says:

,----
| ...
| onfigure:6164: checking whether to use libLAS
| configure:6181: checking for liblas-config
| configure:6238: clang -o conftest -g -O2     -I/usr/local/opt/gettext/include -I/usr/local/Cellar/liblas/1.8.0/include -I/usr/local/include -I/usr/local/include -I/usr/local/include   conftest.c  -L/usr/local/Cellar/liblas/1.8.0/lib -llas -llas_c -L/usr/local/lib /usr/local/lib/libboost_program_options-mt.dylib /usr/local/lib/libboost_thread-mt.dylib /usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib /usr/local/lib/libgeotiff.dylib /usr/local/lib/libtiff.dylib 1>&5
| clang: error: no such file or directory: '/usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib'
| configure: failed program was:
| #line 6231 "configure"
| #include "confdefs.h"
| #include <liblas/capi/liblas.h>
| int main() {
| LASReader_Create("foo");
| ; return 0; }
| configure:6253: clang -o conftest -g -O2     -I/usr/local/opt/gettext/include -I/usr/local/Cellar/liblas/1.8.0/include -I/usr/local/include -I/usr/local/include -I/usr/local/include   conftest.c  -L/usr/local/Cellar/liblas/1.8.0/lib -llas -llas_c -L/usr/local/lib /usr/local/lib/libboost_program_options-mt.dylib /usr/local/lib/libboost_thread-mt.dylib /usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib /usr/local/lib/libgeotiff.dylib /usr/local/lib/libtiff.dylib 1>&5
| clang: error: no such file or directory: '/usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib'
| configure: failed program was:
| #line 6246 "configure"
| #include "confdefs.h"
| #include <liblas/capi/liblas.h>
| int main() {
| LASReader_Create("foo");
| ; return 0; }
`----

So the error is somewhere in the config logic and gdal?

gdal is installed - but /usr/local/Cellar/gdal/1.11.2_2

The installation works when I install without liblas.

Any suggestions on how to proceed?

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer at krugs.de

Skype:      RMkrug

PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150805/1f183cd3/attachment.pgp>


More information about the grass-dev mailing list