[GRASS-user] grass7- problems caompiling

Hi,

I recently downgraded from ubuntu 11.10 (on a macbookpro 8.1) to 12.04 LTS (on a samsung 900X3E) - kernel version: 3.5.0-36-generic

On 11.10 I had grass7 running smoothly. On 12.04, after a frustrating night, I’m still not able to have it running.

I followed instructions on http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS, with minor alternations…

(yes, I do need 7 rather than 6.4…)


sudo apt-get install
build-essential
flex make bison gcc libgcc1 g++ cmake ccache
python python-dev python-qt4 python-qt4-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
libtiff4-dev libpnglite-dev
tcl8.5-dev tk8.5-dev
libcairo2 libcairo2-dev
sqlite3 libsqlite3-dev
libpq-dev
libreadline6 libreadline6-dev libfreetype6-dev
txt2tags
libfftw3-3 libfftw3-dev
libqt4-core libqt4-dbg libqt4-dev libqt4-gui libqt4-sql libqt4-qt3support
lsb-qt4 qt4-designer qt4-decommand not foundv-tools qt4-doc qt4-qtconfig
libapt-pkg-perl resolvconf
libjasper-dev
ruby
subversion
ffmpeg ffmpeg2theora
libffmpegthumbnailer-dev
libavcodec-dev
libxmu-dev
libavformat-dev libswscale-dev
checkinstall
libglu1-mesa-dev libxmu-dev


sudo apt-get install libmysqlclient-dev
sudo apt-get install netcdf-bin libnetcdf-dev

sudo apt-get install libproj-dev
sudo apt-get install libgeos-dev
sudo apt-get install libgdal-dev


cd fftw-2.1.5/
CFLAGS=“-fPIC” ./configurcommand not founde
make
make install


svn checkout https://svn.osgeo.org/grass/grass/trunk grass7_trunk

------output —>> Checked out revision 57205.

sudo ./configure
–enable-64bit
–with-libs=/lib64
–enable-largefile=yes
–with-nls
–with-cxx
–with-proj-share=/usr/share/proj
–with-geos=/usr/bin/geos-config
–with-python=yes
–with-wxwidgets
–with-cairo
–with-opengl-libs=/usr/include/GL
–with-motif
–with-ffmpeg=yes --with-ffmpeg-includes=“/usr/include/libavcodec /usr/include/libavformat /usr/include/libswscale /usr/include/libavutil”
–with-freetype=yes --with-freetype-includes=“/usr/include/freetype2/”
–with-postgres=yes
–with-postgresql=yes --with-postgres-includes=“/usr/include/postgresql”
–with-sqlite=yes
–with-mysql=yes --with-mysql-includes=“/usr/include/mysql”
–with-odbc=yes

------------changed /usr/lib64 to /lib64 → directory /usr/lib64 doens’t exist

if run without sudo, returns:
./configure: 621: ./configure: cannot create ./config.log: Permission denied


make -j2 && sudo checkinstall && sudo ldconfig

----------------------------------Output:

GRASS GIS 7.0.svn 57205 compilation log

Started compilation: Thu Jul 18 13:48:21 WEST 2013

Errors in:
/usr/local/src/grass7_trunk/scripts/v.krige

In case of errors please change into the directory with error and run ‘make’.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.

Finished compilation: Thu Jul 18 13:53:46 WEST 2013
make: *** [default] Error 1

When I type grass70, it returns: “command not found”.


Am I missing something really simple? IF so, sorry, but could someone help?

Thanks a lot.
António

On Fri, Jul 19, 2013 at 2:01 PM, António M. Rodrigues
<amcrgrodrigues@gmail.com> wrote:

Hi,

I recently downgraded from ubuntu 11.10 (on a macbookpro 8.1) to 12.04 LTS
(on a samsung 900X3E) - kernel version: 3.5.0-36-generic

On 11.10 I had grass7 running smoothly. On 12.04, after a frustrating night,
I'm still not able to have it running.

I followed instructions on
http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS, with
minor alternations....

(yes, I do need 7 rather than 6.4.....)

...

if run without sudo, returns:
./configure: 621: ./configure: cannot create ./config.log: Permission denied

You should compile as normal user, not root. In case the
Wiki instructions are wrong (dind't check). To fix above error, change the
file owner of config.log to your user from "root" user.

-------------------------------------------
make -j2 && sudo checkinstall && sudo ldconfig

...

Errors in:
/usr/local/src/grass7_trunk/scripts/v.krige

(this one you can ignore for now)

--
Finished compilation: Thu Jul 18 13:53:46 WEST 2013
make: *** [default] Error 1

This will be caused by compiling as sudo (bad idea).
You need to take ownership for all files in the source directory.

When I type grass70, it returns: "command not found".

It seems you did not run "[sudo] make install". hence the
start script is in

./bin.x86_64-unknown-linux-gnu/grass70

You can use GRASS from there, no need to install it if you are only
user on the machine.

hope that helps
Markus

António M. Rodrigues wrote:

if run without sudo, returns:
./configure: 621: ./configure: cannot create ./config.log: Permission denied

  sudo chown -R yourusername /usr/local/src/grass7_trunk

Am I missing something really simple? IF so, sorry, but could someone help?

You need write permission on the source tree.

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

It worked!

A few tweaks were needed but got there.

thank you very much,

António

···

2013/7/19 Glynn Clements <glynn@gclements.plus.com>

António M. Rodrigues wrote:

if run without sudo, returns:
./configure: 621: ./configure: cannot create ./config.log: Permission denied

sudo chown -R yourusername /usr/local/src/grass7_trunk

Am I missing something really simple? IF so, sorry, but could someone help?

You need write permission on the source tree.


Glynn Clements <glynn@gclements.plus.com>