howtos:how_to_compile_grass_gis_on_slackware
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howtos:how_to_compile_grass_gis_on_slackware [2024-08-20 08:16 am] – hcho | howtos:how_to_compile_grass_gis_on_slackware [2024-08-21 06:08 am] (current) – hcho | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| <code bash> | <code bash> | ||
| - | su - # switch to root | + | # switch to root |
| + | su - | ||
| # create postgres group and user for postgresql, one of pdal dependencies | # create postgres group and user for postgresql, one of pdal dependencies | ||
| Line 17: | Line 18: | ||
| exit | exit | ||
| - | # download source code | + | # clone github repositories |
| mkdir -p ~/ | mkdir -p ~/ | ||
| cd ~/ | cd ~/ | ||
| Line 24: | Line 25: | ||
| git clone https:// | git clone https:// | ||
| git clone https:// | git clone https:// | ||
| + | |||
| + | # create ~/ | ||
| + | cd grass-build-scripts | ||
| + | cp .grassbuildrc-example ~/ | ||
| + | |||
| + | # build grass | ||
| + | ./build.sh -m -a -g >& ~/ | ||
| + | |||
| + | # install pkgconfig config | ||
| + | mkdir -p ~/ | ||
| + | cd ../grass | ||
| + | sed ' | ||
| + | if ! echo $PKG_CONFIG_PATH | grep -q $HOME/ | ||
| + | echo ' | ||
| + | . ~/ | ||
| + | fi | ||
| + | |||
| + | # create grass script | ||
| + | mkdir ~/ | ||
| + | cat << ' | ||
| + | #!/bin/sh | ||
| + | grass_master=" | ||
| + | # workaround to avoid the annoying ~/ | ||
| + | if [ $# -eq 0 ]; then | ||
| + | last_used_mapset=$(awk ' | ||
| + | /^GISDBASE: / | ||
| + | / | ||
| + | /^MAPSET: / | ||
| + | END{ | ||
| + | printf " | ||
| + | }' ~/ | ||
| + | $grass_master " | ||
| + | else | ||
| + | $grass_master " | ||
| + | fi | ||
| + | EOT | ||
| + | chmod a+x ~/ | ||
| + | if ! echo $PATH | grep -q $HOME/ | ||
| + | echo ' | ||
| + | . ~/ | ||
| + | fi | ||
| </ | </ | ||
howtos/how_to_compile_grass_gis_on_slackware.1724163407.txt.gz · Last modified: by hcho
