Install GAMIT in Linux
System Environment:
VMware Workstation9 + Ubuntu 10.04
Operation
1. Install VMware Workstation
Refer:
Download VMware Workstation:
Installation instructions:
2. Install Ubuntu 10.04
Installation instructions:
3. Install GAMIT
The following error occurs:
++ ++
Make sure the common libraries are current
++ ++
Running unimake to create Makefile for comlib
System name: Linux ubuntu 2.6.35-22-generic # 33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux
System release number translated to 2635
No i86 compiler specification -- assuming G77
Ls: No match.
Machine-dependent source-files selected for com_lib: bit_util_g77 cand_g77 cor_g77 fmpopen_g77 getdir_g77 getmac_g77 inkey_g77 invalid pickfn_g77 invalid ferror_g77 execute_g77
Bit_util_g77. [cf]: No match.
Failure in make_gamit -- install_software terminated
Solution: Install G77
1. Add the following source in the/etc/apt/source. list (as root or sudo ):
Deb http://hu.archive.ubuntu.com/ubuntu/ hard universe
Deb-src http://hu.archive.ubuntu.com/ubuntu/ hard universe
Deb http://hu.archive.ubuntu.com/ubuntu/ hard-updates universe
Deb-src http://hu.archive.ubuntu.com/ubuntu/ hard-updates universe
2. Install aptitude
Sudo apt-get install aptitude
3. Run the following command:
Sudo aptitude update
Sudo aptitude install g77
2. Prompt later
Rnx2crx. c: 87: 13: warning: built-in function '0' declared as non-function [enabled by default]
Rnx2crx. c: 87: 34: warning: built-in function '1' declared as non-function [enabled by default]
Rnx2crx. c: 108: 6: error: conflicting types for 'getline'
/Usr/include/stdio. h: 671: 20: note: previous declaration of 'getline' was here
Rnx2crx. c: 559: 6: error: conflicting types for 'getline'
/Usr/include/stdio. h: 671: 20: note: previous declaration of 'getline' was here
Rnx2crx. c: In function 'putdir ':
Rnx2crx. c: 671: 9: warning: '0' flag ignored with precision and '% d' gnu_printf format [-Wformat]
Rnx2crx. c: In function 'put _ clock ':
Rnx2crx. c: 689: 9: warning: '0' flag ignored with precision and '% d' gnu_printf format [-Wformat]
Make: *** [rnx2crx] Error 1
Failure in make_gamit -- install_software terminated
Solution:
According to the error entity, the getline function has a problem. To solve the problem, locate rnx2crx. c and change all getlines to mygetline. The specific location is as follows:
/Opt/gamit/utils/rnx2crx. c (here, gamit decompress and place the path for itself)
Then the installation is successful!
GAMIT reading: l
This article permanently updates the link address: