[GRASS-user] Configuring GRASS source code for compilation under Ubuntu 7.10 -- CFLAGS and LDFLAGS parameters no more necessary (?)

Glynn Clements glynn at gclements.plus.com
Fri Jan 4 06:51:43 EST 2008


Nikos Alexandris wrote:

> I just downloaded GRASS with:
> 
> $ sudo svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk
> 
> I try to compile (under Ubuntu 7.10) as I did in the past with:
> 
> $ sudo CFLAGS="-g -Wall" LDFLAGS="-s" ./configure     --with-cxx
> --with-freetype=yes --with-ffmpeg=yes     --with-postgres=no
> --with-sqlite=yes     --enable-largefile=yes
> --with-tcltk-includes=/usr/include/tcl8.4
> --with-freetype-includes=/usr/include/freetype2
> --with-ffmpeg-includes=/usr/include/ffmpeg
> --with-opengl-libs=/usr/include/GL     --with-readline
> 
> 
> but  I get:
> 
> "sudo: CFLAGS=-g -Wall: command not found"

You would need to invoke the shell explicitly, e.g.

	sudo sh -c 'CFLAGS="-g -Wall" LDFLAGS="-s" ./configure ...'

To avoid dealing with quoting issues, you could store the command as a
script, then use e.g.:

	sudo sh script.sh

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list