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

Helmut wrote:

myricaria@myricaria-hp-pavilion-ze4900-PJ920EA-ABD:/usr/local/src/grass/grass6_devel$
>> ./configure
>>
>> --with-cxx
>> --with-sqlite
>> --with-cairo
>> --with-freetype
>> --with-nls
>> --with-read-line
>> --with-gdal=/usr/bin/gdal-config
>> --with-python=/usr/bin/python2.7-config
>> --with-geos=/usr/bin/geos-config
>> --with-freetype-includes=/usr/include/freetype2/
>> --with-proj-share=/usr/share/proj
>>
>> I'm getting following:
>>
>> configure: error: can not run ./config.sub

Hi,

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? (no idea, grasping at straws)

also I've tried a fresh checkout of devbr6 with these config
options:

cd ~/src/grass/devbr6/
renice +17 -p $$
CFLAGS="-ggdb -Wall -Werror-implicit-function-declaration" \
./configure \
--with-tcltk-includes=/usr/include/tcl8.5 --with-cairo \
--with-motif --with-python=/usr/bin/python2.7-config \
--with-readline --with-cxx --with-odbc --with-sqlite \
--with-freetype --with-freetype-includes=/usr/include/freetype2 \
--without-postgres --with-proj-share=/usr/share/proj \
--with-wxwidgets --with-geos \
2>&1 | tee config_log.txt

that worked ok too.

package setup was:
$ 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

?,
Hamish

hi,

[...]

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`)

thanks for testing

... does your user account have full write permissions to the
/usr/local/src/grass dir? (no idea, grasping at straws)

myricaria@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
-rwxrwxrwx 1 myricaria myricaria 14946 2011-11-05 21:10 AUTHORS
-rwxrwxrwx 1 myricaria myricaria 10873 2011-11-05 21:13 binaryInstall.src
-rwxrwxrwx 1 myricaria myricaria 2997 2011-11-05 21:12 CHANGES
-rwxrwxrwx 1 myricaria myricaria 1 2011-11-20 12:29 confdefs.h
-rwxrwxrwx 1 myricaria myricaria 46440 2011-11-05 21:10 config.guess
-rwxrwxrwx 1 myricaria myricaria 127 2011-11-20 12:29 config.log
-rwxrwxrwx 1 myricaria myricaria 35303 2011-11-05 21:10 config.sub
-rwxrwxrwx 1 myricaria myricaria 452742 2011-11-05 21:10 configure
-rwxrwxrwx 1 myricaria myricaria 51151 2011-11-05 21:12 configure.in
-rwxrwxrwx 1 myricaria myricaria 3360 2011-11-05 21:12 contributors.csv
-rwxrwxrwx 1 myricaria myricaria 1627 2011-11-05 21:10
contributors_extra.csv
-rwxrwxrwx 1 myricaria myricaria 1540 2011-11-05 21:12 COPYING
drwxrwxrwx 5 myricaria myricaria 4096 2011-11-05 21:10 db
drwxrwxrwx 2 myricaria myricaria 4096 2011-11-05 21:10 debian
drwxrwxrwx 3 myricaria myricaria 4096 2011-11-05 21:12 demolocation
drwxrwxrwx 48 myricaria myricaria 4096 2011-11-05 21:13 display
drwxrwxrwx 5 myricaria myricaria 4096 2011-11-05 21:11 doc
drwxrwxrwx 4 myricaria myricaria 4096 2011-11-05 21:12 gem
drwxrwxrwx 25 myricaria myricaria 4096 2011-11-05 21:13 general
-rwxrwxrwx 1 myricaria myricaria 18326 2011-11-05 21:11 GPL.TXT
-rwxrwxrwx 1 myricaria myricaria 7498 2011-11-05 21:13 grasslib.dox
-rwxrwxrwx 1 myricaria myricaria 869 2011-11-05 21:10 grass.pc.in
drwxrwxrwx 8 myricaria myricaria 4096 2011-11-05 21:12 gui
drwxrwxrwx 28 myricaria myricaria 4096 2011-11-05 21:13 imagery
drwxrwxrwx 5 myricaria myricaria 4096 2011-11-05 21:12 include
-rwxrwxrwx 1 myricaria myricaria 9028 2011-11-05 21:12 INSTALL
-rwxrwxrwx 1 myricaria myricaria 6203 2011-11-05 21:13 install-sh
drwxrwxrwx 41 myricaria myricaria 4096 2011-11-18 22:55 lib
drwxrwxrwx 5 myricaria myricaria 4096 2011-11-05 21:11 locale
drwxrwxrwx 5 myricaria myricaria 4096 2011-11-05 21:12 macosx
-rwxrwxrwx 1 myricaria myricaria 17616 2011-11-18 22:55 Makefile
drwxrwxrwx 2 myricaria myricaria 4096 2011-11-05 21:12 man
drwxrwxrwx 4 myricaria myricaria 4096 2011-11-05 21:12 misc
drwxrwxrwx 4 myricaria myricaria 4096 2011-11-20 10:58 mswindows
drwxrwxrwx 3 myricaria myricaria 4096 2011-11-05 21:12 ps
drwxrwxrwx 135 myricaria myricaria 4096 2011-11-05 21:57 raster
drwxrwxrwx 14 myricaria myricaria 4096 2011-11-05 21:10 raster3d
-rwxrwxrwx 1 myricaria myricaria 1864 2011-11-05 21:12 README
-rwxrwxrwx 1 myricaria myricaria 8389 2011-11-05 21:12 REQUIREMENTS.html
drwxrwxrwx 2 myricaria myricaria 4096 2011-11-05 21:13 rfc
drwxrwxrwx 5 myricaria myricaria 4096 2011-11-05 21:10 rpm
drwxrwxrwx 89 myricaria myricaria 4096 2011-11-20 11:08 scripts
drwxrwxrwx 4 myricaria myricaria 4096 2011-11-05 21:12 sites
-rwxrwxrwx 1 myricaria myricaria 16824 2011-11-05 21:10 SUBMITTING
-rwxrwxrwx 1 myricaria myricaria 4068 2011-11-05 21:12 SUBMITTING_DOCS
-rwxrwxrwx 1 myricaria myricaria 6555 2011-11-05 21:12 SUBMITTING_PYTHON
-rwxrwxrwx 1 myricaria myricaria 7745 2011-11-05 21:12
SUBMITTING_SCRIPTS
-rwxrwxrwx 1 myricaria myricaria 10431 2011-11-05 21:12 SUBMITTING_TCLTK
drwxrwxrwx 4 myricaria myricaria 4096 2011-11-05 21:12 testsuite
-rwxrwxrwx 1 myricaria myricaria 1319 2011-11-05 21:13 TODO
drwxrwxrwx 5 myricaria myricaria 4096 2011-11-18 22:55 tools
-rwxrwxrwx 1 myricaria myricaria 3139 2011-11-05 21:11 translators.csv
drwxrwxrwx 90 myricaria myricaria 4096 2011-11-05 21:11 vector
drwxrwxrwx 5 myricaria myricaria 4096 2011-11-05 21:13 visualization

there should be full write permissions?

also I've tried a fresh checkout of devbr6 with these config
options:

here with your options

myricaria@myricaria-hp-pavilion-ze4900-PJ920EA-ABD:/usr/local/src/grass6_devel$
CFLAGS="-ggdb -Wall -Werror-implicit-function-declaration" \

  ./configure \
    --with-tcltk-includes=/usr/include/tcl8.5 --with-cairo \
    --with-motif --with-python=/usr/bin/python2.7-config \
    --with-readline --with-cxx --with-odbc --with-sqlite \
    --with-freetype --with-freetype-includes=/usr/include/freetype2 \
    --without-postgres --with-proj-share=/usr/share/proj \
    --with-wxwidgets --with-geos \
    2>&1 | tee config_log.txt

configure: error: can not run ./config.sub

any hints to look into further?

best regards
Helmut

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/compiling-grass65svn-error-on-ubuntu-11-10-tp6967393p7013544.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hamish:

> 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?

Helmut:

myricaria@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; }
fi

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 ...
make

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

Hamish

then in a freshly unpacked .tar.gz grass source dir

that was the clue...

all compiling - I've tried in this thread - was with source code downloaded
and modified in the windows world ...

tested with

http://grass.osgeo.org/grass65/source/snapshot/grass-6.5.svn_src_snapshot_2011_11_19.tar.gz

it compiles (beside an issue --with-opengl, it's maybe because of an very
old laptop running on).

sorry for the noise.

thanks
Helmut

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/compiling-grass65svn-error-on-ubuntu-11-10-tp6967393p7032672.html
Sent from the Grass - Users mailing list archive at Nabble.com.