[gdal-dev] GDAL build problems under Linux debian x86_64
Antonio Valentino
antonio.valentino at tiscali.it
Mon May 16 03:21:55 EDT 2011
Hi Josh,
Il giorno Mon, 16 May 2011 15:07:05 +0800
<Josh.Vote at csiro.au> ha scritto:
> Hi,
>
> I'm currently trying to build gdal trunk (rev 22377) on an amd64
> Linux (Debian) box and I keep getting an error whenever I try to run
> 'make'. See below for the output of make (./configure returned no
> obvious errors).
>
> (cd port; make)
> make[1]: Entering directory `/home/JoshVote/gdal/port'
> /bin/sh /home/JoshVote/gdal/libtool --mode=compile --tag=CXX g++ -g
> -O2 -Wall -DOGR_ENABLED -I/home/JoshVote/gdal/port
> -I../frmts/zlib -DHAVE_LIBZ -c -o cpl_conv.lo
> cpl_conv.cpp /home/JoshVote/gdal/libtool: 1656: preserve_args+= --tag
> CXX: not found eval: 1: base_compile+= g++: not found eval: 1:
> base_compile+= -g: not found eval: 1: base_compile+= -O2: not found
> eval: 1: base_compile+= -Wall: not found eval: 1: base_compile+=
> -DOGR_ENABLED: not found eval: 1: base_compile+=
> -I/home/JoshVote/gdal/port: not found eval: 1: base_compile+=
> -I../frmts/zlib: not found eval: 1: base_compile+= -DHAVE_LIBZ: not
> found eval: 1: base_compile+= -c: not found
> libtool: compile: you must specify a compilation command
> libtool: compile: Try `libtool --help --mode=compile' for more
> information. make[1]: *** [cpl_conv.lo] Error 1
> make[1]: Leaving directory `/home/JoshVote/gdal/port'
> make: *** [port-target] Error 2
>
> The annoying thing is that I have absolutely no problems building
> gdal under my 32 bit linux (Debian) box. I've been doing a bit of
> googling and have come across a similar issue
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=621930 that was
> apparently resolved for 1.7.3-2 a few weeks ago, did this ever make
> it to trunk?
>
> Works Under - Debian 6.0 (Linux .... 2.6.32-5-686 #1 SMP Wed Jan 12
> 04:01:41 UTC 2011 i686 GNU/Linux) Fails Under - Debian 6.0.1
> (Linux .... 2.6.32-5-amd64 #1 SMP Mon Mar 7 21:35:22 UTC 2011 x86_64
> GNU/Linux)
>
> Thanks in advance for any help
> Josh Vote
I had a similar problem on ubuntu 11.04 and solved setting the SHELL
variable in the GDALmake.opt.in as follows
Index: GDALmake.opt.in
===================================================================
--- GDALmake.opt.in (revision 22377)
+++ GDALmake.opt.in (working copy)
@@ -8,7 +8,7 @@
# Solaris users: the LIBTOOL line is expanded to $(SHELL)
$(top_builddir)/libtool # but the libtool script uses bashism, so you
may need to uncomment the following # line :
-#SHELL=/usr/bin/bash
+SHELL=/usr/bin/bash
HAVE_LIBTOOL = @HAVE_LIBTOOL@
LIBTOOL = @LIBTOOL@
best regards
--
Antonio Valentino
More information about the gdal-dev
mailing list