Install GAMIT in RedHatLinux9.0

Source: Internet
Author: User
After installing linux in a virtual machine, you can install gamit and related things. Since you have never touched linux before, you can say that you have never learned from scratch, therefore, it took me two or three days to install gamit. problems occurred during the installation process. The solution was always more complicated than the problem. At the same time, I learned some things in the process, now I have written down the installation steps. On the one hand, it is a summary of myself, and on the other hand, it can be used as a reference for peers who have not been installed. Objective _ ^ GAMIT read: http://www.linu

After installing linux in a virtual machine, you can install gamit and related things. Since you have never touched linux before, you can say that you have never learned from scratch, therefore, it took me two or three days to install gamit. problems occurred during the installation process. The solution was always more complicated than the problem. At the same time, I learned some things in the process, now I have written down the installation steps. On the one hand, it is a summary of myself, and on the other hand, it can be used as a reference for peers who have not been installed. Pai_^

GAMIT read: http://www.linuxidc.com/GAMIT/

GAMIT10.4 download in Linux community 5 FTP server, specific download see http://www.linuxidc.net/thread-1186-1-1.html

1. Install VMware tools:

First, configure the share path in windows in the vm.

(1) vm ---> Install Vmware Tools a cd icon appears on the linux desktop, in which the file/mnt/cdrom directory appears.

(2) # cd/mnt/cdrom

There is a vmware-linux-tools.tar.gz file in this folder, copy it to another directory, and install it. The virtual optical drive in linux is the same as the optical drive we are familiar with at ordinary times. Copying files to other places is just for convenience.

# Cp vmware-linux-tools.tar.gz/tmp copy the file to the/tmp directory.

# Cd/tmp

(3) decompress the compressed package with the tar command.

# Tar-zxvf vmware-linux-tools.tar.gz

After decompression, we will see a vmware-tools-distrib folder. All the files decompressed with the tar command are in this folder.

# Cd vmware-tools-distrib

Run the vmware-install.pl to install.

#./Vmware-install.pl if it is the first time to install vmware tools on the machine, When you execute the vmware-install.pl, there is a prompt to let you choose the File Installation Directory, you can always follow the default option.

(4) To correctly run vmware tools, configure them first.

# Cd/usr/bin

# Vmware-config-tools.pl

Click Edit to set the Virtual Machine

After the installation is complete, the shared directory xpshare is displayed under/mnt/hgfs. The file exchange between the XP system and the virtual client is completed through this directory. You can also use the drag-and-drop method to exchange files. However, the drag-and-drop method does not support files in Chinese paths.

Through file sharing, users who are not proficient in UNIX can simply learn simple UNIX commands without having to care about network configuration and download functions, the download of precision calendar and other data can be completed through windows xp and transferred to the LINUX system through shared directories or drag-and-drop. This allows users to focus on the learning and application of GAMIT software.

2. Installation of GCC Software

GCC is a compiler software provided by GNU (GNU's Not Unix). It supports front-end programming languages such as C, C ++, Objective-C, Fortran, Java, and Ada, if the development tool is installed when RedHat Linux9.0 is installed, the C compiler is installed. To install GAMIT, GCC and its FORTRAN compiler are required, therefore, download and install GCC and its FORTRAN source code package from the relevant website. The FORTRAN source code package must be compiled and installed using GCC, and GCC itself must be compiled using the c compiler of RedHat Linux 9.0.

Http://gnu.parentinginformed.com/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2

(1) decompress the package

Tar jxvf gcc-3.4.6.tar.bz2

(2) in linux c and Fortran compiler systems, MAXUNIT is 100 in default file options, while in GAMIT software source code, MAXUNIT is 10000, go to the decompressed directory gcc-g77-3.4.5/libf2c/libI77/and modify fio. in the H file, change the number of lines # define MAXUNIT 100 to 10000.

(3) Compile and install gcc/g77

% Mkdir gcc

%. /Gcc-g77-3.4.5/configure-prefix/usr //-prefix/usr is to install it under/usr, if this item is not specified, it is installed under the/usr/local directory by default, you can copy the lib directory under/usr/local to/usr. The command is a vertex.

It would be better to have an absolute path after-prefix, otherwise errors may occur./gcc-3.4.6/configure-prefix =/usr/local/gcc-3.4.6 I'm using

% Make bootstrap this is a long process.

% Make install

3. Install GAMIT software

Apply for and download the GAMIT software package, including the software source code and installation package, including the following main files:

Install_software install batch files

Com.10.34.tar. Z component installation package

Gamit.10.34.tar. Z gamit software installation package

Help.10.34.tar. Z help file compressed package

Kf.10.34.tar. Z kf Software Installation Package

Libiaries.10.34.tar. Z data template compressed package

Maps.10.34.tar. Z map data installation package

Before installation, modify the MAXSIT, MAXSAT, MAXATM, and MAXEPC values in the dimpar. h file under/gamit/initdes, where:

MAXSIT test site count default value: 45

MAXSAT satellite default value: 28

The default value of the MAXATM ceiling delay parameter is 13.

The default value of MAXEPC is 2880.

You can modify the above default values as needed. After modification, remove the gamit.10.34.tar. Z file. Otherwise, the software will be decompressed and overwritten during subsequent installation.

Run in the directory

%./Install_software

Allows you to install GAMIT software.

4. Set the working environment of the GAMIT System

In linux, a file named after a vertex is regarded as a hidden file in the system, for example, ". 123 ". Ls, ls-l, or ll cannot be viewed. How can we view hidden files in linux? The following describes the simple viewing method.

1. # Use ls-a in the command line

2. # In the KDE Desktop of XWindow, select "Show Hidden Files" in the "View" menu.

Vi. cshrc

Save: Press ESC, enter: wq

You can set the user's shell to tcsh and modify the default shell.

Which tcsh finds the path where tcsh is stored (or which ash finds the ash storage path)

Chsh SHELL change

Then the acquaintance SHELL path is enough.

Or abbreviated:

Chsh-s/bin/tcsh

The default SHELL will be changed after logon.

Configure the path in the. tchsrc File

Setenv PATH "/gamit1001/com:/gamit1001/gamit/bin:/gamit1001/kf/bin:/usr/local/sbin:/usr/sbin: $ {PATH }:$ {HOME}/bin"

Create a link to the directory where the gamit software is installed, for example:

Ln-s/gamit10.34 gg

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.