Main Installation Process === [1] initial configuration of Ubuntu in Ubuntu10.10. Open the terminal by using applications -- & gt; accessories -- & gt; terminal. Run: sudoapt-getinstallgfortransudoapt-getinstallb
Main Installation Process
========================================================
Ubuntu 10.10
[1] initial configuration of the Ubuntu system.
Open the terminal by using applications> accessories> terminal.
Run:
Sudo apt-get install gfortran
Sudo apt-get install build-essential
Sudo apt-get install libx11-dev
Sudo apt-get install csh
Sudo apt-get install tcsh
Sudo apt-get install gmt
[2] install GAMIT.
In terminal
Run:
Cd/opt/Gamit go to the/opt/GamitGlobk directory
Chmod + x install_software: Execute the install_software installation script to give the file executable attributes
./Install_software
[3] Set environment variables and command paths
In terminal
Run:
Echo $ SHELL to view the current shell
If it is/bin/bash
Then
There is a profile file under the etc directory of the system to edit the file:
$ Gedit/etc/profile
Add the shell statement to set the variable at the end.
PATH = "$ PATH:/opt/Gamit/gamit/bin:/opt/Gamit/com:/opt/Gamit/kf/bin"
HELP_DIR =/opt/Gamit/help/
Export PATH HELP_DIR after editing and saving the file, restart the system and the variable takes effect.
Enter
Tcsh
Enter/bin/csh
Restart, then the system is changed to the csh environment.
Add the following content to the cshrc file:
PATH = "$ PATH:/opt/Gamit/gamit/bin:/opt/Gamit/com:/opt/Gamit/kf/bin"
HELP_DIR =/opt/Gamit/help/
Export PATH HELP_DIR
After the file is edited and saved, restart the system and the variable takes effect.
[4] Verification
In terminal
Run:
Doy
If a date is displayed, the installation is successful.
========================================================== ========================
Problems encountered
========================================================== ========================
[1] HELP_DIR =/opt/Gamit/help/because I am not familiar with folders, I wrote "HELP_DIR =/opt/Gamit/help ",
The error is as follows:
** ERROR ** Opening help file.
Check that enviroment variable HELP_DIR points to directory with help files.
IOSTAT error 2 occurred openingdoy. hlp in doy
WARNING: 110228: 2352: 38.0 DOY/doy: IOSTAT error opening file doy. hlp ERROR 2
It takes a long time to check this error.
[2] Because Ubuntu and gamit are installed in virtual machines, you must ensure sufficient memory.
Due to insufficient memory allocation, the installation has been performed twice and errors have always occurred. This is the second time. If you see the Killed, you need to consider the system memory allocation problem.
========================================================== =====
Some common command line statements
========================================================== ======
Source/etc/csh. cshrc Save the modification? The error message "syntax error near unexpected token' ('" appears all the time. Why?
Sudo apt-get install rar unrar p7zip % rarfile compression and decompression
References
Http://www.linuxidc.com/Linux/2012-07/65423.htm
Http://www.linuxidc.com/Linux/2012-07/65425.htm
Http://www.linuxidc.com/Linux/2012-07/65426.htm
Http://www.linuxidc.com/Linux/2012-07/65427.htm
Http://www.linuxidc.com/Linux/2012-07/65429.htm
Http://www.linuxidc.com/Linux/2012-07/65430.htm
Http://www.linuxidc.com/Linux/2012-07/65431.htm