CLAWRIM Wiki

The Computational Lab for Advanced Water Resources Informatics and Modeling

User Tools

Site Tools


howtos:how_to_compile_grass_on_slackware

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next 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 hchohowtos: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://grass.osgeo.org/|GRASS GIS]] on Slackware.+This HOWTO explains how to compile [[https://grass.osgeo.org/|GRASS]] on Slackware.
  
 <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://github.com/HuidaeCho/grass-build-scripts.git git clone https://github.com/HuidaeCho/grass-build-scripts.git
 git clone https://github.com/OSGeo/grass.git git clone https://github.com/OSGeo/grass.git
Line 31: Line 31:
  
 # build grass # build grass
-./build.sh -m -a -g >& ~/usr/local/src/grass/build.log+./build.sh -m -a -g >& ~/src/grass/build.log
  
 # install pkgconfig config # install pkgconfig config
-mkdir -p ~/usr/local/share/pkgconfig+mkdir -p ~/local/share/pkgconfig
 cd ../grass cd ../grass
-sed 's#/usr/local/grass[^/ ]*#'$HOME'/usr/local/src/grass/dist.x86_64-pc-linux-gnu#g' grass.pc > ~/usr/local/share/pkgconfig/grass.pc +sed 's#/local/grass[^/ ]*#'$HOME'/src/grass/dist.x86_64-pc-linux-gnu#g' grass.pc > ~/local/share/pkgconfig/grass.pc 
-if ! echo $PKG_CONFIG_PATH | grep -q $HOME/usr/local/share/pkgconfig; then +if ! echo $PKG_CONFIG_PATH | grep -q $HOME/local/share/pkgconfig; then 
-  echo 'export PKG_CONFIG_PATH="$HOME/usr/local/share/pkgconfig:$PKG_CONFIG_PATH"' > ~/.bash_profile+  echo 'export PKG_CONFIG_PATH="$HOME/local/share/pkgconfig:$PKG_CONFIG_PATH"' > ~/.bash_profile
   . ~/.bash_profile   . ~/.bash_profile
 fi fi
  
 # create grass script # create grass script
-mkdir ~/usr/local/bin +mkdir ~/local/bin 
-cat << 'EOT' > ~/usr/local/bin/grass+cat << 'EOT' > ~/local/bin/grass
 #!/bin/sh #!/bin/sh
-grass_master="$HOME/usr/local/src/grass/bin.x86_64-pc-linux-gnu/grass"+grass_master="$HOME/src/grass/bin.x86_64-pc-linux-gnu/grass"
 # workaround to avoid the annoying ~/grassdata/world_latlong_wgs84 feature # workaround to avoid the annoying ~/grassdata/world_latlong_wgs84 feature
 if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
Line 61: Line 61:
 fi fi
 EOT EOT
-chmod a+x ~/usr/local/bin/grass +chmod a+x ~/local/bin/grass 
-if ! echo $PATH | grep -q $HOME/usr/local/bin; then +if ! echo $PATH | grep -q $HOME/local/bin; then 
-  echo 'export PATH="$HOME/usr/local/bin:$PATH"' > ~/.bash_profile+  echo 'export PATH="$HOME/local/bin:$PATH"' > ~/.bash_profile
   . ~/.bash_profile   . ~/.bash_profile
 fi fi
 </code> </code>
howtos/how_to_compile_grass_on_slackware.1771600206.txt.gz · Last modified: by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki