[GRASS-user] Re: Installing r.area
LeeDaniel
Lee.Daniel.1986 at gmail.com
Thu Jul 29 14:30:09 EDT 2010
Hi everyone,
Thanks for the responses. I'm really sorry that I'm struggling so much here,
but... It just isn't working for me.
Hamish:
I tried building GRASS from source and failed miserably. I know, it must
sound pathetic. I went through all of the packages that are required for
GRASS - really all of them - following the instructions on
http://grass.osgeo.org/wiki/Compile_and_Install. This was my process:
- Downloaded all of the packages listed on the requirements page
(http://grass.osgeo.org/grass64/source/REQUIREMENTS.html) with the package
manager. Yes, some of them weren't there and I had to compile and install
them from source. I managed that.
- Made /usr/local/src/grass and gave myself rights to it.
- Downloaded GRASS with
svn checkout https://svn.osgeo.org/grass/grass/branches/develbranch_6
grass6_devel
Had to do it as super user because I didn't have rights to /usr/local/src/.
No problem, did it as a super user and then gave myself rights to it.
- Navigated into /usr/local/src/grass6_devel/ and tried ./configure
Results:
The terminal spit out a bunch of things that found and then was unable to
find PROJ.4. Here's the message:
checking for location of External PROJ.4 includes...
checking for proj_api.h... no
configure: error: *** Unable to locate External PROJ.4 includes.
Now, I know I have PROJ.4 because I installed it with the package manager.
And it's still there. So... I'm confused. But this seems like a whole lot of
trouble for just one little extension - I think the problem is more that I
can't get the extension to compile.
I ended up reinstalling GRASS with my packet manager. It works now. But I
still don't have the extension.
Since I didn't compile GRASS myself, I'm not sure exactly where the module
top directory is. I've got opt/grass/etc/python/grass, for example, and a
bunch of other grass folders (12 of them) and am not exactly sure where that
is. It seems like it might be in /opt/grass/ but I'm not sure. That's
definitely where my script directory is. However, when I navigate into
~/grass-addons/raster/r.area/ and type
./configure MODULE_TOPDIR=/opt/grass/
it says it can't find the file or folder "./configure". Also very strange.
And all I want to do is compile this stupid add on!
If I search my computer for any files/folders with "grass* -dev*" I don't
find a thing.
Anyway... Sadly, I haven't managed to come any further.
Leonardo:
Thanks for the tip. As you'll see above, I can't seem to use ./configure on
the GRASS source... It always fails to find PROJ.4, even though PROJ.4 is
installed, and the command "locate PROJ.4" doesn't help either. Therefore I
don't come any further.
I've searched for any grass raster directory to move r.area to and it's not
anywhere on my computer.
*sigh* So it looks like I'm still miles away from getting this addon. I also
tried it with g.extension. Here's the error I get:
Fetching <r.area> from GRASS-Addons SVN (be patient)...
A r.area/main.c
A r.area/description.html
A r.area/Makefile
Ausgecheckt, Revision 42949.
Compiling <r.area>...
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/bin.i686-pc-linux-gnu
mkdir -p
/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include/grass
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/lib
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/bin
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/etc
mkdir -p
/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/driver
mkdir -p
/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/driver/db
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/fonts
test -d OBJ.i686-pc-linux-gnu || mkdir -p OBJ.i686-pc-linux-gnu
gcc -I/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include
-O2 -DPACKAGE=\""grassmods"\"
-I/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include -o
OBJ.i686-pc-linux-gnu/main.o -c main.c
main.c:19:23: fatal error: grass/gis.h: Datei oder Verzeichnis nicht
gefunden
compilation terminated.
make: *** [OBJ.i686-pc-linux-gnu/main.o] Fehler 1
FEHLER: Compilation failed, sorry. Please check above error messages.
"Datei oder Verzeichnis nicht gefunden" = Didn't find file or folder.
It doesn't find grass/gis.h. I definitely DO have gcc, I also installed that
with the packet manager. Just to be sure, I installed the newest gcc for
every language that I could see in YaST.
I'm at my wit's end...
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Installing-r-area-tp5340139p5347803.html
Sent from the Grass - Users mailing list archive at Nabble.com.
More information about the grass-user
mailing list