[GRASS-user] Re: compiling grass65svn - error on ubuntu 11.10

Hamish hamish_b at yahoo.com
Sun Nov 20 18:38:48 EST 2011

> > I just tried 6.4.2rc2 with xubuntu 11.10 & it built ok for me.
> > (based on debiangis build rules, both manually compiled and
> > into .deb packages using `debuild`) 
> >... does your user account have full write permissions to the
> >/usr/local/src/grass dir?

> myricaria at myricaria-hp-pavilion-ze4900-PJ920EA-ABD:~$ ls -l
> /usr/local/src/grass6_devel
> insgesamt 940
> -rwxrwxrwx   1 myricaria myricaria 50899 2011-11-05 21:13 aclocal.m4
> there should be full write permissions?

It doesn't hurt the build but it's not good practice to leave things
world-writable. u+rw should be enough. (make sure "." from `ls -la` is
user writable too or you can't make new files)

> configure: error: can not run ./config.sub
> any hints to look into further?

that comes from inside ./configure:

# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }

perhaps edit ./configure and add a line above that test to show what
it is trying:
  echo "..trying: ${CONFIG_SHELL-/bin/sh} $ac_config_sub"
  # Make sure we can run config.sub.

or adjust the first line to be #!/bin/sh -x

you didn't run autoconf did you? if so you should install the
autoconf2.13 package and rerun "autoconf2.13" in the main source dir.

To build it I first installed the standard ubuntu grass package to pull
in the run-time dependencies, then manually installed the build-depends
packages listed in the debian/control file:

sudo apt-get install subversion devscripts

sudo apt-get --no-install-recommends install  flex bison libreadline-dev libncurses5-dev lesstif2-dev debhelper libtiff4-dev tcl-dev tk-dev libfftw3-dev libxmu-dev libglu1-mesa-dev libfreetype6-dev autoconf2.13 autotools-dev libgdal1-dev libproj-dev proj-bin libjpeg-dev libpng12-dev libpq-dev unixodbc-dev doxygen fakeroot libmysqlclient15-dev graphviz libsqlite3-dev python-wxgtk2.8 libcairo2-dev libwxgtk2.8-dev python-dev

then in a freshly unpacked .tar.gz grass source dir
renice +14 -p $$
./configure ...

then I symlinked ./bin.i686-pc-linux-gnu/grass65 into ~/bin


More information about the grass-user mailing list