Install Gamit10.35 under Fedora13

Source: Internet
Author: User
Preparation: install the required software under Fedora13, yuminstalltcsh. Yuminstallgmt other gcc, libx11, F13 comes. 1. chomd + xinstall_software (Change install_software permission to executable) 2. If Installation of./install_software fails, the following prompt is displayed: installation, and the following prompt is displayed: Thesearethed

Preparations:

Install the required software under Fedora 13, yum install tcsh. Yum install gmt

Other gcc, libx11, and F13.

1. chomd + x install_software (change the install_software permission to executable)

2../install_software

If the installation fails, the following prompt is displayed:

The following prompt is displayed:

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

X11LIBPATH:/usr/share/doc/usr/lib64
X11INCPATH:/usr/share/doc/usr/lib64/usr/include/X11

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

X11LIBPATH:

X11INCPATH:/usr/include/X11

Run down, error, and termination.

Gamit10.3 source code on FTP server No. 5 of Linux community (LinuxIDC.com), you can download it there. Gamit source code: (more than 120 MB in total ). For details, seeHttp://www.linuxidc.net/thread-1186-1-1.html

The solution is as follows:

Reprinted this article because I encountered a problem that libX11.a could not be found. When installing GAMIT, it seems that fedora9 has this problem. During installation, I am prompted that X11LIBPATH is empty, this is obviously not the case with thias. The method is to change libX11.a in install_software to libX11.so (using the lookup interface,) and save it. The path in Makefile. config is clearly displayed. Is it consistent with your system? Only one. Use all the rest # Drop the bars. Next, let's take a good trip !! Hey, GCC version 4.2.1. The rest will not be needed ..

Installation steps:
First, make sure that your/usr/local/lib/file contains the libX11.a file,
If not, do not worry. Check if your X lib contains libX11.so or libX11.so. 6 or libX11.so. 6.2 this file, for example, under/usr/X11R6/lib/(whh is installed at:/usr/lib64 and libX11.so)

The whereis libX11 search result is libX11:/usr/lib64/libX11.so.

Create a link named/usr/local/lib/libX11.a:

Ln-s/usr/X11R6/lib/libX11.so/usr/local/lib/libX11.a

Edit makefile. configure. The following prompt appears when you run install:

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/lib64

X11INCPATH:/usr/include/X11

That is, the path in makefile is the same as that in the system. So far, the most critical step is to solve the problem. GAMIT installation has already solved more than half of the problems.

3. for amd cpu, an error message may appear. I did not record the error. The general meaning is that the getline function name is in conflict. The modification method is as follows:

1) comment out the getline in stdio. h. The installation result still shows an error.

2) Rename getline to getline1. The following prompt is displayed after the installation is successful:

++

GLOBK installed
++

4,

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

: HELP_DIR environment variable in you shell profile

(In. cshrc/. tcshrc add: setenv HELP_DIR/opt/GAMIT10.35/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

There are many ways to edit. tcshrc on the Internet. You need to carefully read the prompts on terminal and add them to your. tcshrc. There is no convenient way --

Edit csh. cshrc under/etc. For details, see http://www.linuxidc.com/Linux/2010-11/30127.htm.

Finally, enter doy in the terminal as follows:

% Doy 2010 11 26
Date 2010/11/26 hrs, DOY 330 JD 2455526.5000 MJD 55526.0000
GPS Week 1611 Day of week 5, GPS Seconds 432000 Day of Week Fri
Decimal Year 2010.901370
That is, doy can calculate the accumulation day.

This is a success!

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.