[GRASS-de] Installationsprobleme mit gdal-grass-1.3.1

Otto Dassau dassau at gdf-hannover.de
Di Jan 10 16:34:09 CET 2006


Am Dienstag, 10. Januar 2006 16:12 schrieb Maik Trömel:
> Also, ich habe jetzt einfach mal alles gemacht was du gesagt hast:

Hallo Maik,

> maik at ewcgis:~/gdal-grass-1.3.1> ./configure
> --with-gdal=/usr/local/bin/gdal-conf
> ig \
>
>  > --with-grass=/usr/local/grass-6.1.cvs && make && sudo make install
>
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking for ranlib... ranlib
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bi
>n/ld: conftest2.o: relocation R_X86_64_32 can not be used when making a
> shared object
> ; recompile with -fPIC
> conftest2.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> checking for g++ -shared ... no(1)
> checking for ld -shared ... no
> user supplied gdal-config (/usr/local/bin/gdal-config)
> using /usr/local/lib/gdalplugins as GDAL shared library autoload directory
> checking for G_asprintf in -lgrass_gis... no
> configure: error: --with-grass=/usr/local/grass-6.1.cvs requested, but
> libraries
>  not found!

=> Der Pfad zur GRASS  Installation ist falsch...

... bei mir liegt GRASS hier, bei Dir kann es woanders sein oder eine andere 
GRASS Version: /usr/local/grass-6.1.cvs. Ohne den richtigen Pfad funktioniert 
es nicht, den musst du erst finden.

und am besten du löschst vorher auch mal den Ordner /usr/local/lib/gdalplugins 
mit allem was drin ist, denn der scheint nicht aktuell zu sein.

danach alles nochmal...

  Otto

> maik at ewcgis:~/gdal-grass-1.3.1> ls /usr/local/lib/gdalplugins/
> gdal_GRASS.so
>
> maik at ewcgis:/usr/local/lib/gdalplugins> gdalinfo --formats | grep GRASS
> ERROR 1: /usr/local/lib/gdalplugins/gdal_GRASS.so: cannot open shared
> object file: No such file or directory
> ERROR 1: /usr/local/lib/gdalplugins/gdal_GRASS.so: cannot open shared
> object file: No such file or directory
>
> maik at ewcgis:/usr/local/lib/gdalplugins> ogrinfo --formats | grep GRASS
> maik at ewcgis:/usr/local/lib/gdalplugins>
>
> Wird ogr_GRASS.so von gdal-grass erzeugt oder schon von grass?

beim kompilieren von gdal-grass, wenn die Pfade zu deiner bereits vorhandenen 
GRASS Installation richtig angegeben sind.

> Vielleicht ist ja vorher shon etwas schief gelaufen.

Jupp :-), aber du bist kurz davor!

   Otto

> Gruß
> Maik
>
> Otto Dassau wrote:
> >Am Dienstag, 10. Januar 2006 15:20 schrieb Maik Trömel:
> >>Ich habe deine Pfade angepasst und sonst deine Befehle übernommen. Es
> >>kommt immernoch die gleiche Fehlermeldung.
> >
> >Hallo,
> >
> >ich habe es bei mir nochmal Schritt fuer Schritt gemacht, die Beschreibung
> > ist hier, du musst nur wieder die Pfade zu GRASS anpassen:
> >
> >a) gdal-grass-1.3.1.1.tar.gz heruntergeladen und entpackt
> >
> >b) in gdal-grass-1.3.1 gewechselt
> >
> >c) configure && make && sudo make install
> >(gdal-grass nach Anleitung etwas angepasst laufen lassen)
> >
> >./configure --with-gdal=/usr/local/bin/gdal-config \
> >--with-grass=/usr/local/grass-6.1.cvs && make && sudo make install
> >checking for gcc... gcc
> >checking for C compiler default output file name... a.out
> >checking whether the C compiler works... yes
> >checking whether we are cross compiling... no
> >checking for suffix of executables...
> >checking for suffix of object files... o
> >checking whether we are using the GNU C compiler... yes
> >checking whether gcc accepts -g... yes
> >checking for gcc option to accept ANSI C... none needed
> >checking for g++... g++
> >checking whether we are using the GNU C++ compiler... yes
> >checking whether g++ accepts -g... yes
> >checking for ranlib... ranlib
> >checking for g++ -shared ... yes
> >user supplied gdal-config (/usr/local/bin/gdal-config)
> >using /usr/local/lib/gdalplugins as GDAL shared library autoload directory
> >checking for G_asprintf in -lgrass_gis... yes
> >configure: creating ./config.status
> >config.status: creating Makefile
> >make: Für das Ziel »default« ist nichts zu tun.
> >Password: (hier das Root-PW eingeben
> >install -d /usr/local/lib/gdalplugins
> >cp gdal_GRASS.so /usr/local/lib/gdalplugins
> >cp ogr_GRASS.so /usr/local/lib/gdalplugins
> >test -d /usr/local/share/gdal/grass || mkdir /usr/local/share/gdal/grass
> >test -d /usr/local/share/gdal/grass/etc ||
> >mkdir /usr/local/share/gdal/grass/etc
> >cp /usr/local/grass-6.1.cvs/etc/ellipse.table
> > /usr/local/share/gdal/grass/etc cp
> > /usr/local/grass-6.1.cvs/etc/datum.table /usr/local/share/gdal/grass/etc
> > dassau at berlin:/daten/software/gdal-grass-1.3.1> ls
> > /usr/local/lib/gdalplugins/ gdal_GRASS.so  ogr_GRASS.so
> >
> >hatte keine Fehlermeldung ogr_GRASS.so und gdal_GRASS.so sollten nun
> >in dem Verzeichnis /usr/local/lib/gdalplugins liegen, dass vorher
> > automatisch erstellt wurde.
> >
> >Schauen, ob alles da ist:
> >
> >gdalinfo --formats | grep GRASS
> >  GRASS (ro): GRASS Database Rasters (5.7+)
> >ogrinfo --formats | grep GRASS
> >  GRASS
> >
> >Du musst also eigentlich im Makefile nichts veraendert, das sollte alles
> > so passen.
> >
> > Viel Glueck
> >       Otto
> >
> >>gdal.GRASS.so hat er anfangs auch nicht gefunden. Nachdem ich allerdings
> >>die Datei gefunden hatte und im Makefile den genauen Pfad angegeben habe
> >>war die Datei kein Problem mehr. ogr_GRASS.so finde ich allerdings nicht
> >>auf den Rechner. Kann es vielleicht mit irgendwelchen Rechten zu tun
> >>haben, dass die Datei nicht erzeugt wird?
> >>
> >>Gruß
> >>Maik
> >>
> >>Otto Dassau wrote:
> >>>Am Dienstag, 10. Januar 2006 14:51 schrieb Maik Trömel:
> >>>>Hallo Grass-User,
> >>>>
> >>>>ich habe ein Problem mit der Installation von gdal-grass-1.3.1.
> >>>>
> >>>>GRASS selbst lies sich in allen möglichen Versionen problemlos
> >>>>installieren. Bei der Installation von gdal-grass läuft "./configure"
> >>>> und "make" problemlos durch. Wenn ich "make install" mache kommt
> >>>> folgende Meldung:
> >>>
> >>>Moin Maik,
> >>>
> >>>was hast du denn als Optionen angegeben bei ./configure. Vergleiche mal
> >>>die README in dem Ordner gdal-grass-1.3.1:
> >>>
> >>>Das musst du dann noch ein wenig anpassen bei Bedarf:
> >>>
> >>>./configure --with-gdal=/usr/local/bin/gdal-config \
> >>>--with-grass=/usr/local/grass-6.0.0
> >>>make
> >>>sudo make install
> >>>
> >>>Gruesse
> >>> Otto
> >>>
> >>>>#/bin/true grass57dataset.o -L/usr/local/grass-6.0.2cvs//lib -lgrass_I
> >>>>-lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_gproj
> >>>>-lgrass_vect -lgrass_dbmibase -lgrass_dbmiclient -L/usr/local/lib
> >>>> -lgdal -o /usr/local/lib/gdal_GRASS.so
> >>>>
> >>>>/bin/true ogrgrassdriver.o ogrgrassdatasource.o ogrgrasslayer.o
> >>>>-L/usr/local/grass-6.0.2cvs//lib -lgrass_I -lgrass_vask -lgrass_gmath
> >>>>-lgrass_gis -lgrass_datetime -lgrass_gproj -lgrass_vect
> >>>> -lgrass_dbmibase -lgrass_dbmiclient -L/usr/local/lib -lgdal  -o
> >>>> ogr_GRASS.so
> >>>>
> >>>>install -d /usr/local/lib/gdalplugins
> >>>>
> >>>>cp /usr/local/lib/gdal_GRASS.so /usr/local/lib/gdalplugins
> >>>>
> >>>>cp ogr_GRASS.so /usr/local/lib/gdalplugins
> >>>>
> >>>>cp: Aufruf von stat für â nicht möglich: Datei oder Verzeichnis nicht
> >>>>gefunden
> >>>>
> >>>>make: *** [install] Fehler 1
> >>>>
> >>>>
> >>>>Ich kann das File ogr_GRASS.so nicht auf meinem Rechner finden. Hat
> >>>>jemand eine Idee was hier schief läuft?
> >>>>
> >>>>Grüße
> >>>>Maik Trömel
> >>>>
> >>>>
> >>>>_______________________________________________
> >>>>grass-de mailing list
> >>>>grass-de at grass-verein.de
> >>>>https://grass-verein.de/mailman/listinfo/grass-de
> >>
> >>_______________________________________________
> >>grass-de mailing list
> >>grass-de at grass-verein.de
> >>https://grass-verein.de/mailman/listinfo/grass-de
>
> _______________________________________________
> grass-de mailing list
> grass-de at grass-verein.de
> https://grass-verein.de/mailman/listinfo/grass-de

-- 
GDF Hannover - Solutions for spatial data analysis and remote sensing
Office Hannover     -      Mengendamm 16d    -     D - 30177 Hannover
Internet: www.gdf-hannover.de,               Email: info at gdf-hannover.de
Phone : ++49.(0)511.39088507,              Fax: ++49.(0)511.39088508