Install GAMIT10.40 in Ubuntu

Source: Internet
Author: User
Tags gfortran
From the installation process, Ubuntu will install gcc on the desktop, but not on the notebook, so the first installation was not successful, although it was installed from start to end without interruption, however, doy verification fails. The following is a summary of the installation process based on the original text. Red is a place to note. The content may vary between the upper and lower, but does not affect the installation. The main difference is the software version display problem (originally GAMIT10.34, I installed GAMIT10.40) and installation path.

From the installation process, Ubuntu will install gcc on the desktop, but not on the notebook, so the first installation was not successful, although it was installed from start to end without interruption, however, doy verification fails.

The following content is summarized based on the original installation process,Red is the place to pay attention,The content may be different from the previous one, but does not affect the installation.

The main difference is the software version display problem (originally GAMIT 10.34, I installed GAMIT 10.40) and installation path.

First, install GCC because the command line does not have sudo in root mode.

(For the first installation of the systemROOTSet a password to enter the terminal:Sudo passwdAfter entering the information, restart your computer and change the logon modeRootAccount Logon)

Apt-get build-dep gcc

(If noCSHSoftware Package, inputSudo apt-get updateTo update the source, the computer must be connected to the Internet. The following software must be installed on the premise that the computer is connected to the Internet.)

Link 1 adopts two methods. After comparing the size, the first command is used, that is, the preceding command.

Use gcc -- version to confirm that the version is GCC 4.4.5

Gamit installation requires support for the csh (tcsh) Environment, GNU gfortran 4.2 compiler, and libx11-dev library. Gfortran is a recommended compiler for software. Libx11-dev is the X11 programming library, it provides lib. h and libx11.a (libx11.so) is a Gamit installation must use two library files, mainly for Globk to provide graphics library support. The preceding three conditions are not allowed.

The ubuntu system does not have csh. The default value is bash. Therefore, install csh first.

The ubuntu system comes with gcc4.2, but the gfortran compiler is not installed. During installation, the installer calls the default gfortran compiler unless you specify gcc as your compiler.

First, log on as root, open the terminal, and enter

Apt-get install csh

The system automatically downloads and installs csh. After the installation is complete, enter

Chsh

Prompt

Changing the root SHELL

Enter a new value or press enter to use the default value.

Log on to Shell [/bin/bash]:

Input

/Bin/csh

Modify bash to csh. Restart ubuntu, log on as root, open the terminal, and enter

# Echo $ SHELL

("#"Is the symbol that comes with the terminal, inputEcho $ SHELLYou can.)

Return s "/bin/csh", indicating that the SHELL is modified successfully.

Enter

Apt-get install gfortran

The system automatically downloads and installs gfortran.

In the input

Apt-get install libx11-dev

The system automatically downloads and installs libx11-dev library support.

Install gamit 10.4

Go to the installation path of gamit

(My installation path isOpt/gamit_globk.. CshrcMake sure thatGamitDirectoryUpdates \ sourceCopy all files to the installation path)

Preparations:

Chmod + x install_software

(AddInstall_softwareScript Execution permission)

(Click script and Click Show)Modify the content of the install_software File

"Usr-name libX11.a" is "usr-name libX11.so". One is a static shared library and the other is a dynamic shared library.

Makefile. config, modify:

 (Makefile. configFile inOpt/gamit_globk/librariesCompressed package)

# X11 library location-uncomment the appropriate one for your system

# Generic (will work on any system if links in place)

X11LIBPATH/usr/lib/X11

X11INCPATH/usr/include/X11

# Specific for Sun with OpenWindows

# X11LIBPATH/usr/openwin/lib

# X11INCPATH/usr/openwin/share/include/X11

# Specific for PC Solaris 10

# X11LIBPATH/usr/openwin/lib/

# X11INCPATH/usr/openwin/share/include/X11

# Specific to Linux RedHat 7, 8 and 9, RH-FC1-> 3

# X11LIBPATH/usr/X11R6/lib

# X11INCPATH/usr/X11R6/include/X11

# Specific to FC5

# X11LIBPATH/usr/lib

# X11INCPATH/usr/include/X11

# Specific for mit hp and Sun for Release 5

# X11LIBPATH/usr/lib/X11R5

# X11INCPATH/usr/include/X11R5

# Specific for IBM AIX4.2

# X11LIBPATH/usr/lpp/X11/lib

# X11INCPATH/usr/lpp/X11/include

# Specific for MacOSX

# X11LIBPATH/usr/X11R6/lib

# X11INCPATH/usr/include/X11

 

Is:

# X11 library location-uncomment the appropriate one for your system

# Generic (will work on any system if links in place)

# X11LIBPATH/usr/lib/X11

# X11INCPATH/usr/include/X11

# Specific for Sun with OpenWindows

# X11LIBPATH/usr/openwin/lib

# X11INCPATH/usr/openwin/share/include/X11

# Specific for PC Solaris 10

# X11LIBPATH/usr/openwin/lib/

# X11INCPATH/usr/openwin/share/include/X11

# Specific to Linux RedHat 7, 8 and 9, RH-FC1-> 3

# X11LIBPATH/usr/X11R6/lib

# X11INCPATH/usr/X11R6/include/X11

# Specific to FC5 (F6, F7, F8)

X11LIBPATH/usr/lib

X11INCPATH/usr/include/X11

# Specific for mit hp and Sun for Release 5

# X11LIBPATH/usr/lib/X11R5

# X11INCPATH/usr/include/X11R5

# Specific for IBM AIX4.2

# X11LIBPATH/usr/lpp/X11/lib

# X11INCPATH/usr/lpp/X11/include

# Specific for MacOSX

# X11LIBPATH/usr/X11R6/lib

# X11INCPATH/usr/include/X11

Gamit <路径> Modify a set of parameters in Makefile. config/Makefile. config. bak in the/libraries compressed package.

(To modifyMakefile. config. bak, Opening MethodGedit)

MAXSIT 55

MAXSAT 32

MAXATM 13

MAXEPC 2880

Change MAXATM to 25.

Install the software and run./install_software.

Start the installation program install_software and search for all compressed files under the installation directory/opt/gamit10.34.

GAMIT and GLOBK to be installed into/opt/gamit10.34

If you need help with command line options type CTL_C now and type

Install_software-help on the command line

The compressed tarfiles will be removed after extraction of

Directories, but should t for that, the script may be stopped and

Rerun safely from any point. Tarfiles to be uncompressed:

Com.10.34.tar. Z release example.10.34.tar. Z gamit.10.34.tar. Z help.10.34.tar. Z kf.10.34.tar. Z libraries.10.34.tar. Z maps.10.1.tar. Z tables.10.34.tar. Z

Continue? (Y/n)

Enter "y" to decompress the installation file,

.. Uncompressing and extracting the directories:

Do you want to apply incremental updates: incremental_updates.080812.tar.Z incremental_updates.080919.tar.Z incremental_updates.081022.tar.Z

Continue? (Y/n)

Enter "y" to decompress the installation file,

.. Applying incremental updates:

.. Adding/opt/gamit10.34/com to your search path to continue installation

To execute GAMIT and GLOBK you will need to set your login path

Include/opt/gamit10.34/com/opt/gamit10.34/gamit/bin/opt/gamit10.34/kf/bin

You will also need the alias or link gg -->/opt/gamit10.34

Your Operating System type is: Linux

Your default awk version is:/usr/bin/awk

These are the default paths to X11 found in Makefile. config

X11LIBPATH:/usr/lib/X11

X11INCPATH:/usr/include/X11

Searching your system for X11 installation

Found these paths to X11 libs and between des on your system

X11LIBPATH:/usr/lib

X11INCPATH:/usr/include/X11

Are these correct for your system?

Continue? (Y/n)

Enter the letter "y" and prompt

GAMIT dimensions in/libraries/Makefile. config are set

Maxsit = 55

Maxepc = 2880

Maxatm = 25

Maxsat = 32

Are these defaults found in Makefile. config correct?

If NOT edit the Makefile. config now before choosing to contine

Continue? (Y/n)

Enter "y" to start installation. A prompt will be prompted at the end of Installation

++

GLOBK installed

++

Create the gg link in your home directory to the version

Gamit/globk you just installed? (Y/n)

Enter the letter "y" and press enter to display

Making required ~ /Gg link to newly installed software

Ln-s-f/opt/gamit10.34 ~ /Gg

Don't forget to set your: path to include/opt/gamit10.34/gamit/bin and/opt/gamit10.34/kf/bin

: HELP_DIR environment variable in you shell profile

(In. cshrc/. tcshrc add: setenv HELP_DIR/opt/gamit10.34/help /)

: INSTITUTE evnironment variable in your shell profile

(In your. cshrc/. tcshrc add: setenv INSTITUTE where_ I _work)

Where_ I _work is a 3 character identifier for your solutions

 

So far, the software has been installed successfully. But before the software can be used properly, modify the ". cshrc" file under the "Main folder". This file is your c shell configuration file, which is hidden by default. You must add the installation directory of Gamit to the installation directory. Otherwise, you cannot use the Gamit command on the terminal for data computing.

Ubuntu uses bash by default. Therefore, the csh configuration file does not exist in your main directory. You need to create a ". cshrc" file in your main folder and enter the following content:

#

# This file is applicable to all C-shell users.

# Set prompt

Set prompt = "['echo $ cwd '] %"

Set history = 50

Set gamitpath =/opt/gamit10.34

#(My installation path isOpt/gamit_globkSo here it should beSet gamitpath =/opt/gamit_globk)

Set path = (./bin/sbin/ect/usr/bin/usr/sbin/usr/ucb/usr/bin/X11/usr/X11R6/bin $ path)

Set path = (./usr/local/gmt/bin/usr/local/sbin/usr/local/lib/usr/lib $ path)

# Set path = (./usr/local/gmt/bin/usr/local/lib/usr/ucb/nfs r0 soft0 $ path)

Set path = (. $ gamitpath/gamit/bin $ gamitpath/kf/bin $ gamitpath/com $ path)

Setenv HELP_DIR $ gamitpath/help/

Setenv PATH "/usr/sbin:/sbin :$ {PATH }"

Setenv MANPATH/usr/local/gmt/man:/usr/local/man:/usr/X11R6/man

Setenv LIBPATH/usr/local/gmt/lib:/usr/local/lib:/usr/i386-glibc21-linux/lib.

# Set gcclib direction

Setenv LD_LIBRARY_PATH/usr/local/gcc-3.4.1/lib/

# Set alias

Alias cd 'CD \! *; Set prompt = "['echo $ cwd '] % "'

Alias pwd 'echo $ cwd'

Alias ls 'ls -- classify'

Alias ll 'LS-l'

Alias la 'LS-'

Alias rm 'rm-I'

Alias mv 'mv-I'

Save, OK, all installation is complete. Enter

Doy

Return

DOY: Converts various date formats

DOY: Converts various date formats.

Runstring:

% Doy

Or

% Doy W

Or

% Doy Y

Where jd is Julian date (assumed if only one argument)

Year is calender year

Doy is day of year (assumed if two arguments)

Month is month

Day is day of month.

Hr min is hrs and minutes of day (Only if ymd form used ).

In the second form (I. e. W appended to the first value ),

The entries are assumed to gps week no and the second entry

(Optional) is either gps day of week (0-6) or seconds

Gps week.

NOTE: GPS Day of Week runs from 0-6 (Changed May 20,199 7 ).

In the third form with Y appended, the argument is taken

Deciminal year. (Versions after 2004/12/21 correctly account

For leap years in converting deciminal years back to Julian dates)

The conversions made are based on the number of arguments

Passed.

NDOY: Version of doy of year which takes keyboard input in

Forms above. (^ D ends program input ).

Example: doy 92 200

Date 1992/07/18 hrs, DOY 200 JD 2448821.5000 MJD 48821.0000

GPS Week 653 Day of week 6, GPS Seconds 518400 Day of Week Sat

Decimal Year 1992.54372

Example: doy 654 W 345600

Date 1992/07/23 hrs, DOY 205 JD 2448826.5000 MJD 48826.0000

GPS Week 654 Day of week 4, GPS Seconds 345600 Day of Week Thu

Decimal Year 1992.55738

* ** TODAY ** IS:

Date 2008/10/30 hrs, DOY 304 JD 2454770.1387 MJD 54769.6387

GPS Week 1503 Day of week 4, GPS Seconds 400786 Day of Week Thu

Decimal Year 2008.829614

Installation successful !!!!

 

Download the GAMIT10.6 installation packageHttp://www.linuxidc.com/Linux/2016-02/128333.htm

GAMIT reading: Http://www.linuxidc.com/GAMIT/

GAMIT10.4 and GAMIT of the latest versionDownload in Linux community FTP server No. 5, specific download see http://www.linuxidc.net/thread-1186-1-1.html

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2016-03/128802.htm

Related Article

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.