[GRASS-user] Problem installing GRASS Addons

Hello,

I have been trying to install the GRASS AddOns (in particlar I’d like to install i.landsat.toar) but no luck so far. I’ve done lots of searches on the web but no solution has worked for me. I’ve installed GRASS 6.4.2 (from the UbuntuGIS unstable repository) on Ubuntu 12.04. I tried installing the AddOns using the GUI.

Thanks,
Regie

Hi, I had the same problem and the only way that I could find in order to install Grass Addons on Ubuntu, was compiling Grass from source. If you need some help with that, let me know, I have the instructions to compile Grass on Ubuntu 12.04

On Fri, Jun 1, 2012 at 4:07 PM, Regie Alam <regie.alam@yahoo.com> wrote:

Hello,

I have been trying to install the GRASS AddOns (in particlar I’d like to install i.landsat.toar) but no luck so far. I’ve done lots of searches on the web but no solution has worked for me. I’ve installed GRASS 6.4.2 (from the UbuntuGIS unstable repository) on Ubuntu 12.04. I tried installing the AddOns using the GUI.

Thanks,
Regie


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin

Hi Regie

These are the instructions that I use to compile Grass 6.4.3svn on Ubuntu 12.04:

  1. Install the repository from UbuntuGIS (I noticed that you have done it)

  2. Install the following libraries (There are some libraries that I installed in order to compile Qgis, but I don’t remember which are for Grass and which for Qgis, they are mixed, so install them anyway)

sudo aptitude install freeglut3 lesstif2 libblas3gf libdap11 libdapclient3 libepsilon0 libfftw3-3 libfreexl1 libgdal1-1.7.0 libgeos-3.2.2 libgeos-c1 libgfortran3 libgif4 libhdf4-0-alt libhdf5-serial-1.8.4 liblapack3gf libmysqlclient18 libnetcdf6 libodbc1 libogdi3.2 libpq5 libproj0 libspatialite3 libwxbase2.8-0 libwxgtk2.8-0 libxerces-c28 libxss1 mysql-common odbcinst odbcinst1debian2 proj-bin proj-data python-numpy python-opengl python-support python-wxgtk2.8 python-wxversion tcl8.5 tk8.5 autotools-dev comerr-dev krb5-multidev libcurl4-gnutls-dev libdap-dev libdapserver7 libgcrypt11-dev libgdal1-dev libgeos-dev libgif-dev libgnutls-dev libgnutls-openssl27 libgnutlsxx27 libgpg-error-dev libgssrpc4 libhdf4-alt-dev libhdf5-serial-dev libidn11-dev libjasper-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libkadm5clnt-mit8 libkadm5srv-mit8 libkdb5-6 libkrb5-dev libldap2-dev libltdl-dev libmysqlclient-dev libnetcdf-dev libp11-kit-dev libpng12-dev libpq-dev libproj-dev librtmp-dev libspatialite-dev libsqlite3-dev libssl-dev libssl-doc libtasn1-3-dev libtool libxerces-c2-dev libxml2-dev unixodbc unixodbc-dev uuid-dev zlib1g-dev gdal-bin libgsl0ldbl libqt4-designer libqt4-help libqt4-scripttools libqt4-test libqtassistantclient4 libqtwebkit4 libqwt5-qt4 python-central python-gdal python-qt4 python-sip posstgres postgis subversion sqlite sqlitebrowser flex byacc libncurses5-dev libreadline6-dev libtiff4-dev ffmpeg libavcodec-dev libavcodec-extra-52 libavformat-dev libavformat-extra-53 libswscale-dev libswscale-extra-2 mesa-common-dev libglw1-mesa-dev tcl8.5-dev tk8.5-dev fftw-dev libblas-dev liblapack-dev lesstif2-dev libcairo2-dev libstdc++6-4.6-dev gettext build-essential libglu1-mesa-dev liblablgl-ocaml libqwt5-qt4-dev cmake bison pyuic4-dev-tools python-qt4-gl python-psycopg2 python-wxtools python3.2-dev python-rpy2 txt2tags doxygen graphviz libfcgi-dev libgsl0-dev

  1. Download Grass 6.4.3svn

cd ~/Downloads
svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_6_4 grass64_release
cd grass64_release

  1. Configure and compile:

CFLAGS=“-g -Wall” ./configure
–with-tcltk-includes=/usr/include/tcl8.5
–with-tcltk-libs=/usr/lib/tcl8.5
–with-blas=yes
–with-cairo=yes
–with-cairo-includes=/usr/include
–with-sqlite=yes
–with-mysql=yes
–with-mysql-includes=/usr/include/mysql
–with-mysql-libs=/usr/lib/x86_64-linux-gnu
–with-freetype=yes
–with-freetype-includes=/usr/include/freetype2
–with-freetype-libs=/usr/lib
–with-python=yes
–with-postgres=yes
–with-postgres-includes=“/usr/include/postgresql /usr/include/postgresql/internal”
–with-motif=yes
–with-lapack=yes
–with-odbc=yes
–with-nls=yes
–with-geos=yes
–with-readline=yes
–enable-64bit
–with-cxx
(You shouldn’t get any error, but if it appears, don’t follow to the next step and let us know the problem)

make
(You shouldn’t get any error, but if it appears, don’t follow to the next step and let us know the problem)

sudo make install
cd …

  1. You have compile Grass successfully. If you wish, you can delete the sources:

rm -fr ~/Download/grass64_release

  1. Now, you can install your addon.

cd ~/Grass/grass-addons/imagery/i.landsat.toar
make MODULE_TOPDIR=/usr/local/grass-6.4.3svn/
sudo make MODULE_TOPDIR=/usr/local/grass-6.4.3svn install

PD: If you wanna link Grass and Qgis, you need to compile Qgis, too.
Take into account that if you install Grass7, it is a version under development with some bugs.

On Fri, Jun 1, 2012 at 11:50 PM, Regie Alam <regie.alam@yahoo.com> wrote:

Hi David,

Thanks for your offer. I’ll try to have a go at it with guidance from your notes. I may also try compiling GRASS 7 (with guidance from your notes once again) from source as suggested by Matthew (posted in another email within the user group).

Thanks,
Regie


From: David Montoya <jdmonto0@gmail.com>
To: Regie Alam <regie.alam@yahoo.com>
Cc: grass-user@lists.osgeo.org
Sent: Friday, June 1, 2012 9:11:00 PM
Subject: Re: [GRASS-user] Problem installing GRASS Addons

Hi, I had the same problem and the only way that I could find in order to install Grass Addons on Ubuntu, was compiling Grass from source. If you need some help with that, let me know, I have the instructions to compile Grass on Ubuntu 12.04

On Fri, Jun 1, 2012 at 4:07 PM, Regie Alam <regie.alam@yahoo.com> wrote:

Hello,

I have been trying to install the GRASS AddOns (in particlar I’d like to install i.landsat.toar) but no luck so far. I’ve done lots of searches on the web but no solution has worked for me. I’ve installed GRASS 6.4.2 (from the UbuntuGIS unstable repository) on Ubuntu 12.04. I tried installing the AddOns using the GUI.

Thanks,
Regie


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin


David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin

Hi,

2012/6/5 David Montoya <jdmonto0@gmail.com>:

[...]

6. Now, you can install your addon.

cd ~/Grass/grass-addons/imagery/i.landsat.toar
make MODULE_TOPDIR=/usr/local/grass-6.4.3svn/
sudo make MODULE_TOPDIR=/usr/local/grass-6.4.3svn install

why don't you simply use g.extension [1] or wxGUI extension manager [2]?

Martin

[1] http://grass.osgeo.org/grass64/manuals/html64_user/g.extension.html
[2] http://grass.osgeo.org/wiki/WxGUI#Extension_Manager

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

I tried to use g.extension, but without success. The only solution that works for me was through this process

On Tue, Jun 5, 2012 at 3:40 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2012/6/5 David Montoya <jdmonto0@gmail.com>:

[…]

  1. Now, you can install your addon.

cd ~/Grass/grass-addons/imagery/i.landsat.toar
make MODULE_TOPDIR=/usr/local/grass-6.4.3svn/
sudo make MODULE_TOPDIR=/usr/local/grass-6.4.3svn install

why don’t you simply use g.extension [1] or wxGUI extension manager [2]?

Martin

[1] http://grass.osgeo.org/grass64/manuals/html64_user/g.extension.html
[2] http://grass.osgeo.org/wiki/WxGUI#Extension_Manager


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin

2012/6/6 David Montoya <jdmonto0@gmail.com>:

I tried to use g.extension, but without success. The only solution that
works for me was through this process

well, and could you post the exact error message? It's hard to guess otherwise.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa