File: README

package info (click to toggle)
libgdal-grass 3.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 368 kB
  • sloc: cpp: 1,704; makefile: 100
file content (63 lines) | stat: -rw-r--r-- 2,077 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Standalone GRASS Drivers for GDAL and OGR
=========================================

This package contains standalone drivers for GRASS raster and vector
files that can be built after GDAL has been built and installed as an
"autoload" driver.

This is particularly useful in resolving problems with GRASS depending
on GDAL, but GDAL with GRASS support depending on GRASS.  With this
package you can configure and install GDAL normally (--without-grass), then
build and install GRASS normally and finally build and install this driver.

To build this driver it is necessary for it to find GDAL and GRASS support
files.  Typically the configure and build process would look something like:

./configure --with-gdal=/usr/local/bin/gdal-config --with-grass=/usr/local/grass-7.0.1
make
sudo make install

See also:

  https://gdal.org/
  https://grass.osgeo.org


---

FAQs
----


Question:

I am trying to install gdal-grass 3.1.3 on RedHat Enterprise Linux
advanced server 3.0. I have previously installed gdal 3.1.3 --without-grass,
and GRASS 7.0.1 with GDAL. I have tried to configure gdal-grass
with:

./configure --with-gdal=/usr/local/bin/gdal-config \
            --with-grass=/usr/local/grass-7.0.1

It seems to find gdal alright, but then balks at the Grass location. The
Grass location specified above is indeed the correct location. I have
also tried adding --with-grass=/usr/local/grass-7.0.1/lib, but with no
success. My error is:

...
checking for G_asprintf in -lgrass_gis ... no
configure: error: --with-grass=/usr/local/grass-7.0.1 requested, but
libraries not found?


Answer:

Your problem is likely to be solved by editing /etc/ld.so.conf to
include the locations of proj, gdal, grass, and geos. Specifically,
the full path to both gdal-config and geos-config, and the full paths
to the library locations of proj (often /usr/local/lib) and grass
(/usr/local/grass-7.0.1/lib). After editing ld.so.conf, run ldconfig,
and you should be good to go.

I ran into this problem this weekend (and posted for help to this
list), so it seems to be a pretty common issue.