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

Moritz Lennert mlennert at club.worldonline.be
Wed Jan 2 05:46:17 EST 2008


On 02/01/08 10:06, 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"

sudo takes the first argument as the command to execute. If you want to 
include several commands (CFLAGS= is one, LDFLAGS= another and configure 
the third), put them into a script file.

But why do you want to compile as sudo ? This is generally considered 
unsafe. You should only use sudo for 'make install'.

Or use the debian (and thus Ubuntu) way: dpkg-buildpackage.

Moritz



More information about the grass-user mailing list