24小时热门版块排行榜    

查看: 821  |  回复: 5
当前主题已经存档。
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

huangye2001

木虫 (正式写手)

[交流] [求助] 请教abinit 5.4-4的安装方法

各位学长,请问abinit 5.4-4在linux下是如何安装的?在安装前需要先安装那些软件呀?这些预备软件要到那里去下载?最好是把具体的安装过程告诉我,提前谢谢了!祝各位工作愉快

[ Last edited by huangye2001 on 2008-4-16 at 13:41 ]
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

y1ding

铁杆木虫 (著名写手)

3楼2008-04-16 17:08:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 6 个回答

y1ding

铁杆木虫 (著名写手)

★ ★ ★
suntao1982(金币+3,VIP+0):谢谢,欢迎常来计算模拟版!
2. How to make the executables ?
If you got the binary executable package, you should skip the present section and go to the internal testing section. These executables are presently stored in the ~abinit/opt subdirectory.

We now suppose that you have a F90 compiler and you want to compile the source files.

In most cases, you will have to provide to the 'make' utility some information: the location of the F90 compiler (and sometimes even the C compiler) on your machine, the adequate compiler options, and, if you want to produce the parallel binaries, the location of the MPI library on your machine.
Although the presently implemented building tools should be powerful enough to succeed to make the binaries without you giving such information, it has been seen that on a significant number of platforms, it was better still to give them.

Supposing that you are in the lucky case where the build system is able to find all the information, then the build of ABINITv5 is very simple. Issue :

configure or ./configure (or first create a tmp directory, then cd tmp, then ../configure)
make or ./make (or ./make multi for using several processors on a SMP machine)
(optionally) ./make install
Well, it might also be that only one additional information is needed, in which case something like
configure FC=f95
make
might work. In both cases, let's explain a bit what is done, and the further possibilities.
The 'configure' step produces the set of Makefile files (among other things), taking into account information about your machine and the hostname.ac file. It takes one minute long, or less. The 'make' step compiles everything, according to the Makefile files produced in the prior step. The time to make everything is highly dependent on the compiler and platform. On a 2.8 GHz bi-proc machine (using make multi), the whole compilation is about 4 minutes. On some other platforms, with only one processor, it might be more than one hour.

The executables will be located in the subdirectory ~abinit/src/main, if you have chosen to issue ./configure in the ~abinit directory. If you have issued ./configure in another directory, it will be placed accordingly.

The 'make' command can also be used in many different ways, by mentioning one or more targets. A (partial) list of targets for users can be obtained by typing

make help
Additional targets, for developers, can be obtained by typing
make help_dev
It is possible to compile only one of the executable, just after the configure step by typing


make name_of_the_binary    (where name_of_the_binary can be abinis, abinip, abinitgw, newsp ...)

These are only a tiny fraction of the things that you can realize thanks to 'make'. Moreover, there are also 'Makefile' files in most of the subdirectories of ABINIT, with often their own (partial) list of targets for users (and also sometimes for developers). To obtain these lists, go to the directory, and type
make help
or
make help_dev
Finally,

make install
will install abinit in the /opt/etsf directory (etsf is the abbreviation of European Theoretical Spectroscopy Facility). In the directory ~abinit/doc/config , you will find two important help files, in case you want to go further : build-howto.txt and using-configure.txt .
Let's come back to the case where the build system needs some more information. This information should be stored in a file named hostname.ac , where "hostname" is the result of executing the command "hostname" on your machine, e.g. sleepy.pcpm.ucl.ac.be or dirac ... , and taking the first word of the returned chain of character, e.g. sleepy or dirac ...
There is a template for such a file, located in ~abinit/doc/config . Its name is build-config.ac . Examples of such files, that have been used for testing the package, can be found in ~abinit/doc/config/build-examples . By the way, the known problems observed for these different tests are mentioned in the ~abinit/KNOWN_PROBLEMS file, and the hostname.ac files are correspondingly indicated at the beginning of this file.

The hostname.ac file can be compared to the previously used 'makefile_macros' file (in ABINITv4 and prior). In general, you will notice that much less information is required. The new build system is much more clever than the previous one. The most examples given in the ~abinit/doc/config/build-examples contain about five definitions : F90 and C locations, F90 and C options, MPI library location (or the indication that MPI is not enabled). On the other hand, there are many other possible control flags, needed for advanced use. The activation of additional libraries (NETCDF, NQXC, XMLF90) should cause less problems than in the previous build system.

Your hostname.ac file might be placed in your home directory (this is new compared to the previous build system), in a new directory that you will name ~/.abinit/build . At that location, everytime you install a new version of ABINIT, the needed information will be found by ABINIT, so you do not have to care anymore about this file after the first installation.

On the other hand, if you need to play with several computers, you can place the hostname.ac file directory in the ~abinit directory, where such a hostname.ac file will be also seen by the build system (and preferred over the one located in ~/.abinit/build ) or in your build directory (like ~abinit/tmp). As mentioned above, you might even type at the terminal the definitions contained in the hostname.ac file.

Note the order of precedence for the location of the hostname.ac file (or command-line information), in case more than one possibility is used, (decreasing order of precedence) :

Command line (overcome all other information)
Your build directory (~abinit/tmp)
The ABINIT top directory (~abinit)
~/.abinit/build
/etc/abinit/build
Finally, note that the first generation of a hostname.ac file can be done quite straighforwardly if you can rely on the 'makefile_macros' file that was used previously for your machines (in ABINITv4 or prior). As a first try, simply copy the values for the Fortran 90 compiler, perhaps the options for the libraries, and (eventually) the MPI location. As an example, for the machine sleepy.pcpm.ucl.ac.be, the three following information were given in the makefile_macros file :

FC=/usr/pgi-4.0-2/linux86/bin/pgf90 -Bstatic
FFLAGS_LIBS = -O2
MPI_A=-L/usr/local/mpi-pgi4/lib -lmpichf90 -lpmpich -lmpich -lpmpich
from which the (reformatted) definitions can be set-up, in the hostname.ac file :
FC="/usr/pgi-4.0-2/linux86/bin/pgf90"
with_fortran_optflags="-O2 -Bstatic"
with_mpi_prefix="/usr/local/mpi-pgi4"
All other information from the makefile_macros file are not needed anymore. Compare the file (from version 4.6.5)
~abinit/Machine_dept_files/Intel_P6/makefile_macros.PGI4.0.2static_sleepy
with the new file
~abinit/doc/config/build-examples/i686-pgi4.0_sleepy.ac
As an additional useful trick, note that you might specify e.g. the location of a mpif.h file (e.g. /full_path/mppif.h) using
--with-mpi-fcflags="-I/full_path"

When the hostname.ac file is ready, you have to issue, in the ~abinit directory :

configure or ./configure (or first create a tmp directory, then cd tmp, create a hostname.ac file, then ../configure)
make or ./make (or ./make multi for using several processors on a SMP machine)
(optionally) ./make install
2楼2008-04-16 17:08:36
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

huangye2001

木虫 (正式写手)

谢谢您们的帮助!可是由于对linux所知甚少,我不知道该如何安装fortran90且也不知道在那下载到该软件!请求帮助。麻烦学长了。
4楼2008-04-17 09:59:19
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

kanminbad

金虫 (小有名气)

★ ★ ★
lei0736(金币+3,VIP+0):谢谢
我来给你说一下,我安装过5.4.3。

首先我不知道你用的是哪个linux,建议使用ubuntu,有的源里面就有abinit,使用新立得很容易安装,当然了,不是最新的5.4.4版本。

如果不是ubuntu,而是别的linux,那就相对麻烦些。可以先./configure > log
然后查看log文件,看哪些没有安装,然后相应的安装上即可

其实linux操作系统很多,稍有不同。俺也是菜鸟,也不太懂,希望有所帮助。
5楼2008-04-28 21:55:12
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 重要消息,中午系统在维护 +5 yuleib84 2026-08-18 6/300 2026-08-18 14:34 by 阿荣喝酒
[基金申请] 时间戳又变了8-15 +14 archvillain 2026-08-15 26/1300 2026-08-18 13:37 by phantomgost
[硕博家园] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 KZyU1THERRVo 2026-08-18 4/200 2026-08-18 13:28 by vHWVV9D5Deb5
[基金申请] 今天维护系统维护 祝所有人 高中 +8 gjjjzhong 2026-08-18 9/450 2026-08-18 13:01 by 家与远方
[基金申请] 哪位老哥知道今年的国自然具体哪一天放榜? +13 Ldrop2023 2026-08-13 16/800 2026-08-18 12:25 by 淀粉搬运工
[基金申请] 2027广东省杰青 +3 奶牛小黑 2026-08-15 8/400 2026-08-18 11:47 by gltch
[基金申请] 快农历七夕节了,轻松一下,男人悄悄话,女施主请不要进来。 +4 Tide man 2026-08-14 5/250 2026-08-18 11:35 by Tide man
[论文投稿] 投稿咨询 +4 wwm09 2026-08-17 5/250 2026-08-18 11:25 by 無關想念
[基金申请] 时间戳变了,能看出什么问题? +5 基诺咪客 2026-08-17 6/300 2026-08-18 11:06 by hunter无悔
[基金申请] 93BebMhtakh前后11位开头都是大写 +4 且听虎啸 2026-08-17 5/250 2026-08-18 00:49 by 蔡棒棒菂
[基金申请] 感觉是下周放榜了 +6 angus9576 2026-08-17 11/550 2026-08-17 23:57 by angus9576
[基金申请] filecode=后面第一个是大写字母 +8 wangze12014 2026-08-14 10/500 2026-08-17 17:05 by xter9665
[基金申请] 今天系统多次维护,明天很可能放榜! +8 zju2000 2026-08-16 9/450 2026-08-17 12:20 by lmz0216
[基金申请] 咱们一起用铁证分析2026国家社科基金中标与否 +7 启萌科技 2026-08-12 26/1300 2026-08-16 12:35 by 启萌科技
[基金申请] 各位道友,我要去昆明玩几天,回来见。 +7 Tide man 2026-08-14 8/400 2026-08-15 01:11 by arzu_hma
[基金申请] 是这周出结果还是下周出结果? +4 yuleib84 2026-08-11 4/200 2026-08-14 23:05 by lfy8008
[基金申请] 重要来源:本周末出结果 +10 瞬息宇宙 2026-08-12 10/500 2026-08-13 15:46 by likettle
[基金申请] 不应该看fileCode +7 且听虎啸 2026-08-12 9/450 2026-08-13 14:27 by flydreamws
[基金申请] 结合人工智能,周易传统文化,filecode打分制来了,3分以上希望很大。 +3 Tide man 2026-08-12 4/200 2026-08-13 08:35 by ZJTJZ
[基金申请] 2019年青年基金涵评意见,大家看看几个A,几个B? +11 Tide man 2026-08-11 11/550 2026-08-13 07:35 by 撸猫猫
信息提示
请填处理意见