[GRASSLIST:10731] issues with grass-6.1.cvs-i686-pc-linux-gnu-01_03_2006: nviz does not work

Hi all,

I’m trying to use the -grass-6.1.cvs-i686-pc-linux-gnu-01_03_2006 binary on my Ubuntu Hoary linux.
I am following the nutshell grass tutorial and ran into problem quickly, with NVIZ.

  1. First errors i got was:
    GRASS 6.1.cvs (spearfish60):~ > nviz elev=elevation.edm vect=raods
    nviz: error while loading shared libraries: libtiff.so.3: cannot open shared object file: No such file or directory

So what i did was check my libtiff shared library version- it is libtiff.so.4.0.0, with a link called libtiff.so.4
So i remained the link itself as libtiff.so.3, since the nviz command seemed to be looking for it.

  1. Then i tried to restart grass, but got an error saying libtiff.so.4 not found. So i made another link called libtiff.so.4.
    Hence by now i had 2 links (libtiff.so.3 and libtiff.so.4), both linked to libtiff.so.4.0.0

3 I started GRASS and it started ok. Then i tried nviz again:
GRASS 6.1.cvs (spearfish60):~ > nviz elev=elevation.dem vect=roads
Loading Data
Update elev null mask
Loading Data
translating colors
Vector file roads loaded.
Total vect memory = 69 Kbytes
Segmentation fault

Here an NVIZ window briefly flashes on and off. And thats it! What do i do to fix this?

  1. Finally, the GIS manager itself seems to be missing some drop down menus and features- i am attaching a creenshot of the GIS manager:

thanks!
vishal

hydrologist,
Bangalore-India
www.people.cornell.edu/pages/vkm2

(attachments)

Screenshot-GRASS 6.1.cvs GIS Manager - spearfish60.jpeg.png

I'm trying to use the -grass-6.1.cvs-i686-pc-linux-gnu-01_03_2006
binary on my Ubuntu Hoary linux.

It is probably much easier to try the debian cvs package from the
DebianGIS project I think...
http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl/DebianGis

I am following the nutshell grass tutorial and ran into problem
quickly, with NVIZ.

[library errors]

It wasn't compiled on Ubuntu so the libraries will be different.
Linking to the correct ones as you did solves this. Not much else can be
done.

3 I started GRASS and it started ok. Then i tried nviz again:
GRASS 6.1.cvs (spearfish60):~ > nviz elev=elevation.dem vect=roads
Loading Data
Update elev null mask
Loading Data
translating colors
Vector file roads loaded.
Total vect memory = 69 Kbytes
Segmentation fault

Here an NVIZ window briefly flashes on and off. And thats it! What do
i do to fix this?

NVIZ needs to be built with TclTk 8.3 to work on Debian/Ubuntu.
long known bug.

4. Finally, the GIS manager itself seems to be missing some drop down
menus and features- i am attaching a creenshot of the GIS manager:

?what's missing?

again, you wil have more luck with Francesco's GRASS 6.1-cvs packages
from DebianGIS vs. the generic binaries.

Hamish

Also considr upgrading into Breezy (at least). DebianGis packages are
most suitable for Debian Unstable/Testing or Ubuntu Dapper Drake 6.04,
but you can expect that not everything will work cleanly.

If you want to run GRASS+QGIS, I suggest you install stuff like
fftw-2.15, geos, tcl/tk8.3 etc from the repositories via
apt-get/synaptic and then compile gdal, grass and qgis from source.
There is a dependency problem with libgeosc2a, whith will prevent from
installing libgrass, libgdal-grass and qgis-grass-plugins.

This may sound trick, but it¶ what I did;

1 - install GDAL via synaptic
2 - compile GRASS from source
3 - remove GDAL via synaptic
4 - compile GDAL from source (use --with-grass=path-to-your-install)
5 - compile GRASS again with your new GDAL
6 - compile QGIS (use --with-grass=path-to-your-install).

all the best

Carlos

On 3/5/06, Hamish <hamish_nospam@yahoo.com> wrote:

> I'm trying to use the -grass-6.1.cvs-i686-pc-linux-gnu-01_03_2006
> binary on my Ubuntu Hoary linux.

It is probably much easier to try the debian cvs package from the
DebianGIS project I think...
http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl/DebianGis

> I am following the nutshell grass tutorial and ran into problem
> quickly, with NVIZ.

> [library errors]

It wasn't compiled on Ubuntu so the libraries will be different.
Linking to the correct ones as you did solves this. Not much else can be
done.

> 3 I started GRASS and it started ok. Then i tried nviz again:
> GRASS 6.1.cvs (spearfish60):~ > nviz elev=elevation.dem vect=roads
> Loading Data
> Update elev null mask
> Loading Data
> translating colors
> Vector file roads loaded.
> Total vect memory = 69 Kbytes
> Segmentation fault
>
> Here an NVIZ window briefly flashes on and off. And thats it! What do
> i do to fix this?

NVIZ needs to be built with TclTk 8.3 to work on Debian/Ubuntu.
long known bug.

> 4. Finally, the GIS manager itself seems to be missing some drop down
> menus and features- i am attaching a creenshot of the GIS manager:

?what's missing?

again, you wil have more luck with Francesco's GRASS 6.1-cvs packages
from DebianGIS vs. the generic binaries.

Hamish

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

On Sun, 5 Mar 2006 23:11:19 -0300
"Carlos \"Guâno\" Grohmann" <carlos.grohmann@gmail.com> wrote:

Also considr upgrading into Breezy (at least). DebianGis packages are
most suitable for Debian Unstable/Testing or Ubuntu Dapper Drake 6.04,
but you can expect that not everything will work cleanly.

If you want to run GRASS+QGIS, I suggest you install stuff like
fftw-2.15, geos, tcl/tk8.3 etc from the repositories via
apt-get/synaptic and then compile gdal, grass and qgis from source.
There is a dependency problem with libgeosc2a, whith will prevent from
installing libgrass, libgdal-grass and qgis-grass-plugins.

This may sound trick, but it¶ what I did;

1 - install GDAL via synaptic
2 - compile GRASS from source
3 - remove GDAL via synaptic
4 - compile GDAL from source (use --with-grass=path-to-your-install)
5 - compile GRASS again with your new GDAL
6 - compile QGIS (use --with-grass=path-to-your-install).

This is not the optimal solution. Most straightforward is to use
gdal-grass plugin - no need rebuild each one against each other.
However, to use the current gdal-grass plugin version you'll need at
least Gdal 1.3.1. Please read the WIKI
http://grass.gdf-hannover.de/twiki/bin/view/GRASS/GrassQgisGdalOgrPlugin

Main WIKI page:
http://grass.gdf-hannover.de/twiki/bin/view/GRASS/WebHome
Many usefull hints.

Maciek

---------------------
http://www.visanen.pl/ - Zapakujemy wszystko!
Produkcja i dystrybucja torby foliowe, papierowe, reklamówki, opakowania kartonowe, ekskluzywne pude³ka

OK, Vishal

Let's see what we can do:

1 - Upgrade to Breezy (this is in case you don't want to make a fresh install)

In Synaptics preference check "Consider reccomended packages as dependencies"
still in preferences: System Upgrade: Smart Upgrade

go to Synaptic -> Settings -> Repositories
you will find a lot of entries, edit all of them, change "Hoary" to "Breezy"
be sure that one of the entries looks like this:

Type: Binary
URI: http://archive.ubuntu.com/ubuntu/ (or some mirror close to you)
Distribution: Breezy
Sections: universe main restricted multiverse (this will give you
acces to more packages)
Comment: (you may leave blank)

Reload the package list (it will problably ask you to do it)

install these packages and their dependencies (say OK when it asks you
to install dependencies):

note: this will give you a almost-full-featured GRASS+QGIS install.
You might don't want some of the SQL interfaces, but I like to have
them all. Some packaver versions may (will) vary, since I get this
list from my machine, which is running Dapper. Just make sure to
install tcl/tk 8.3 abd fftw-2.

build-essencial
qt3-dev-tools
cvs

proj
gdal-bin
libgeos2c2a
ligeos-dev
fftw2
fftw-dev
tcl8.3
tcl8.3-dev
tk8.3
tk8.3-dev
postgresql-8.1
postgresql-client-8.1
postgresql-dev
mysql-commom
mysql-navigator
mysql-query-browser
libmysqlclien14
libmysqlclien14-dev
libmysql++2c2a
libmysql++-dev
sqlite3
lisqlite3-0
libsqlite3-dev
unixodbc
uniodbc-dev

Now you're good to start compiling GRASS. :slight_smile:

create directory (folder) where you will put the sources and compile
them (eg. /home/you/grass_install)

get GDAL: http://www.gdal.org/dl/gdal131.zip
get QGIS: http://heanet.dl.sourceforge.net/sourceforge/qgis/qgis-0.7.4.tar.gz
(or some other mirror, go to www.qgis.org)

save them in that folder

open a terminal and go to the folder you just make
- say, if you created a folder called /home/you/grass_install:
when you open the terminal tou are in /home/you, so type:

$cd grass_install

now get the latest GRASS CVS snapshot (you could pick up the source
from the web site, but this will make easier to upgrade latter)

$ cvs -z3 -d:pserver:grass-guest@intevation.de:/home/grass/grassrepository login

password: grass

$ cvs -z3 -d:pserver:grass-guest@intevation.de:/home/grass/grassrepository
co grass6

this will grab everything and put into a directory called grass6

let's make grass.

$ cd grass6
this are the lines I used to configure my grass:

$CFLAGS="-O2 -Wall -D_FILE_OFFSET_BITS=64" LDFLAGS="-s" ./configure \
--with-libs=/usr/local/lib \
--with-gdal \
--with-proj \
--with-tcltk-includes=/usr/include/tcl8.3/ \
--with-postgres-includes=/usr/include/postgresql
--with-postgres-libs=/usr/lib/postgresql \
--with-mysql --with-mysql-includes=/usr/include/mysql
--with-mysql-libs=/usr/lib \
--with-sqlite \
--with-odbc \
--without-motif --without-glw \
--with-nls \
--with-fftw --with-fftw-libs=/usr/lib \
--with-freetype --with-freetype-includes=/usr/include/freetype2 \
--enable-largefile

$ make
$ sudo make install

OK, now you have GRASS. To get it better, let's make a new GDAL (with
support to GRASS) and then QGIS (with support to GRASS).

Run Synaptics and remove gdal-bin

unzip gdal source and cd into it:

$ unzip gdal131.zip (if it doesn't work, install "unzip" via synaptic)
$ cd gdal-1.3.1
$CFLAGS="-O2 -Wall -D_FILE_OFFSET_BITS=64" LDFLAGS="-s" ./configure \
--with-grass=/usr/local/grass-6.1.cvs \
--with-geos=/usr/bin/geos-config \
--with-mysql=yes \
--with-sqlite=yes \
--without-python

$ make
$ sudo make install

I had to configure gdal withou python because I was getting errors.
you can try "--with-python" and see if it works...

OK, GDAL is good, now QGIS

go back one level, to grass_install

$cd .. (note the space beetwen "cd" and "..")
$tar -xvzf qgis-0.7.4.tar.gz
$cd qgis-0.7.4
$CFLAGS="-O2 -Wall -D_FILE_OFFSET_BITS=64" LDFLAGS="-s" ./configure \
--with-grass=/usr/local/grass-6.1.cvs

$ make
$ sudo make install

OK, now let's just remake grass, to make sure it is linked to the
right stuff (gdal)

$ cd ..
$ cd grass6

$CFLAGS="-O2 -Wall -D_FILE_OFFSET_BITS=64" LDFLAGS="-s" ./configure \
--with-libs=/usr/local/lib \
--with-gdal \
--with-proj \
--with-tcltk-includes=/usr/include/tcl8.3/ \
--with-postgres-includes=/usr/include/postgresql
--with-postgres-libs=/usr/lib/postgresql \
--with-mysql --with-mysql-includes=/usr/include/mysql
--with-mysql-libs=/usr/lib \
--with-sqlite \
--with-odbc \
--without-motif --without-glw \
--with-nls \
--with-fftw --with-fftw-libs=/usr/lib \
--with-freetype --with-freetype-includes=/usr/include/freetype2 \
--enable-largefile

$ make
$ sudo make install

And that's it!
It seems a little trick, but it's not...

Now, if you want to upgrade your GRASS, just cd into grass6 and type:

$cvs up -dP

it will grab just the new stuff from the cvs server.

just
$ make
$ sudo make install

and voilá!

This should work on most Debian-based distros
Hope this helps

Carlos

On 3/6/06, Vishal Mehta <vishalm1975@gmail.com> wrote:

Thanks Carlos,

I will try upgrading to Breezy.
I'm afraid that i am not proficient with Linux/Unix, and am re-using GRASS
after a gap of 4 years. I'm not confident of compiling from source at all. I
tried installing QGIS and that did'nt work either. I am asking a friend here
who knows some Linux to help me out in person.. but thats going painfully
slow too.

saludos,

vishal

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

one can't install qgis-grass-plugin because it depends on libgdal1-grass.

libgdal1-grass:
Depends: libgdal1c2 (>=1.2.6) but it is not installable

why? because there is no package called ligdal1c2, but there is ligdal1c2a....

Carlos

On 3/6/06, Maciek Sieczka <werchowyna@epf.pl> wrote:

On Mon, 6 Mar 2006 14:25:01 -0300
"Carlos \"Guâno\" Grohmann" <carlos.grohmann@gmail.com> wrote:

> On 3/6/06, Maciek Sieczka <werchowyna@epf.pl> wrote:
> > On Sun, 5 Mar 2006 23:11:19 -0300
> > "Carlos \"Guâno\" Grohmann" <carlos.grohmann@gmail.com> wrote:
> >
> > > Also considr upgrading into Breezy (at least). DebianGis packages
> > > are most suitable for Debian Unstable/Testing or Ubuntu Dapper
> > > Drake 6.04, but you can expect that not everything will work
> > > cleanly.
> > >
> > > If you want to run GRASS+QGIS, I suggest you install stuff like
> > > fftw-2.15, geos, tcl/tk8.3 etc from the repositories via
> > > apt-get/synaptic and then compile gdal, grass and qgis from
> > > source. There is a dependency problem with libgeosc2a, whith will
> > > prevent from installing libgrass, libgdal-grass and
> > > qgis-grass-plugins.
> > >
> > > This may sound trick, but it¶ what I did;
> > >
> > > 1 - install GDAL via synaptic
> > > 2 - compile GRASS from source
> > > 3 - remove GDAL via synaptic
> > > 4 - compile GDAL from source (use
> > > --with-grass=path-to-your-install) 5 - compile GRASS again with
> > > your new GDAL 6 - compile QGIS (use
> > > --with-grass=path-to-your-install).
> >
> > This is not the optimal solution. Most straightforward is to use
> > gdal-grass plugin - no need rebuild each one against each other.
> > However, to use the current gdal-grass plugin version you'll need at
> > least Gdal 1.3.1. Please read the WIKI
> > http://grass.gdf-hannover.de/twiki/bin/view/GRASS/GrassQgisGdalOgrPlugin
>
>
> This would be the best, but dependencies are broken....

Which ones?

I'm using Breezy and have most of my GIS stuff installed from source:

proj 4.4.9 CVS
hdf4 2r1
geos 2.2.1
postgis 1.1.1
sqlite3 3.3
gdal 1.3.1 CVS
grass 6.1 CVS
grass 6.02 CVS
gdal-grass 1.3.1.1
qgis 0.74 SVN

In order to manage these few packages I'm using checkinstall, which
produces DEBs all nice and clean, all working, easy to
upgrade/install/uninstall/switch versions using dpkg.

This is a way better than using a combination of "make install" and
synaptic IMHO. Sure dependecies between checkinstall's DEBs are not
preserved as if they would be in case of full blown ubuntu packages,
but for such a small number of packages this is not an issue yet. And
my apt-get or dpkg don't ever complain about any dependencies broken.

Maciek

---------------------
http://www.visanen.pl/ - Zapakujemy wszystko!
Produkcja i dystrybucja torby foliowe, papierowe, reklamówki, opakowania kartonowe, ekskluzywne pude³ka

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

On Mon, 6 Mar 2006 17:23:57 -0300
"Carlos \"Guâno\" Grohmann" <carlos.grohmann@gmail.com> wrote:

one can't install qgis-grass-plugin because it depends on
libgdal1-grass.

libgdal1-grass:
Depends: libgdal1c2 (>=1.2.6) but it is not installable

why? because there is no package called ligdal1c2, but there is
ligdal1c2a....

Carlos,

Build gdal-grass from source then. Fetch it from here:

http://www.gdal.org/dl/gdal-grass-1.3.1.1.tar.gz

I've been using it. No problems. IMHO it is easier and safer to:

1. build Gdal from source
2. build Grass from source
3. build Gdal-Grass plugin from source
4. build Qgis from source

(3 and 4 order doesn't really matter)

Than to proceed as you suggest:

1 - install GDAL via synaptic
2 - compile GRASS from source
3 - remove GDAL via synaptic
4 - compile GDAL from source (use --with-grass=path-to-your-install)
5 - compile GRASS again with your new GDAL
6 - compile QGIS (use --with-grass=path-to-your-install).

I also recommend using checkinstall->dpkg instaed of plain "make
install". Using custom debs is good better software management and
sanity.

Note: I have just noticed a newer gdal-grass plugin version of March
1st:
http://www.gdal.org/dl/gdal-grass-1.3.1.2.tar.gz

Anybody knows if it is recommended? 1.3.1.1 is OK for me by now. Does
anybody know what are the changes?

Maciek

---------------------
http://www.visanen.pl/ - Zapakujemy wszystko!
Produkcja i dystrybucja torby foliowe, papierowe, reklamówki, opakowania kartonowe, ekskluzywne pude³ka

wow, thats a lot to digest for a linux newbie(me:)

ok, i’ll get a Linux friend here to help me try out your suggestions:

thanks all!
vishal

On 3/7/06, Maciek Sieczka <werchowyna@epf.pl> wrote:

On Mon, 6 Mar 2006 17:23:57 -0300
“Carlos "Guâno" Grohmann” < carlos.grohmann@gmail.com> wrote:

one can’t install qgis-grass-plugin because it depends on
libgdal1-grass.

libgdal1-grass:
Depends: libgdal1c2 (>=1.2.6) but it is not installable

why? because there is no package called ligdal1c2, but there is
ligdal1c2a…

Carlos,

Build gdal-grass from source then. Fetch it from here:

http://www.gdal.org/dl/gdal-grass-1.3.1.1.tar.gz

I’ve been using it. No problems. IMHO it is easier and safer to:

  1. build Gdal from source
  2. build Grass from source
  3. build Gdal-Grass plugin from source
  4. build Qgis from source

(3 and 4 order doesn’t really matter)

Than to proceed as you suggest:

1 - install GDAL via synaptic
2 - compile GRASS from source
3 - remove GDAL via synaptic
4 - compile GDAL from source (use --with-grass=path-to-your-install)
5 - compile GRASS again with your new GDAL
6 - compile QGIS (use --with-grass=path-to-your-install).

I also recommend using checkinstall->dpkg instaed of plain “make
install”. Using custom debs is good better software management and
sanity.

Note: I have just noticed a newer gdal-grass plugin version of March
1st:
http://www.gdal.org/dl/gdal-grass-1.3.1.2.tar.gz

Anybody knows if it is recommended? 1.3.1.1 is OK for me by now. Does
anybody know what are the changes?

Maciek


http://www.visanen.pl/ - Zapakujemy wszystko!
Produkcja i dystrybucja torby foliowe, papierowe, reklamówki, opakowania kartonowe, ekskluzywne pudełka

Hi all,

I upgraded from Hoary to Breezy, then installed grass 6.0.1 which is in the repositoryy, so is qgis 0.6.
results:

  1. Grass is working fine with NVIZ also working fine;
  2. QGIS does not recognize GRASS rasters probably because of what you all wrote that it depends on ligdal1-grass, because on upgrading, libgdal1 got replaced by libgdal2;

so, i guess i’ll try going the gdal compile; gdal-grass compile way that you suggest here.

A related issue: i’m trying to bring in netcdf format files with he help of gdal_translate and r.in.gdal.
I get an error as follows:
GRASS 6.0.1 (test2):~ > r.in.gdal -oe input=/home/vishal/NCEPdata/lhtfl.sfc.gauss.2004.nc output=lhfttrial[1]+ Done d.m
Segmentation fault

Also, i’m not sure if the GDAL version i have supports netcdf:
This is the GDAL i have, satraight from the Breezy repository:
GDAL 1.2.6.0, released 2005/03/13

So i’m wondering that to have both the grass-qgis plugin, and netcdf support, i need to compile gdal with both??

thanks much!
cheers,
vishal

On 3/7/06, Maciek Sieczka <werchowyna@epf.pl> wrote:

On Mon, 6 Mar 2006 17:23:57 -0300
“Carlos "Guâno" Grohmann” < carlos.grohmann@gmail.com> wrote:

one can’t install qgis-grass-plugin because it depends on
libgdal1-grass.

libgdal1-grass:
Depends: libgdal1c2 (>=1.2.6) but it is not installable

why? because there is no package called ligdal1c2, but there is
ligdal1c2a…

Carlos,

Build gdal-grass from source then. Fetch it from here:

http://www.gdal.org/dl/gdal-grass-1.3.1.1.tar.gz

I’ve been using it. No problems. IMHO it is easier and safer to:

  1. build Gdal from source
  2. build Grass from source
  3. build Gdal-Grass plugin from source
  4. build Qgis from source

(3 and 4 order doesn’t really matter)

Than to proceed as you suggest:

1 - install GDAL via synaptic
2 - compile GRASS from source
3 - remove GDAL via synaptic
4 - compile GDAL from source (use --with-grass=path-to-your-install)
5 - compile GRASS again with your new GDAL
6 - compile QGIS (use --with-grass=path-to-your-install).

I also recommend using checkinstall->dpkg instaed of plain “make
install”. Using custom debs is good better software management and
sanity.

Note: I have just noticed a newer gdal-grass plugin version of March
1st:
http://www.gdal.org/dl/gdal-grass-1.3.1.2.tar.gz

Anybody knows if it is recommended? 1.3.1.1 is OK for me by now. Does
anybody know what are the changes?

Maciek


http://www.visanen.pl/ - Zapakujemy wszystko!
Produkcja i dystrybucja torby foliowe, papierowe, reklamówki, opakowania kartonowe, ekskluzywne pudełka

I just get this from DebianGis today:

Schuyler Erle <schuyler@nocat.net> to me

> More options 11:18 am (6 minutes ago)

* On 3-Mar-2006 at 2:41PM PST, Carlos Guâno Grohmann said:
OK. will there be new packages for libgrass-gdal and qgis-plugins-grass soon?

There are Ubuntu packages for all that stuff here:

   http://freemap.in/~sderle/deb/

Sorry I didn't see this thread sooner. I need to see what I can do to

try it.

On 3/10/06, Vishal Mehta <vishalm1975@gmail.com> wrote:

>
> Hi all,

I upgraded from Hoary to Breezy, then installed grass 6.0.1 which is in the
repositoryy, so is qgis 0.6.
results:
1. Grass is working fine with NVIZ also working fine;
2. QGIS does not recognize GRASS rasters probably because of what you all
wrote that it depends on ligdal1-grass, because on upgrading, libgdal1 got
replaced by libgdal2;

so, i guess i'll try going the gdal compile; gdal-grass compile way that you
suggest here.

A related issue: i'm trying to bring in netcdf format files with he help of
gdal_translate and r.in.gdal.
I get an error as follows:
GRASS 6.0.1 (test2):~ > r.in.gdal -oe
input=/home/vishal/NCEPdata/lhtfl.sfc.gauss.2004.nc
output=lhfttrial[1]+ Done d.m
Segmentation fault

Also, i'm not sure if the GDAL version i have supports netcdf:
This is the GDAL i have, satraight from the Breezy repository:
GDAL 1.2.6.0, released 2005/03/13

So i'm wondering that to have both the grass-qgis plugin, and netcdf
support, i need to compile gdal with both??

thanks much!
cheers,
vishal

>
>
> On 3/7/06, Maciek Sieczka <werchowyna@epf.pl> wrote:
> > On Mon, 6 Mar 2006 17:23:57 -0300
> > "Carlos \"Guâno\" Grohmann" < carlos.grohmann@gmail.com> wrote:
> >
> > > one can't install qgis-grass-plugin because it depends on
> > > libgdal1-grass.
> > >
> > > libgdal1-grass:
> > > Depends: libgdal1c2 (>=1.2.6) but it is not installable
> > >
> > > why? because there is no package called ligdal1c2, but there is
> > > ligdal1c2a....
> >
> > Carlos,
> >
> > Build gdal-grass from source then. Fetch it from here:
> >
> > http://www.gdal.org/dl/gdal-grass-1.3.1.1.tar.gz
> >
> > I've been using it. No problems. IMHO it is easier and safer to:
> >
> > 1. build Gdal from source
> > 2. build Grass from source
> > 3. build Gdal-Grass plugin from source
> > 4. build Qgis from source
> >
> > (3 and 4 order doesn't really matter)
> >
> > Than to proceed as you suggest:
> >
> > > 1 - install GDAL via synaptic
> > > 2 - compile GRASS from source
> > > 3 - remove GDAL via synaptic
> > > 4 - compile GDAL from source (use
--with-grass=path-to-your-install)
> > > 5 - compile GRASS again with your new GDAL
> > > 6 - compile QGIS (use
--with-grass=path-to-your-install).
> >
> > I also recommend using checkinstall->dpkg instaed of plain "make
> > install". Using custom debs is good better software management and
> > sanity.
> >
> >
> >
> > Note: I have just noticed a newer gdal-grass plugin version of March
> > 1st:
> > http://www.gdal.org/dl/gdal-grass-1.3.1.2.tar.gz
> >
> > Anybody knows if it is recommended? 1.3.1.1 is OK for me by now. Does
> > anybody know what are the changes?
> >
> > Maciek
> >
> > ---------------------
> > http://www.visanen.pl/ - Zapakujemy wszystko!
> > Produkcja i dystrybucja torby foliowe, papierowe, reklamówki, opakowania
kartonowe, ekskluzywne pude³ka
> >
> >
>
>

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

On Fri, 10 Mar 2006 11:50:07 +0530
"Vishal Mehta" <vishalm1975@gmail.com> wrote:

I upgraded from Hoary to Breezy, then installed grass 6.0.1 which is
in the repositoryy, so is qgis 0.6.
results:
1. Grass is working fine with NVIZ also working fine;
2. QGIS does not recognize GRASS rasters probably because of what you
all wrote that it depends on ligdal1-grass, because on upgrading,
libgdal1 got replaced by libgdal2;

so, i guess i'll try going the gdal compile; gdal-grass compile way
that you suggest here.

A related issue: i'm trying to bring in netcdf format files with he
help of gdal_translate and r.in.gdal.

You will need to build gdal from source WITH netcdf support. For this,
you will need to install Netcdf itself first, of course.

Refer to gdal list (and it's archives first) in case of problems.

I get an error as follows:
GRASS 6.0.1 (test2):~ > r.in.gdal -oe
input=/home/vishal/NCEPdata/lhtfl.sfc.gauss.2004.nc output=lhfttrial
[1]+ Done d.m
Segmentation fault

Also, i'm not sure if the GDAL version i have supports netcdf:
This is the GDAL i have, satraight from the Breezy repository:
GDAL 1.2.6.0, released 2005/03/13

Read above.

So i'm wondering that to have both the grass-qgis plugin, and netcdf
support, i need to compile gdal with both??

You need to build:

1. gdal with netcdf; you need gdal 1.3.x to use the recent version of
gdal-grass plugin

2. Grass 6.x (or build it from source; avoid using 6.01 if you can,
6.02 should be fine; 6.02 + recent changes from CVS even better; 6.1
_might_ be risky, recently many things have been going on, but the new
functionalities are worth it :), you decide)

3. gdal-grass plugin (you don't build "gdal with gdal-grass plugin";
gdal-grass is a standalone app.)

Have you read this?
http://grass.gdf-hannover.de/twiki/bin/view/GRASS/GrassQgisGdalOgrPlugin

thanks much!
cheers,

Cheerio and good luck.

Maciek

--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/