From the installation process, UbuntuLinux will install gcc on the desktop, but not on the notebook, so it was not successfully installed for the first time. Although it was installed from start to end, there was no interruption, however, doy verification fails. ---------------------------------------- The GAMIT10.35 file to be used in this article is downloaded from the FTP Server Linux community (LinuxIDC.com
From the installation process, Ubuntu Linux will install gcc on the desktop, but not on the notebook, so it was not successful during the first installation, although it was installed from start to end, without interruption, however, doy verification fails.
------------------------------------------
The GAMIT 10.35 file used in this article is downloaded to the FTP server No. 5 of the Linux community.
Linux community (LinuxIDC.com) No. 5 FTP server [about GAMIT] Resource browsing query:
IP ftp://www.linuxidc.com
Port 21
User ftp5.linuxidc.com
Password www.linuxidc.com
See http://www.linuxidc.net/thread-1186-1-1.html and http://www.linuxidc.net/thread-1189-1-1.html for specific download Methods
See http://www.linuxidc.com/GAMIT/ for relevant articles
------------------------------------------
The following content is summarized based on the Installation Process in the original text. The blue is the original text. The content may be different from the previous one, but it does not affect the installation.
The main difference is the software version display problem (the original article is 10.34, I installed 10.35) and installation path.
First, install GCC because the command line does not have sudo in root mode.
Apt-get build-dep gcc
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.3.3
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
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.35
Go to the download path (installation path) of gamit)
Preparations:
Chmod + x install_software
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:
# 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.
MAXSIT 55
MAXSAT 32
MAXATM 13
MAXEPC 2880
Change MAXATM to 25.