[GRASSLIST:244] debian sarge Tk problem

hello grassusers

Couple days ago i changed my distribution and now i'm happy owener of debian sarge.
I wanted install grass6.1 on my machine but i couldt.
I changed the library names (Tcl/Tk) but there is still error durig "./configure"

.....
checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes...
checking for tcl.h... yes
checking for tk.h... no
configure: error: *** Unable to locate Tk includes.

(The grass60 installed from .debs works but there is some nviz problem)

what should i do?

i will be very thankful for any help

Maciej Tomaszczyk
Polish Geological Institute
Geological Mapping Department

Hello,

Well, I use GRASS with Debian Sarge. Maybe I can help you… :slight_smile:

Please check if you have the DEV (development packages) from Tk and Tcl.
Usually they are easy to install using apt-get or Synaptic.This is the first step…

Second, if ./configure is not find then, you must specify the right folder on
./configure flags.

(if you want to use the binary CVS-GRASS version)
You must to create some symbolic links. This happens because sometimes your libraries have a different name from the standard name.

See the NOTES on this link for more details: http://grass.itc.it/grass61/binary/linux/snapshot/

For the NVIZ problem what error do you have? I think that again is a problem
with symbolic links. Please give more details…

Cheers,

On 3/19/06, Maciej Tomaszczyk <mtom@pgi.gov.pl > wrote:

hello grassusers

Couple days ago i changed my distribution and now i’m happy owener of debian sarge.
I wanted install grass6.1 on my machine but i couldt.
I changed the library names (Tcl/Tk) but there is still error durig “./configure”


checking whether to use Tcl/Tk… yes
checking for location of Tcl/Tk includes…
checking for tcl.h… yes
checking for tk.h… no
configure: error: *** Unable to locate Tk includes.

(The grass60 installed from .debs works but there is some nviz problem)

what should i do?

i will be very thankful for any help

Maciej Tomaszczyk
Polish Geological Institute
Geological Mapping Department


Christian dos Santos Ferreira
Oceanographer. Msc.
Lab. of Fisheries Research and Hydroacustics
Federal University of Rio Grande (FURG)
Rio Grande - RS - Brazil
Tel +55 (53) 32336528
Website: http://poseidon.furg.br

Maciej Tomaszczyk wrote:

Couple days ago i changed my distribution and now i'm happy owener of debian sarge.
I wanted install grass6.1 on my machine but i couldt.
I changed the library names (Tcl/Tk) but there is still error durig "./configure"

.....
checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes...
checking for tcl.h... yes
checking for tk.h... no
configure: error: *** Unable to locate Tk includes.

If you get an error from the configure script, check the config.log
file. That file contains a record of each command which is run and any
error messages which it generated.

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

i did somthing but i dont know what exactly :slight_smile: and now i have got grass61 on my machine

thanks for your help

Maciej Tomaszczyk
Polish Geological Institute
Geological Mapping Department

-----Wiadomość oryginalna-----
Od: Glynn Clements [mailto:glynn@gclements.plus.com]
Wysłano: N 2006-03-19 20:43
Do: Maciej Tomaszczyk
DW: GRASSLIST@baylor.edu
Temat: Re: [GRASSLIST:244] debian sarge Tk problem

Maciej Tomaszczyk wrote:

Couple days ago i changed my distribution and now i'm happy owener of debian sarge.
I wanted install grass6.1 on my machine but i couldt.
I changed the library names (Tcl/Tk) but there is still error durig "./configure"

.....
checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes...
checking for tcl.h... yes
checking for tk.h... no
configure: error: *** Unable to locate Tk includes.

If you get an error from the configure script, check the config.log
file. That file contains a record of each command which is run and any
error messages which it generated.

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

Maciej,

Make sure that you have installed TclTk version 8.3 and the associated "dev"
packages:

on my Debian Sarge system:

tcl8.3 8.3.5-5
tcl8.3-dev 8.3.5-5
tk8.3 8.3.5-6
tk8.3-dev 8.3.5-6

Cheers,

Dylan

On Sunday 19 March 2006 01:54 pm, Maciej Tomaszczyk wrote:

i did somthing but i dont know what exactly :slight_smile: and now i have got grass61
on my machine

thanks for your help

Maciej Tomaszczyk
Polish Geological Institute
Geological Mapping Department

-----Wiadomość oryginalna-----
Od: Glynn Clements [mailto:glynn@gclements.plus.com]
Wysłano: N 2006-03-19 20:43
Do: Maciej Tomaszczyk
DW: GRASSLIST@baylor.edu
Temat: Re: [GRASSLIST:244] debian sarge Tk problem

Maciej Tomaszczyk wrote:
> Couple days ago i changed my distribution and now i'm happy owener of
> debian sarge. I wanted install grass6.1 on my machine but i couldt.
> I changed the library names (Tcl/Tk) but there is still error durig
> "./configure"
>
> .....
> checking whether to use Tcl/Tk... yes
> checking for location of Tcl/Tk includes...
> checking for tcl.h... yes
> checking for tk.h... no
> configure: error: *** Unable to locate Tk includes.

If you get an error from the configure script, check the config.log
file. That file contains a record of each command which is run and any
error messages which it generated.

--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341

Couple days ago i changed my distribution and now i'm happy owener of
debian sarge. I wanted install grass6.1 on my machine but i couldt.
I changed the library names (Tcl/Tk) but there is still error durig
"./configure"

.....
checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes...
checking for tcl.h... yes
checking for tk.h... no
configure: error: *** Unable to locate Tk includes.

(The grass60 installed from .debs works but there is some nviz
problem)

what should i do?

1) The DebianGIS project publishes backported packages of GRASS 6.0.2
and 6.1-cvs for Debian/Stable (sarge) as well as other geospatial
software (eg gdal 1.3.1).

see http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl

2) If you explore the "build depends" line in the package description
you can quickly figure out what packages you need to compile it
yourself. You can even use the debian package building framework as a
one line command. See the debian/ directory in the GRASS source code.

see http://freegis.org/cgi-bin/viewcvs.cgi/grass6/debian/

(Paulo, could you write up a quick README file for there on how to build
your own packages? I don't know the "correct" way.)

3) compile it yourself. If you get *latest* CVS code you can compile
with tcltk 8.4 and fftw3, otherwise use tcltk8.3 and fftw2 without
losing anything.

I think for the FFMPEG animation support in NVIZ you need to get some
non-Free packages from Christian Marillat's repository:

add to /etc/apt/sources.list:
deb ftp://ftp.nerim.net/debian-marillat/ sarge main

./configure step: (season to taste)

CFLAGS="-ggdb -march=pentium4 -Wall" ./configure \
    --with-tcltk-includes=/usr/include/tcl8.3 \
    --with-motif --with-motif-includes=/usr/X11R6/include \
    --with-readline --with-cxx --with-glw --with-odbc --with-sqlite \
    --with-freetype --with-freetype-includes=/usr/include/freetype2 \
    --without-postgres \
    2>&1 | tee config_log.txt

# --with-ffmpeg --with-ffmpeg-includes=/usr/include/ffmpeg

$ make

To run GRASS, simply start (or symlink to)
$ ./bin.$ARCH/grass61

or, as root,
# make install

GRASS 6.1-cvs Compile package reqs for Debian/Stable, 31 Oct 2005

gcc # for compile
libc6-dev # for basics
flex # for lex
bison # for yacc
libncurses5-dev # for curses
zlib1g-dev # zlib
libreadline5-dev # readline
libjpeg62-dev or libjpeg-mmx-dev # for JPEG support
libtiff4-dev # for TIFF support
libpng12-dev # for PNG support
tcl8.3-dev # for TCL
tk8.3-dev # for TK
#postgresql # for Postgresql support
#postgresql-dev # for Postgresql support
xlibmesa-gl-dev # for OpenGL
#libstdc++5-3.3-dev # for glu-dev
xlibmesa-glu-dev # for OpenGL
unixodbc-dev # for ODBC
fftw-dev # for FFT functions
lesstif2-dev # for Motif
libfreetype6-dev # for Freetype Fonts
libgdal1-dev # for GDAL
gdal-bin # for GDAL (doesn't include libraries or gdal-config)
proj # for PROJ.4
sqlite3 # for SQLite
libsqlite3-dev # for SQLite
#libavcodec-dev # for FFMPEG support
libavcodeccvs-dev# for FFMPEG support
libavutilcvs-dev # for FFMPEG support

make # won't get far without this..
g++ # for r.terraflow

new:
tcl8.4-dev # for TCL
tk8.4-dev # for TK
fftw3-dev # for FFT modules

good luck,
Hamish