Unfortunately, GRASS GIS development version package for 7.0 is not in a good shape now. I would suggest to compile GRASS GIS from the source code. (Edit: GRASS GIS 7.0 was released, so situation is different; this was valid for September 2014, however the compilation can be advantageous anyway.)
You need to install compile tools and dependencies, download source code using SVN, configure, compile and install.
The steps are described here:
http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu
Go through the sections:
- Dependencies
- Using pre-compiled dev Packages for PROJ.4, GEOS and GDAL
- Compile from source, subsection GRASS GIS
Here are the actual steps (partially mine, partially extracted from the wiki page):
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install \
build-essential \
flex make bison gcc libgcc1 g++ cmake ccache \
python python-dev \
python-opengl \
python-wxversion python-wxtools python-wxgtk2.8 \
python-dateutil libgsl0-dev python-numpy \
wx2.8-headers wx-common libwxgtk2.8-dev libwxgtk2.8-dbg \
libwxbase2.8-dev libwxbase2.8-dbg \
libncurses5-dev \
zlib1g-dev gettext \
libtiff-dev libpnglite-dev \
libcairo2 libcairo2-dev \
sqlite3 libsqlite3-dev \
libpq-dev \
libreadline6 libreadline6-dev libfreetype6-dev \
libfftw3-3 libfftw3-dev \
libboost-thread-dev libboost-program-options-dev liblas-c-dev \
resolvconf \
libjasper-dev \
subversion \
libav-tools libavutil-dev ffmpeg2theora \
libffmpegthumbnailer-dev \
libavcodec-dev \
libxmu-dev \
libavformat-dev libswscale-dev \
checkinstall \
libglu1-mesa-dev libxmu-dev
More dependencies:
sudo apt-get install libproj-dev
sudo apt-get install libgeos-dev
sudo apt-get install libgdal-dev
sudo apt-get install python-gdal
Navigate to the directory where you want the code and GRASS GIS to be compiled (e.g. ~/dev
or ~/bin
or /usr/local/src
or /opt/
, ...).
Then to get the latest code for 7.0 release use:
svn co https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0 grass70_release
Go to the directory which was created by svn
:
cd grass70_release
Configuration:
export CFLAGS="-O2 -Wall"
export CXXFLAGS="-O2 -Wall"
export LDFLAGS="-s"
./configure \
--enable-largefile=yes \
--with-nls \
--with-cxx \
--with-readline \
--with-pthread \
--with-proj-share=/usr/share/proj \
--with-geos=/usr/bin/geos-config \
--with-wxwidgets \
--with-cairo \
--with-opengl-libs=/usr/include/GL \
--with-freetype=yes --with-freetype-includes="/usr/include/freetype2/" \
--with-postgresql=yes --with-postgres-includes="/usr/include/postgresql" \
--with-sqlite=yes \
--with-mysql=yes --with-mysql-includes="/usr/include/mysql" \
--with-odbc=no \
--with-liblas=yes --with-liblas-config=/usr/bin/liblas-config
Compile:
make -j2
The number after -j
is number of cores which should be used for compilation (this may speed up the compilation, it does not influence the result).
Install:
sudo make install
sudo ldconfig
You can optionally not install but then you have to run GRASS GIS using full path to the source code directory (../grass70_release
), subdirectory bin
, file grass70
.
To update the source code later, use:
svn up
And then compile again.
Time to time, you need to recompile everything, so do
make distclean
and then start with configuration and continue with compilation and installation.