Install GAMIT10.6 in Ubuntu Linux

Source: Internet
Author: User

Install GAMIT10.6 in Ubuntu Linux

1. Install the environment. Go to the Ubuntu Software Center and search for libx11, gfortran, gcc, csh, and tcsh.

2: Get root permission: Open command line: ctrl + alt + t

Enter sudo passwd and then enter the password twice. This is the modified root password.

Then input su root

Enter the modified root password to obtain the root permission.

3: Copy gamit10.6 to the/opt file and run the following command under the root permission:

Cp-r/home/wfy/desktop/10.6/opt

4: Enter file 10.6: cd/opt/10.6 and grant the execution permission to install_software,

Chmod 777./install_software

5: run the installation script./install_software

Select y for all y/n problems during installation.

6: After the installation fails, edit the Makefile. config file in opt/gamit10.5/libraries and enter gedit opt/gamit10.5/libraries/Makefile. config under the root permission.

Modify four places:

First:

Delete/x11 of the two rows

Second: change the last two 13 to 25 2880 to 5760.

Third: Enter uname-a (note space) to view the information of the current system. For example, the OS version number is 3.16.0-23, but only the first four digits of the OS version number are recorded in gamit. Therefore, the OS version number must be recorded as 3111; search for OS _ID Linux, find this location, and assign 3953 to the version 3111 of the local computer.

Fourth, if your computer is 32-bit, you need to change all m64 in this file to m32, And/opt/10.6/gamit/solve/Makefile. generic all m64 in this file should also be changed to m32.

7. re-enter./install_software for installation.

8. After the installation is successful, go to the root file cd/root and list all files: ls-a and edit. bashrc gedit. bashrc adds the following two lines to the end of the file, unregister it, enter the root permission again, and enter doy. If there is help, the installation is successful.

Expot PATH = "$ PATH:/opt/10.6/gamit/bin:/opt/10.6/com:/opt/10.6/kf/bin"

Export HELP_DIR =/opt/10.6/help/

Note: almost all operations are performed under the root permission.

More about GAMIT: l

This article permanently updates the link address:

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.