[GRASS-user] installing Grass 7 on ubuntu 11.04

Hi,

I am finding it difficult to install Grass 7 on my pc. I use Ubuntu 11.04. I have tried to install it using the instructions given in the link http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu. However, I am able to download and install the dependencies.

Another thing is how the command ./configure is to be used on Ubuntu 11.04. the terminal says the ./configure command not found though the necessary compiler is already been installed on the machine.

(Can I download the binary file from here http://grass.fbk.eu/grass70/binary/linux/snapshot/ and install from here ? Though again I am unable to run the installation script given there or extracting the tar file)

Thanks.

Manish

Hi,

On 31 October 2012 17:34, Manish Gautam <manish.gautam29@gmail.com> wrote:

...
Another thing is how the command ./configure is to be used on Ubuntu 11.04.
the terminal says the ./configure command not found though the necessary
compiler is already been installed on the machine.

Are you in the right directory (in the folder with source codes)? Is
configure script executable (chmod u+x configure)? It is always good
idea for me to confirm these things at first.

Note that once you get ./configure working, you will need to set
parameters for configure script (listed here
http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS).

Vaclav

manish,
remember that you have to be in the folder in which you downloaded the source code, before ./configure
-vishal

On Wed, Oct 31, 2012 at 9:59 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

Hi,

On 31 October 2012 17:34, Manish Gautam <manish.gautam29@gmail.com> wrote:

Another thing is how the command ./configure is to be used on Ubuntu 11.04.
the terminal says the ./configure command not found though the necessary
compiler is already been installed on the machine.

Are you in the right directory (in the folder with source codes)? Is
configure script executable (chmod u+x configure)? It is always good
idea for me to confirm these things at first.

Note that once you get ./configure working, you will need to set
parameters for configure script (listed here
http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS).

Vaclav


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


Vishal K. Mehta, PhD
Scientist
Stockholm Environment Institute - US
133 D St Suite F
Davis CA 95616
www.sei-us.org

[forgot to cc to the list]

Manish Gautam:

I am finding it difficult to install Grass 7 on my pc. I use Ubuntu 11.04.
I have tried to install it using the instructions given in the link
http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu. However, I am able
to download and install the dependencies.

Could you please post the exact command you instructed? And, any positive or
negative output?

Another thing is how the command ./configure is to be used on Ubuntu 11.04.
the terminal says the ./configure command not found though the necessary
compiler is already been installed on the machine.

Actually, the "configure" executable file/program is to be ran from within the
directory in which it is located, i.e. the grass source code root directory.

From within which directory do you try to execute ./configure? And along with

which parameters?

(Can I download the binary file from here
http://grass.fbk.eu/grass70/binary/linux/snapshot/ and install from here ?

I haven't tried that yet. Maybe someone else can help with this.

Though again I am unable to run the installation script given there or
extracting the tar file)

Nikos

Hi,

Thanks for your responses.

I followed till this step
http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS
(about the ./configure command not working earlier, this time it
worked as I didn't use the ubuntu repository to install rest of the
prerequisites, but downloaded manually and moved to the source code
directory and then configured it accordingly).

In the step of Grass_GIS, ./configure worked (but it says error:
unabale to locate TIFF includes, rest worked).

the step -

compile & install

make -j2 && sudo make install && sudo ldconfig

says "include/Make/Vars.make:1: include/Make/Platform.make: No such
file or directory
make: *** No rule to make target `include/Make/Platform.make'. Stop."

and here I am stuck.

-

Manish

On 31 October 2012 22:44, Nikos Alexandris <nik@nikosalexandris.net> wrote:

[forgot to cc to the list]

Manish Gautam:

> I am finding it difficult to install Grass 7 on my pc. I use Ubuntu 11.04.
> I have tried to install it using the instructions given in the link
> http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu. However, I am able
> to download and install the dependencies.

Could you please post the exact command you instructed? And, any positive or
negative output?

> Another thing is how the command ./configure is to be used on Ubuntu 11.04.
> the terminal says the ./configure command not found though the necessary
> compiler is already been installed on the machine.

Actually, the "configure" executable file/program is to be ran from within the
directory in which it is located, i.e. the grass source code root directory.

From within which directory do you try to execute ./configure? And along with
which parameters?

> (Can I download the binary file from here
> http://grass.fbk.eu/grass70/binary/linux/snapshot/ and install from here ?

I haven't tried that yet. Maybe someone else can help with this.

> Though again I am unable to run the installation script given there or
> extracting the tar file)

Nikos

Manish Gautam wrote:

make -j2 && sudo make install && sudo ldconfig

says "include/Make/Vars.make:1: include/Make/Platform.make: No such file or directory
make: *** No rule to make target `include/Make/Platform.make'. Stop."

This indicates that the configure script didn't complete.
Platform.make is generated by configure.

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

Hi Manish,
please make sure that all requirements for GRASS are fulfilled. Using ./configure --help will show you all switches that can be set. In your particular case is the libtiff-dev package from Ubuntu missing. Use this command:

apt-get install libtiff-dev

to install the development files (header) for libtiff. This will solve the tiff error.
Please have a look at [1] and install all missing dependencies using apt-get or aptitude.

Best regards
Soeren

[1] http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu#Dependencies

···

2012/11/1 Manish Gautam <manish.gautam29@gmail.com>

Hi,

Thanks for your responses.

I followed till this step
http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS
(about the ./configure command not working earlier, this time it
worked as I didn’t use the ubuntu repository to install rest of the
prerequisites, but downloaded manually and moved to the source code
directory and then configured it accordingly).

In the step of Grass_GIS, ./configure worked (but it says error:
unabale to locate TIFF includes, rest worked).

the step -

compile & install

make -j2 && sudo make install && sudo ldconfig

says “include/Make/Vars.make:1: include/Make/Platform.make: No such
file or directory
make: *** No rule to make target `include/Make/Platform.make’. Stop.”

and here I am stuck.

Manish

On 31 October 2012 22:44, Nikos Alexandris <nik@nikosalexandris.net> wrote:

[forgot to cc to the list]

Manish Gautam:

I am finding it difficult to install Grass 7 on my pc. I use Ubuntu 11.04.
I have tried to install it using the instructions given in the link
http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu. However, I am able
to download and install the dependencies.

Could you please post the exact command you instructed? And, any positive or
negative output?

Another thing is how the command ./configure is to be used on Ubuntu 11.04.
the terminal says the ./configure command not found though the necessary
compiler is already been installed on the machine.

Actually, the “configure” executable file/program is to be ran from within the
directory in which it is located, i.e. the grass source code root directory.

From within which directory do you try to execute ./configure? And along with
which parameters?

(Can I download the binary file from here
http://grass.fbk.eu/grass70/binary/linux/snapshot/ and install from here ?

I haven’t tried that yet. Maybe someone else can help with this.

Though again I am unable to run the installation script given there or
extracting the tar file)

Nikos


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

On 1 November 2012 13:32, Manish Gautam <manish.gautam29@gmail.com> wrote:

...
worked as I didn't use the ubuntu repository to install rest of the
prerequisites, but downloaded manually and moved to the source code
directory and then configured it accordingly

Note that manual downloading and compiling of source codes is usually
not necessary. Using packages from Ubuntu repository should be
sufficient.

If not you can use ubuntu-gis ppa repository. This is how you add it
to your system:

apt-get -y install python-software-properties
add-apt-repository ppa:ubuntugis/ppa
apt-get -y update

But to be honest, now I'm not sure if this ppa repository, is really necessary.

By the way, you may be interested also in this thread:
http://osgeo-org.1560.n6.nabble.com/Please-update-quot-Compile-on-Ubuntu-quot-page-in-Wiki-td4999519.html

Vaclav

Hi,

Thanks again. This time I am getting the following problems :

1. So, when I run ./configure after installing Proj 4, GEOS and GDAL,
this error comes

checking for tcl.h... no
configure: error: *** Unable to locate Tcl includes.

2.and using this

--with-tcltk-includes="/usr/include/tcl8.5/"

It shows the following message:

"checking for location of Tcl/Tk includes... /usr/include/tcl8.5/
configure: error: *** Tcl/Tk includes directory /usr/include/tcl8.5/
does not exist. "

3. do I need to run this "svn checkout
https://svn.osgeo.org/grass/grass/trunk&quot; ?

it gives this message : " svn: OPTIONS of
'https://svn.osgeo.org/grass/grass/trunk’: could not connect to server
(https://svn.osgeo.org) "
[is it because of the proxy in the internet connection I am using ? I
tired it several times but it never got connected.]

4. so I skipped the above step and instead downloaded the grass 7
source files and extracted it in the source directory. then i ran
./configure \ and got the following error

" checking whether to use FFMPEG... yes
checking for location of FFMPEG includes... /usr/include/libavcodec
/usr/include/libavformat /usr/include/libswscale
configure: error: *** FFMPEG includes directory
/usr/include/libavcodec does not exist. "

-

Thanks,

Regards.

On 2 November 2012 13:11, Vaclav Petras <wenzeslaus@gmail.com> wrote:

On 1 November 2012 13:32, Manish Gautam <manish.gautam29@gmail.com> wrote:

...
worked as I didn't use the ubuntu repository to install rest of the
prerequisites, but downloaded manually and moved to the source code
directory and then configured it accordingly

Note that manual downloading and compiling of source codes is usually
not necessary. Using packages from Ubuntu repository should be
sufficient.

If not you can use ubuntu-gis ppa repository. This is how you add it
to your system:

apt-get -y install python-software-properties
add-apt-repository ppa:ubuntugis/ppa
apt-get -y update

But to be honest, now I'm not sure if this ppa repository, is really necessary.

By the way, you may be interested also in this thread:
http://osgeo-org.1560.n6.nabble.com/Please-update-quot-Compile-on-Ubuntu-quot-page-in-Wiki-td4999519.html

Vaclav

Hi,

be sure to have the proxy also for https
enabled for svn.

Markus

Manish Gautam:

This time I am getting the following problems :

1. So, when I run ./configure after installing Proj 4, GEOS and GDAL,
this error comes

checking for tcl.h... no
configure: error: *** Unable to locate Tcl includes.

Are they installed?

2.and using this

--with-tcltk-includes="/usr/include/tcl8.5/"

It shows the following message:

"checking for location of Tcl/Tk includes... /usr/include/tcl8.5/
configure: error: *** Tcl/Tk includes directory /usr/include/tcl8.5/
does not exist. "

# What do you get by instructing
sudo dpkg -l | grep tcl

3. do I need to run this "svn checkout
https://svn.osgeo.org/grass/grass/trunk&quot; ?

Only if you want to download GRASS 7 (=development version, aka grass_trunk)
via SVN.

it gives this message : " svn: OPTIONS of
'https://svn.osgeo.org/grass/grass/trunk’: could not connect to server
(https://svn.osgeo.org) "
[is it because of the proxy in the internet connection I am using ? I
tired it several times but it never got connected.]

4. so I skipped the above step and instead downloaded the grass 7
source files and extracted it in the source directory. then i ran
./configure \ and got the following error

" checking whether to use FFMPEG... yes
checking for location of FFMPEG includes... /usr/include/libavcodec
/usr/include/libavformat /usr/include/libswscale
configure: error: *** FFMPEG includes directory
/usr/include/libavcodec does not exist. "

You probably have to install these also! Please check the
<http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu#Dependencies&gt; and try
to install all of them. Or try directly (you can also remove the "\" and put
all in one line):

sudo apt-get install \
ffmpeg ffmpeg2theora libffmpegthumbnailer-dev \
libavcodec-dev libavformat-dev \
libxmu-dev libswscale-dev

Nikos

thank you all for your suggestion. finally it is installed and working fine.

-

Regards,

Manish

On 4 November 2012 03:25, Nikos Alexandris <nik@nikosalexandris.net> wrote:

Manish Gautam:

This time I am getting the following problems :

1. So, when I run ./configure after installing Proj 4, GEOS and GDAL,
this error comes

checking for tcl.h... no
configure: error: *** Unable to locate Tcl includes.

Are they installed?

2.and using this

--with-tcltk-includes="/usr/include/tcl8.5/"

It shows the following message:

"checking for location of Tcl/Tk includes... /usr/include/tcl8.5/
configure: error: *** Tcl/Tk includes directory /usr/include/tcl8.5/
does not exist. "

# What do you get by instructing
sudo dpkg -l | grep tcl

3. do I need to run this "svn checkout
https://svn.osgeo.org/grass/grass/trunk&quot; ?

Only if you want to download GRASS 7 (=development version, aka grass_trunk)
via SVN.

it gives this message : " svn: OPTIONS of
'https://svn.osgeo.org/grass/grass/trunk’: could not connect to server
(https://svn.osgeo.org) "
[is it because of the proxy in the internet connection I am using ? I
tired it several times but it never got connected.]

4. so I skipped the above step and instead downloaded the grass 7
source files and extracted it in the source directory. then i ran
./configure \ and got the following error

" checking whether to use FFMPEG... yes
checking for location of FFMPEG includes... /usr/include/libavcodec
/usr/include/libavformat /usr/include/libswscale
configure: error: *** FFMPEG includes directory
/usr/include/libavcodec does not exist. "

You probably have to install these also! Please check the
<http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu#Dependencies&gt; and try
to install all of them. Or try directly (you can also remove the "\" and put
all in one line):

sudo apt-get install \
ffmpeg ffmpeg2theora libffmpegthumbnailer-dev \
libavcodec-dev libavformat-dev \
libxmu-dev libswscale-dev

Nikos