I'm an idiot. <br><br>As soon as I saw your configure line I remembered about the long list of configure options. In fact, there is a nifty script on the Wiki that carefully documents everything you need to compile grass on Ubuntu.
<br><br>That script happens to have been written by an idot...me.<br><br>Thanks,<br><br>David<br><br><br><br><div><span class="gmail_quote">On 7/11/07, <b class="gmail_sendername">Helena Mitasova</b> <<a href="mailto:hmitaso@unity.ncsu.edu">
hmitaso@unity.ncsu.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">David,<br><br>this is the configure I use to compile GRASS with everything (gdal,
<br>proj and grass, all CVS versions)<br>in my home directory:<br><br>CFLAGS="-g -Wall" ./configure \<br>--prefix=/local/home/helena/grassdev \<br>--with-cxx \<br>--enable-64bit --with-libs=/usr/lib64 --enable-largefile --enable-
<br>shared \<br>--with-bindir=/local/home/helena/grassdev \<br>--with-gdal=/local/home/helena/gsgdal/bin/gdal-config \<br>--with-gdal-includes=/local/home/helena/gsgdal/include \<br>--with-gdal-libs=/local/home/helena/gsgdal/lib \
<br>--with-proj=yes \<br>--with-proj-includes=/local/home/helena/gproj/include \<br>--with-proj-libs=/local/home/helena/gproj/lib \<br>--with-proj-share=/local/home/helena/gproj/share/proj \<br>--with-motif \<br>--with-python
<br><br>I also had to add the path here (advice from Markus):<br><br>system-wide add it to (if you can use sudo )<br> /etc/ld.so.conf<br>Then run<br>ldconfig<br><br>solution just for your login:<br>modify $HOME/.bashrc or $HOME/.cshrc depending on your shell
<br>and define it there. The GRASS path is added automatically,<br>so just add /home/helena/gdal/lib there (or in /etc/ld.so.conf).<br><br>I have been compiling and running the GRASS CVS version from home<br>directory for years so hopefully it will work for you too,
<br><br>Helena<br><br>Helena Mitasova<br>Dept. of Marine, Earth and Atm. Sciences<br>1125 Jordan Hall, NCSU Box 8208,<br>Raleigh NC 27695<br><a href="http://skagit.meas.ncsu.edu/~helena/">http://skagit.meas.ncsu.edu/~helena/
</a><br><br><br><br>On Jul 11, 2007, at 7:18 PM, David Finlayson wrote:<br><br>> First time compiling GRASS on SuSE. I do not have su privileges on<br>> this machine and so I am forced to build my entire tool chain in my
<br>> home directory ($HOME)=/we/davidf).<br>><br>> So far fftw-3.1.2, gdal-1.4.2 and proj-4.5.0 have all compiled<br>> using the following:<br>><br>> ./configure --prefix=$HOME<br>> make<br>> make install
<br>><br>> Which has built a directory tree in $HOME like this:<br>><br>> $HOME/bin<br>> $HOME/include<br>> $HOME/lib<br>> $HOME/man<br>> $HOME/share<br>><br>> Now, trying the same with grass results in a configure error:
<br>><br>> albacore src/grass-6.2.cvs_src_snapshot_2007_07_07> ./configure --<br>> prefix=$HOME --enable-64bit --with-libs=/usr/lib64<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>> ... etc ...<br>> checking for deflate in -lz... yes<br>> checking for location of External PROJ.4 includes...<br>> checking for proj_api.h... no
<br>> configure: error: *** Unable to locate External PROJ.4 includes.<br>><br>> However, proj_api.h is in $HOME/include<br>><br>> I have tried adding --includedir=$HOME/include to the above but<br>> that didn't change anything. I'm sure it's something simple. How
<br>> do I tell configure where my local includes are (and why didn't --<br>> prefix=$HOME work?)<br>><br>> Thanks,<br>><br>><br>><br>> --<br>> David Finlayson, Ph.D.<br>> Operational Geologist
<br>><br>> U.S. Geological Survey<br>> Pacific Science Center<br>> 400 Natural Bridges Drive<br>> Santa Cruz, CA 95060, USA<br>><br>> Tel: 831-427-4757, Fax: 831-427-4748, E-mail: <a href="mailto:dfinlayson@usgs.gov">
dfinlayson@usgs.gov</a><br>> _______________________________________________<br>> grass-dev mailing list<br>> <a href="mailto:grass-dev@grass.itc.it">grass-dev@grass.itc.it</a><br>> <a href="http://grass.itc.it/mailman/listinfo/grass-dev">
http://grass.itc.it/mailman/listinfo/grass-dev</a><br><br>_______________________________________________<br>grass-dev mailing list<br><a href="mailto:grass-dev@grass.itc.it">grass-dev@grass.itc.it</a><br><a href="http://grass.itc.it/mailman/listinfo/grass-dev">
http://grass.itc.it/mailman/listinfo/grass-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>David Finlayson, Ph.D.<br>Operational Geologist<br><br>U.S. Geological Survey<br>Pacific Science Center<br>400 Natural Bridges Drive
<br>Santa Cruz, CA 95060, USA<br><br>Tel: 831-427-4757, Fax: 831-427-4748, E-mail: <a href="mailto:dfinlayson@usgs.gov">dfinlayson@usgs.gov</a>