Modify a pre-existing program: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
New page: == Modify a program or library. == A section on modifications is not yet written. == Install a program or library. == Programs and libraries can be installed to your sandbox or the shared...
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Modify a program or library. ==
== Modify a program or library. ==
A section on modifications is not yet written.
NOTE:  This section on modifications is incomplete.
 


== Install a program or library. ==
== Install a program or library. ==
Programs and libraries can be installed to your sandbox or the shared public $G installation directories.  The installation directory is named <code>install_$GARCH</code>; where <code>$GARCH</code> is the platform name (e.g. <code>install_linux</code> or <code>install_WIN32</code>).  By default the installation directory is at the top of your sandbox; which can be your home directory or in the $G user area.
Programs and libraries can be installed to your sandbox or the shared public $G installation directories.  The installation directory is named <code>install_$GARCH</code>; where <code>$GARCH</code> is the platform name (e.g. <code>install_linux</code> or <code>install_WIN32</code>).  By default the installation directory is at the top of your sandbox; which can be your home directory or in the $G user area.


Advanced users can designate any location by setting the <code>$GTO</code> variable. This variable should be used with caution and you should fully understand its usage before setting it.  When it is not set make files will prevent you from building or installing programs into any sub-directory of the public $G area.  This protects public areas from accidental corruption.
Advanced users can designate any installation location by setting the <code>$GTO</code> variable. This variable should be used with caution and you should fully understand its usage before setting it.  When it is not set the make files will prevent you from building or installing programs into any sub-directory of the public $G area.  This helps protects public areas from accidental corruption.
 
To set up an installation directory in your sandbox first you need to create the directory.  If you do not want to use either of the default locations you will also need to set the <code>GTO</code> variable to the parent directory.
 
<pre>
> mkdir  -p  $GROOT/users/$USER/my_sandbox/install_$GARCH/
> setenv  GTO  $GROOT/users/$USER/my_sandbox
</pre>
 
When you run <code>make install</code> software will be copied to the <code>$GTO/install_$GARCH/</code> directory.  Then you can install and test software in your sandbox without interfering with the public $G installations.
 
After you are confident the software works you can install it in the public area by setting <code>GTO</code> to <code>G</code>.  Always unset this when you are done to avoid unintentionally corrupting the public installations.
 
<pre>
> setenv  GTO  $G        # Allow installs into $G.
> make install            # Copy files to:  $G/install_$GARCH
> unsetenv  GTO          # GTO considered harmful.
</pre>

Latest revision as of 13:52, 27 August 2009

Modify a program or library.

NOTE: This section on modifications is incomplete.


Install a program or library.

Programs and libraries can be installed to your sandbox or the shared public $G installation directories. The installation directory is named install_$GARCH; where $GARCH is the platform name (e.g. install_linux or install_WIN32). By default the installation directory is at the top of your sandbox; which can be your home directory or in the $G user area.

Advanced users can designate any installation location by setting the $GTO variable. This variable should be used with caution and you should fully understand its usage before setting it. When it is not set the make files will prevent you from building or installing programs into any sub-directory of the public $G area. This helps protects public areas from accidental corruption.

To set up an installation directory in your sandbox first you need to create the directory. If you do not want to use either of the default locations you will also need to set the GTO variable to the parent directory.

> mkdir   -p   $GROOT/users/$USER/my_sandbox/install_$GARCH/
> setenv  GTO  $GROOT/users/$USER/my_sandbox

When you run make install software will be copied to the $GTO/install_$GARCH/ directory. Then you can install and test software in your sandbox without interfering with the public $G installations.

After you are confident the software works you can install it in the public area by setting GTO to G. Always unset this when you are done to avoid unintentionally corrupting the public installations.

> setenv  GTO  $G         # Allow installs into $G.
> make install            # Copy files to:  $G/install_$GARCH
> unsetenv  GTO           # GTO considered harmful.