[GRASS-dev] Re: Live Earthquake Map: GRASS/PHP
Markus Neteler
neteler at itc.it
Mon May 22 06:27:24 EDT 2006
On Wed, Apr 26, 2006 at 09:34:40AM +0200, Markus Neteler wrote:
> >>> http://grass.itc.it/spearfish/php_grass_earthquakes.php
> >>> Recent Earthquakes: map generated by GRASS on the fly with PHP
The new machine (grass.itc.it) offers PHP 5, so I had to
rewrite the code.
The PHP4 code example is at
http://grass.itc.it/spearfish/php_grass_earthquakes_PHP4.php
and no longer works on that machine, not sure why (I don't
know much about PHP).
The new PHP5 code example is at
http://grass.itc.it/spearfish/php_grass_earthquakes.php
and also fails!
The debug output is:
echo \$LD_LIBRARY_PATH >> grasserrors2.txt;
echo \$PATH >> grasserrors2.txt;
echo \$GISRC >> grasserrors2.txt;
which prints:
/lib:/usr/lib:/usr/local/grass-6.1.cvs/lib
/bin:/usr/bin:/usr/local/bin:/usr/local/grass-6.1.cvs/bin:/usr/local/grass-6.1.cvs/scripts
/grass0/neteler/www/spearfish/.grassrc6_ll
ERROR: LOCATION_NAME not set
I don't understand why 'lynx' works (to fetch the USGS bulletin),
also 'convert' to make JPG from PNG, but the GRASS commands fail
with 'LOCATION_NAME not set'.
ls -la /usr/local/grass-6.1.cvs/bin | wc -l
288
GRASS is there...
There is still a map shows in the PHP page as I didn't remove the
output from the last run on the old machine.
Any ideas?
Markus
More information about the grass-dev
mailing list