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
howtos:how_to_compile_grass_on_slackware [2026-04-09 12:32 am] hchohowtos:how_to_compile_grass_on_slackware [2026-04-09 12:33 am] (current) hcho
Line 36: Line 36:
 mkdir -p ~/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 > ~/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
Line 46: Line 46:
 cat << 'EOT' > ~/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 62: Line 62:
 EOT EOT
 chmod a+x ~/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.txt · Last modified: by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki