[GRASS-user] Help with installing GRASS 7 on linux mint 14
דור פרידמן
dof1985 at gmail.com
Wed Mar 27 13:43:21 PDT 2013
Hi Eric,
It seems that I can only run *v.net.distance* properly on grass 7, so I
have tried to install it as you suggested. I had some problems as follows:
Running *sudo ppa-purge ubuntugis-testing* have shown some errors (I can't
fetch them from the terminal, since they haven't been saved, though I can
run the command again). It was very similar to those I had last time;
structured with a letter, i.e. W or E with some text like: "failed to
fetch...."
Next, when running configuration, I have receieved the following:
dof1985 at dof1985-K53E ~/source/grass7_trunk $ ./configure
--prefix=/usr/local/grass70 --enable-largefile --with-sqlite
--with-freetype=yes --with-freetype-includes=/usr/include/freetype2
--with-proj-share=/usr/share/proj --with-python --with-cxx --with-wxeidgets
--with-tcltk-includes=/usr/include/tcl8.5 --with-odbc=yes --enable-64bit
--with-geos=yes --with-cairo=yes
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for full floating-point support... yes
checking for pwd... /bin/pwd
checking for source directory... /home/dof1985/source/grass7_trunk
checking for build directory... /home/dof1985/source/grass7_trunk
checking for svnversion... /usr/bin/svnversion
checking for MacOSX App... no
checking for MacOSX architectures... no
checking for MacOSX SDK... no
checking how to build libraries... shared
checking for additional include dirs...
checking for additional library dirs...
checking for a BSD compatible install... /usr/bin/install -c
checking for flex... lex
checking for yywrap in -ll... no
checking for lex... no
configure: error: *** Unable to locate lex.
Is there something I've done wrong?
Best,
Dor
2013/3/26 Eric Goddard <egoddard1010 at gmail.com>
> Sorry, Linux Mint 14 is based on ubuntu 12.10 (Quantal Quetzal).
> Looking at the package lists at
> https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing, it
> appears that they don't have packages built for that version of
> ubuntu, which is why you are getting the not found errors. It looks
> like you'll have to compile grass7 manually for Linux Mint 14.
>
> Since that ppa is unsupported on your version, you should install
> ppa-purge and remove it:
> sudo apt-get install ppa-purge
> sudo ppa-purge ubuntugis-testing
>
> You can compile grass by adding the ppa:ubuntugis/ubuntugis-unstable
> repository (which will work for Linux Mint 14) to install dependencies
> and then compile grass7. I compile several other packages as well so
> the following list of dependencies may be overkill for just grass but
> it should get the job done:
>
> sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
> sudo apt-get update
>
> sudo apt-get install build-essential gdal libgeos-dev libspatialite3
> libspatialite-dev libcurl4-nss-dev byacc ncurses-dev bison gsl-bin
> libgsl0-dev libexpat1-dev libexpat1 libproj0 libproj-dev libgeotiff2
> libgeotiff-dev libwxgtk2.8-dev swig python-psycopg2 python-numpy
> python-sip python-sip-dev python-wxgtk2.8 curl unixodbc unixodbc-dev
> libkml0 libkml-dev proj-bin flex libpng12-0 libpng12-dev
> mesa-common-dev freeglut3-dev tcl-dev tk8.5-dev libfftw3-3
> libfftw3-dev libxmu-dev libqwt-dev libspatialindex-dev libopenjpeg-dev
> git subversion libcairo2-dev libpoppler-dev libboost1.50-all-dev
>
> #Download the grass7 source to /home/<username>/source:
> mkdir ~/source
> cd ~/source
> svn checkout https://svn.osgeo.org/grass/grass/trunk grass7_trunk
> cd grass_trunk
>
> #Configure grass7 for compile. This command varies based on what
> options you need but this should work:
> ./configure --prefix=/usr/local/grass70 --enable-largefile
> --with-sqlite --with-freetype=yes
> --with-freetype-includes=/usr/include/freetype2
> --with-proj-share=/usr/share/proj --with-python --with-cxx
> --with-wxwidgets --with-tcltk-includes=/usr/include/tcl8.5
> --with-odbc=yes --enable-64bit --with-geos=yes --with-cairo=yes
>
> #if configure runs without reporting any errors you're ready to compile:
> make
>
> #Make will take awhile to complete, but if no errors are returned
> you're ready to install.
> sudo make install
>
> You should now have grass7 installed to /usr/local/grass7. The final
> step is to link the grass7 executable to your /usr/local/bin/ folder
> so that you can run grass from the command line by just typing
> 'grass70':
> sudo ln -s /usr/local/grass70/bin/grass70 /usr/local/bin/grass70
>
>
> Eric
>
>
>
>
>
>
> On Tue, Mar 26, 2013 at 4:47 AM, דור פרידמן <dof1985 at gmail.com> wrote:
> > After running the commands I've received the following:
> >
> > Fetched 1,639 kB in 11s (145 kB/s)
> > W: Failed to fetch
> >
> http://ppa.launchpad.net/ubuntugis/ubuntugis-testing/ubuntu/dists/nadia/main/source/Sources
> > 404 Not Found
> >
> > W: Failed to fetch
> >
> http://ppa.launchpad.net/ubuntugis/ubuntugis-testing/ubuntu/dists/nadia/main/binary-amd64/Packages
> > 404 Not Found
> >
> > W: Failed to fetch
> >
> http://ppa.launchpad.net/ubuntugis/ubuntugis-testing/ubuntu/dists/nadia/main/binary-i386/Packages
> > 404 Not Found
> >
> > W: Failed to fetch
> >
> http://ppa.launchpad.net/ubuntugis/ubuntugis-testing/ubuntu/dists/quantal/main/source/Sources
> > 404 Not Found
> >
> > W: Failed to fetch
> >
> http://ppa.launchpad.net/ubuntugis/ubuntugis-testing/ubuntu/dists/quantal/main/binary-amd64/Packages
> > 404 Not Found
> >
> > W: Failed to fetch
> >
> http://ppa.launchpad.net/ubuntugis/ubuntugis-testing/ubuntu/dists/quantal/main/binary-i386/Packages
> > 404 Not Found
> >
> > E: Some index files failed to download. They have been ignored, or old
> ones
> > used instead.
> > dof1985 at dof1985-K53E ~ $ sudo apt-get install grass70
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > E: Unable to locate package grass70
> >
> > Can it be fixed?
> >
> > Thanks
> >
> >
> > 2013/3/25 Eric Goddard <egoddard1010 at gmail.com>
> >>
> >> Adding the repository for testing just provides the package manager
> >> with the locations of the packages--you still have to install grass.
> >> After you add the repository, from the terminal run:
> >> sudo apt-get update
> >> sudo apt-get install grass70
> >>
> >> The first command refreshes the repositories, and the second one will
> >> download grass7 and its dependencies. To run grass7, enter grass7 into
> >> the terminal.
> >>
> >> Eric
> >>
> >>
> >> On Mon, Mar 25, 2013 at 10:09 AM, Micha Silver <micha at arava.co.il>
> wrote:
> >> > On 03/25/2013 04:16 PM, Markus Neteler wrote:
> >> >
> >> > On Mon, Mar 25, 2013 at 3:01 PM, דור פרידמן <dof1985 at gmail.com>
> wrote:
> >> > ...
> >> >
> >> > However due to my lack of experience with Linux and due
> >> > to the fact that the Grass 7 has not yet come within an installation
> >> > package, I couldn't make it work.
> >> >
> >> > I recently updated the download pages:
> >> >
> >> > http://grass.osgeo.org/download/software/linux/
> >> > http://grass.osgeo.org/download/software/ms-windows/
> >> > http://grass.osgeo.org/download/software/mac-osx/
> >> >
> >> > with links to the GRASS 7 snapshot installers. Perhaps that helps?
> >> >
> >> >
> >> > I also try to run grass70 and/or grass70. in the command console, but
> it
> >> > didn't help.
> >> >
> >> >
> >> > Also, what do these commands show:
> >> > which grass
> >> > which grass70
> >> > ??
> >> >
> >> >
> >> > What didn't work exactly? Then we may fix it.
> >> >
> >> > Markus
> >> > _______________________________________________
> >> > grass-user mailing list
> >> > grass-user at lists.osgeo.org
> >> > http://lists.osgeo.org/mailman/listinfo/grass-user
> >> >
> >> > This mail was received via Mail-SeCure System.
> >> >
> >> >
> >> >
> >> > --
> >> > Micha Silver
> >> > GIS Consultant, Arava Development Co.
> >> > http://www.surfaces.co.il
> >> >
> >> >
> >> > _______________________________________________
> >> > grass-user mailing list
> >> > grass-user at lists.osgeo.org
> >> > http://lists.osgeo.org/mailman/listinfo/grass-user
> >> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130327/5fe65f8c/attachment-0001.html>
More information about the grass-user
mailing list