howtos:how_to_compile_grass_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_on_slackware [2026-02-20 08:10 am] – ↷ Page name changed from howtos:how_to_compile_grass_gis_on_slackware to howtos:how_to_compile_grass_on_slackware hcho | howtos:how_to_compile_grass_on_slackware [2026-04-09 12:33 am] (current) – hcho | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== How to compile GRASS GIS on Slackware ====== | + | ====== How to compile GRASS on Slackware ====== |
| - | This HOWTO explains how to compile [[https:// | + | This HOWTO explains how to compile [[https:// |
| <code bash> | <code bash> | ||
| Line 19: | Line 19: | ||
| # clone github repositories | # clone github repositories | ||
| - | mkdir -p ~/usr/local/src | + | mkdir -p ~/src |
| - | cd ~/usr/local/src | + | cd ~/src |
| git clone https:// | git clone https:// | ||
| git clone https:// | git clone https:// | ||
| Line 31: | Line 31: | ||
| # build grass | # build grass | ||
| - | ./build.sh -m -a -g >& ~/usr/local/ | + | ./build.sh -m -a -g >& ~/ |
| # install pkgconfig config | # install pkgconfig config | ||
| - | mkdir -p ~/usr/ | + | mkdir -p ~/ |
| cd ../grass | cd ../grass | ||
| - | sed 's#/usr/ | + | sed ' |
| - | if ! echo $PKG_CONFIG_PATH | grep -q $HOME/usr/ | + | if ! echo $PKG_CONFIG_PATH | grep -q $HOME/ |
| - | echo ' | + | echo ' |
| . ~/ | . ~/ | ||
| fi | fi | ||
| # create grass script | # create grass script | ||
| - | mkdir ~/usr/ | + | mkdir ~/ |
| - | cat << ' | + | cat << ' |
| #!/bin/sh | #!/bin/sh | ||
| - | grass_master=" | + | grass_master=" |
| # workaround to avoid the annoying ~/ | # workaround to avoid the annoying ~/ | ||
| if [ $# -eq 0 ]; then | if [ $# -eq 0 ]; then | ||
| Line 61: | Line 61: | ||
| fi | fi | ||
| EOT | EOT | ||
| - | chmod a+x ~/usr/ | + | chmod a+x ~/ |
| - | if ! echo $PATH | grep -q $HOME/usr/local/bin; then | + | if ! echo $PATH | grep -q $HOME/ |
| - | echo ' | + | echo ' |
| . ~/ | . ~/ | ||
| fi | fi | ||
| </ | </ | ||
howtos/how_to_compile_grass_on_slackware.1771600206.txt.gz · Last modified: by hcho
