Compile and Install: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
No edit summary
(updated)
Line 1: Line 1:
'''Q:''' How works compilation and installation of GRASS 5.7
'''Q:''' How works compilation and installation of GRASS 6


'''A:'''  
'''A:'''  


* checkout the grass57 module from cvs (read http://grass.itc.it/faq/cvs_howto.html grass CVS howto instructions)
* checkout the grass6 module from cvs (read http://grass.itc.it/faq/cvs_howto.html grass CVS howto instructions)
* It is wise that compilation processes are carried out as a normal user: If you want to get the source code in a place where you do not have write permissions (e.g. in /usr/local/src/cvs) just follow this:
* It is wise that compilation processes are carried out as a normal user: If you want to get the source code in a place where you do not have write permissions (e.g. in /usr/local/src/cvs) just follow this:
       cd /usr/local/src/cvs  
       cd /usr/local/src/cvs  
       su -c 'mkdir grass57;
       su -c 'mkdir grass6'
       chown yourlogin:yourgroup grass57'
       su -c 'chown yourlogin:yourgroup grass6'
* do a checkout (co) of the repository
* do a checkout (co) of the repository
       cvs -z3 co grass51
       cvs -z3 co grass6
* in the grass51 directory, you will find the precious INSTALL file, open it with your favourite pager/editor and read it carefully!
* in the grass6 directory, you will find the precious INSTALL file, open it with your favourite pager/editor and read it carefully!
* run configure with parameters to adapt the compile process to your own system. To see what options can be passed to it, run configure --help. Maybe you've saved parameters used for grass5-stable so that they can be used here. The minimum configure parameter set to pass to configure is (refers to GRASS 5.7 from CVS, not to 5.7.0 release):
* run configure with parameters to adapt the compile process to your own system. To see what options can be passed to it, run configure --help. The minimum set of configure parameters
is (refers to GRASS 6 from CVS, not to 6.x release):
       ./configure
       ./configure
It may (!) look like this:
It may (!) look like this:
       ./configure --with-postgres-libs=/usr/include/pgsql/libpq/ --with-postgres-includes=/usr/include/pgsql/ --with-freetype=yes
       ./configure --with-postgres-libs=/usr/include/pgsql/libpq --with-postgres-includes=/usr/include/pgsql --with-freetype=yes
       --with-freetype-includes=/usr/include/freetype2/ --with-motif --with-glw --with-glw-libs=/usr/local/lib --with-glw-includes=/usr/local/include/
       --with-freetype-includes=/usr/include/freetype2 --with-motif --with-glw --with-glw-libs=/usr/local/lib --with-glw-includes=/usr/local/include
Please note that the paths mentioned may widely vary due to the distribution used and the specific installation of packages like freetype2.
Please note that the paths mentioned may widely vary due to the distribution used and the specific installation of packages like freetype2.
* Let's make it!
* Let's make it!
       make
       make
* Once the installation process is finished, you're ready to install grass57 system wide.
* Once the installation process is finished, you're ready to install GRASS system wide.
       su -c 'make install'
       su -c 'make install'
* enjoy grass57:  
* enjoy GRASS:  
       grass57
       grass61

Revision as of 09:46, 28 May 2006

Q: How works compilation and installation of GRASS 6

A:

  • checkout the grass6 module from cvs (read http://grass.itc.it/faq/cvs_howto.html grass CVS howto instructions)
  • It is wise that compilation processes are carried out as a normal user: If you want to get the source code in a place where you do not have write permissions (e.g. in /usr/local/src/cvs) just follow this:
     cd /usr/local/src/cvs 
     su -c 'mkdir grass6'
     su -c 'chown yourlogin:yourgroup grass6'
  • do a checkout (co) of the repository
     cvs -z3 co grass6
  • in the grass6 directory, you will find the precious INSTALL file, open it with your favourite pager/editor and read it carefully!
  • run configure with parameters to adapt the compile process to your own system. To see what options can be passed to it, run configure --help. The minimum set of configure parameters

is (refers to GRASS 6 from CVS, not to 6.x release):

     ./configure

It may (!) look like this:

     ./configure --with-postgres-libs=/usr/include/pgsql/libpq --with-postgres-includes=/usr/include/pgsql --with-freetype=yes
     --with-freetype-includes=/usr/include/freetype2 --with-motif --with-glw --with-glw-libs=/usr/local/lib --with-glw-includes=/usr/local/include

Please note that the paths mentioned may widely vary due to the distribution used and the specific installation of packages like freetype2.

  • Let's make it!
     make
  • Once the installation process is finished, you're ready to install GRASS system wide.
     su -c 'make install'
  • enjoy GRASS:
     grass61