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 07:56 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 12: | Line 13: | ||
# install dependency libraries; | # install dependency libraries; | ||
# build queuefiles, not packages, to automatically build any other dependencies | # build queuefiles, not packages, to automatically build any other dependencies | ||
- | sbopkg -k -i "proj gdal pdal blas" | + | sbopkg -k -i "proj gdal pdal blas lapack" |
+ | |||
+ | # switch to non-root | ||
+ | exit | ||
+ | |||
+ | # clone github repositories | ||
+ | mkdir -p ~/ | ||
+ | cd ~/ | ||
+ | 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.1724162164.txt.gz · Last modified: by hcho