GIS Lounge


  • Home
  • What is GIS?
  • GIS Career
  • Learn GIS
  • Maps
  • Contact

You are here: Home » GIS Software » GRASS How To: Acquisition/Compilation of GRASS Source Code

GRASS How To: Acquisition/Compilation of GRASS Source Code

Filed in GIS Software by Contributor on November 13, 1997 • 0 Comments

Share this article:

Related Content:

GRASS How To: References Acquisition/Installation of GRASS Binaries

The GRASS binaries for Linux tend to work. Why would anyone want to mess with the source code?

Let’s try to answer this with another question: “Why can’t I get the source code to my GIS, so I can see how it works, and maybe fix some things to work the way I like them?” (You probably know the answers to this question, at least for many commercial software packages.)

If you want to

Add any of the numerous existing alpha and contributed GRASS functions,

Understand how a function works (did any programming shortcuts or performance enhancements affect the accuracy of a function? Can I improve the performance of a function?)

Revise or enhance the code (if you do this, please see Appendix D!),

Try compiling several tens of megabytes of source code, this appendix is for you. Also check Appendix E.

First, you need to acquire the source code, and the GRASS Installation Guide. You may also want to get the GRASS Programmer’s Manual and User’s Reference Manual. To do this:

ftp moon.cecer.army.mil
login: anonymous
password: your email address
cd pub/grass/grass4.1/release/source
get README.4
get README.5
image
mget s4* (or s5*, your choice)
cd ../../documents
get installGuide.ps.Z
cd /manuals/programmer/postscript
get progman.ps.Z
cd ../../user/postscript
get refman.ps.Z
bye

Don’t forget this site. There are several tutorials on some of GRASS’ more advanced programs in the pub/grass/grass4.1/document directory. There are two options for source code (I’m only discussing GRASS version 4.14 here, though version 4.15 is also available) The pub/grass/outgoing directory contains many contributed functions (and many other candidates for enhancing your system).

Follow the README.4 file for installing GRASS version 4.14 (which is sometimes called version 4.1.4) source code. Follow the README.5 file for installing GRASS version 4.15 (which is sometimes called version 4.1.5) source code.

After installing the source code, uncompress and print installGuide.ps.Z (or the troff version, if you prefer that and got it from a neighboring directory). You might also want to uncompress and print refman.ps.Z and progman.ps.Z at the same time. Note that progman.ps.Z is called the programmer’s manual, but also contains valuable information about data formats and directory structures. Advanced users may also want to know the GRASS system utilities, even if they won’t be calling them in code.

Now, use the GRASS Installation Guide (from installGuide.ps.Z) to guide yourself through the installation. The thickness of this document may at first be intimidating. However, if you installed Linux yourself, you should be ready to tackle a GRASS installation. Don’t be surprised if a function or two does not compile on your system. I have a couple of uncompiled functions on my own Linux system. Fortunately, these are functions that I don’t use… Some day I’ll get back to them, fix them, and compile them!?

Here is a late-breaking addition, on how to install the newly released GRASS 4.2 from Baylor University This text is as provided by Baylor, unedited by myself due to its release only a few days ago. Please note the similarity with other installations..

Previous: Acquisition/Installation of GRASS Binaries | Next: GRASS 4.2 Quick Start

By: David A. Hastings –  The Geographic Information Systems: GRASS How To

You Might Also Be Interested In:

  • GRASS How To: The Future of GRASS?GRASS How To: The Future of GRASS?
  • Acquisition/Installation of GRASS BinariesAcquisition/Installation of GRASS Binaries
  • GRASS How To: ReferencesGRASS How To: References
  • GRASS How To: How to Get GRASS Running on Your Linux-based ComputerGRASS How To: How to Get GRASS Running on Your Linux-based Computer


Tags: gis, GRASS, linux



Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

« GRASS How To: References
GRASS How To: GRASS 4.2 Quick Start »

Subscribe

Fill out your e-mail address to receive a weekly newsletter from GIS Lounge:

Advertise on GIS Lounge

GIS Book Pick

The Look of Maps: An Examination of Cartographic Design is a cartographic classic by Arthur H. Robinson originally published in 1952. The book was based on Robinson’s doctoral research “which investigated the relationship between science and art in cartography and the resultant refinement of graphic techniques in mapmaking to present dynamic geographic information.”

  • Popular
  • Recent
  • Comments
  • Archives
  • Open and Machine Readable Now the Default for Government Data
  • Largest Atlas in the World Created using ArcGIS
  • What is GIS?
  • Creating Simple Maps with Microsoft Excel
  • GIS Job Listing Sites
  • Open and Machine Readable Now the Default for Government Data
  • Google Map Redesign
  • Crowdsource Power Plant Data Project
  • Shapefile Viewers
  • Timelapse Satellite Imagery – View Changes on Earth over Time
  • Mark: A very easy way to do this!!! Thank you.
  • Richard Ortwine: I am currenlty working on a project that will show there are more liquor stores in zip codes that ha
  • John Chioles: This is a phenomenal move on the part of the USGS! I remeber getting imagery was cost prohibitive, n
  • aizolnai: this is yesterday's news, but it's so well illustrated that it's defo worth a (re)read, thx for the
  • Web GIS System: FYI. We have collected 1,545 responses in our 2012 GIS salary survey to our vendors and customers pa

Connect


Introduction to GIS

New to GIS? Start by reading What is GIS for an introduction to Geographic Information Systems. Next visit the GIS 101 launch page for basics of GIS articles.

Getting Started with GIS

To understand the different options for GIS education read How to Learn GIS , GIS distance learning programs, and GIS certification versus certificate programs

GIS Jobs

Interested in GIS as a career? Visit GISGig.com for GIS job listings.A good first article is the Building a Career in GIS which provides an introduction to the building blocks of GIS employment .

Subscribe

Enter your email address below to receive updates each time we publish new content.

Connect

Connect with us on the following social media platforms.

Subscribe via RSS Feed Connect on Facebook Follow Me on Twitter Connect on Google Plus Join Our LinkedIn Group

GIS Resources

  • What is GIS?
  • GIS 101
  • GIS Career
  • Cartography
  • Maps
  • GIS Software
  • Learn GIS
  • Data
  • Free GIS

Colophon

  • Advertising on GIS Lounge
  • Submitting to GIS Lounge
  • Contact GIS Lounge
  • Subscribe
  • Site Map
© 2013 GIS Lounge. All rights reserved.