Decompress the grads binary package to the/usr/local/grads Folder:
1. Unix/Linux:
In. cshrc:
Setenv gasdir/usr/local/grads/dat
Setenv gascrp/usr/local/grads/lib
Setenv path/usr/local/grads/bin: $ {path}
In. bashrc or. bash_profile:
Add the following command:
Export gasdir =/usr/local/grads/Data
Export gascrp =/usr/local/grads/lib
Alias grads =/usr/local/grads/bin/gradsc
Save [garly @ HYG-G ~] $ Source. bashrc
2. Windows:
Taking win32e grads (version 1.8sl11) installed in WINXP as an example, this version does not require X server.
1. Download grads-1.8sl11-win32e.exe;
2. Double-click and install it as prompted. install it in D:/pcgrads;
3. Set the environment: desktop-> right-click my computer and choose Properties-> advanced-> environment variable"
-> Select "path" in "system variables" and click "edit" to add D:/pcgrads/win32e.
-> Click "new" in "system variables"-> set the variable name "gaddir" with the variable value "D:/pcgrads/dat"
-> Click "new" in "system variables"-> set the variable name "gascrp" and the variable value "D:/pcgrads/lib"
4. Complete the settings and restart the system.
Note:
① The installation directory name should not contain spaces.
② The installation directory and working directory should be in the same drive letter; otherwise, errors may occur.