| 查看: 641 | 回复: 5 | |||
| 当前主题已经存档。 | |||
huangye2001木虫 (正式写手)
|
[交流]
[求助] 请教abinit 5.4-4的安装方法
|
||
|
各位学长,请问abinit 5.4-4在linux下是如何安装的?在安装前需要先安装那些软件呀?这些预备软件要到那里去下载?最好是把具体的安装过程告诉我,提前谢谢了!祝各位工作愉快 [ Last edited by huangye2001 on 2008-4-16 at 13:41 ] |
» 猜你喜欢
拟解决的关键科学问题还要不要写
已经有8人回复
最失望的一年
已经有10人回复
求推荐英文EI期刊
已经有5人回复
存款400万可以在学校里躺平吗
已经有27人回复
请教限项目规定
已经有4人回复
国自然申请面上模板最新2026版出了吗?
已经有20人回复
26申博
已经有3人回复
基金委咋了?2026年的指南还没有出来?
已经有10人回复
基金申报
已经有6人回复
疑惑?
已经有5人回复
y1ding
铁杆木虫 (著名写手)
- 1ST强帖: 1
- 应助: 61 (初中生)
- 贵宾: 0.33
- 金币: 5959.3
- 散金: 1
- 红花: 21
- 帖子: 1884
- 在线: 491.1小时
- 虫号: 142265
- 注册: 2005-12-21
- 专业: 凝聚态物性 II :电子结构
★ ★ ★
suntao1982(金币+3,VIP+0):谢谢,欢迎常来计算模拟版!
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
y1ding
铁杆木虫 (著名写手)
- 1ST强帖: 1
- 应助: 61 (初中生)
- 贵宾: 0.33
- 金币: 5959.3
- 散金: 1
- 红花: 21
- 帖子: 1884
- 在线: 491.1小时
- 虫号: 142265
- 注册: 2005-12-21
- 专业: 凝聚态物性 II :电子结构
★ ★
lei0736(金币+2,VIP+0):谢谢
lei0736(金币+2,VIP+0):谢谢
3楼2008-04-16 17:08:51
huangye2001
木虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 13562.6
- 散金: 1304
- 帖子: 355
- 在线: 398.3小时
- 虫号: 373480
- 注册: 2007-05-16
- 性别: GG
- 专业: 凝聚态物性 II :电子结构
4楼2008-04-17 09:59:19
kanminbad
金虫 (小有名气)
- 应助: 0 (幼儿园)
- 金币: 697
- 帖子: 128
- 在线: 6小时
- 虫号: 539777
- 注册: 2008-04-05
- 专业: inorgranic chemistry
5楼2008-04-28 21:55:12
huangye2001
木虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 13562.6
- 散金: 1304
- 帖子: 355
- 在线: 398.3小时
- 虫号: 373480
- 注册: 2007-05-16
- 性别: GG
- 专业: 凝聚态物性 II :电子结构
6楼2008-05-19 20:53:31













回复此楼