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