[GRASSLIST:1847] r.in.gdal not found

Now that grass is built and installed (with gdal) without any errors, I have a couple of user questions.

First issue... when I try and import a non-georefrenced file with the command:

GRASS:~ > r.in.gdal in=~/projects/wrf/map_imagery/typestand2325/legend1.tif out=legend1

I get the message:

bash: r.in.gdal: command not found
GRASS:~ >

Kirk R. Wythers wrote:

Now that grass is built and installed (with gdal) without any errors, I
have a couple of user questions.

First issue... when I try and import a non-georefrenced file with the
command:

GRASS:~ > r.in.gdal
in=~/projects/wrf/map_imagery/typestand2325/legend1.tif out=legend1

I get the message:

bash: r.in.gdal: command not found

This indicates that r.in.gdal isn't installed. Try running "make" and
"make install" again.

--
Glynn Clements <glynn.clements@virgin.net>

On Nov 20, 2003, at 2:37 PM, Glynn Clements wrote:

Kirk R. Wythers wrote:

Now that grass is built and installed (with gdal) without any errors, I
have a couple of user questions.

First issue... when I try and import a non-georefrenced file with the
command:

GRASS:~ > r.in.gdal
in=~/projects/wrf/map_imagery/typestand2325/legend1.tif out=legend1

I get the message:

bash: r.in.gdal: command not found

This indicates that r.in.gdal isn't installed. Try running "make" and
"make install" again.

OK... I tried re-doing make and make install. But, I get the same message. If I do find on r.in.gdal, I get:

GRASS:/usr/local/bin > sudo find / -name r.in.gdal
/Users/kirkw/tmp/grass-5.0.3/dist.powerpc-apple-darwin7.0.0/tcltkgrass/module/r.in.gdal
/Users/kirkw/tmp/grass-5.0.3/src/raster/r.in.gdal
/Users/kirkw/tmp/grass-5.0.3/src/tcltkgrass/module/r.in.gdal
/usr/local/grass5/tcltkgrass/module/r.in.gdal
GRASS:/usr/local/bin >

Take two:

I tried a make clean, then a ./configure with the same config file:

./configure \
--with-grass=no \
--with-png=internal \
--with-jpeg=internal \
--with-gif=internal \
--with-libtiff=internal \
--with-geotiff=internal \
--with-libz=internal \
--without-ogr \
--without-pg \
--without-ogdi \
--without-python

and a new make/make install. The failed with the errors:

g++ -c -Wall -fPIC -O2 cpl_list.cpp -o cpl_list.o
rm -f cpl.a
ar rc cpl.a cpl_conv.o cpl_error.o cpl_string.o cpl_vsisimple.o cplgetsymbol.o cpl_dir.o cpl_path.o cpl_csv.o cpl_findfile.o cpl_vsil_unix_stdio_64.o cpl_minixml.o cpl_multiproc.o cpl_list.o
ranlib cpl.a
ranlib: file: cpl.a(cpl_vsil_unix_stdio_64.o) has no symbols
(cd gcore; make)
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 gdalopen.cpp -o gdalopen.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 -DINST_DATA=\"/usr/local/share/gdal\" \
         gdaldrivermanager.cpp -o gdaldrivermanager.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 gdaldriver.cpp -o gdaldriver.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 gdaldataset.cpp -o gdaldataset.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 gdalrasterband.cpp -o gdalrasterband.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 gdal_misc.cpp -o gdal_misc.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 rasterio.cpp -o rasterio.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 gdalrasterblock.cpp -o gdalrasterblock.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 gdalcolortable.cpp -o gdalcolortable.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 gdalmajorobject.cpp -o gdalmajorobject.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 overview.cpp -o overview.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 gdaldefaultoverviews.cpp -o gdaldefaultoverviews.o
(cd alg; make)
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 gdalmediancut.cpp -o gdalmediancut.o
g++ -c -I.. -I../port -I../gcore -I../ogr -Wall -fPIC -O2 gdaldither.cpp -o gdaldither.o
make[1]: *** No rule to make target `gdal_crs.o', needed by `default'. Stop.
make: *** [core-target] Error 2

What is gdal_crs.o?

--
Glynn Clements <glynn.clements@virgin.net>

------------------------------------------------------------------------
Kirk R. Wythers tel: 612.625.2261
Dept. of Forest Resources fax: 612.625.5212
University of Minnesota email: kwythers@umn.edu
------------------------------------------------------------------------

Kirk R. Wythers wrote:

>> Now that grass is built and installed (with gdal) without any errors,
>> I
>> have a couple of user questions.
>>
>> First issue... when I try and import a non-georefrenced file with the
>> command:
>>
>> GRASS:~ > r.in.gdal
>> in=~/projects/wrf/map_imagery/typestand2325/legend1.tif out=legend1
>>
>> I get the message:
>>
>> bash: r.in.gdal: command not found
>
> This indicates that r.in.gdal isn't installed. Try running "make" and
> "make install" again.

OK... I tried re-doing make and make install. But, I get the same
message.

Normally I would ask what messages you get from "make", but in the
light of your subsequent comments, it's a safe bet that they will
amount to "can't find the GDAL library".

Presumably r.in.gdal is listed in error.log, indicating that it failed
to build.

I tried a make clean, then a ./configure with the same config file:

./configure \
--with-grass=no \
--with-png=internal \
--with-jpeg=internal \
--with-gif=internal \
--with-libtiff=internal \
--with-geotiff=internal \
--with-libz=internal \
--without-ogr \
--without-pg \
--without-ogdi \
--without-python

I was referring to re-building GRASS, not GDAL. But if GDAL itself
won't build/install, r.in.gdal won't build either.

and a new make/make install. The failed with the errors:

make[1]: *** No rule to make target `gdal_crs.o', needed by `default'.
Stop.
make: *** [core-target] Error 2

What is gdal_crs.o?

No idea; you appear to have a more recent version of GDAL than I do.

Problems with GDAL itself are more likely to get a useful response if
they are addressed to a GDAL-related mailing list or other forum.

--
Glynn Clements <glynn.clements@virgin.net>