>bash
>sudo apt-get install zlib*
>sudo apt-get install zlib*
[installの流れ]
1. Amber11を購入する
・Amber11 page : http://ambermd.org/#Amber11
2. 展開する
>tar -xvzf Amber11.tar.gz
3. mpi用のamber11をmakeする準備。AmberTools上でconfigurationする
>cd /amber11/AmberTools/src
mpi用のmakefileを作る。
>./configure -mpi intel
...
netCDF configure succeeded.
...
fftw-3.2.2 configure succeeded.
...
fftw-2.1.5 configure succeeded.
...
MTK++-0.2.0 configure succeeded.
...
The next step is to type 'make serial'
...
>
netCDF configure succeeded.
...
fftw-3.2.2 configure succeeded.
...
fftw-2.1.5 configure succeeded.
...
MTK++-0.2.0 configure succeeded.
...
The next step is to type 'make serial'
...
>
4. Amber本体のソースディレクトリーで、make parallelする。
>cd ~/amber11/src
>make parallel
5. 確認する
>cd ../bin
>ls *.MPI
sander.MPIがあればOK6. Amber11のディレクトリーをコピーする
>cd
>cp amber11 amber11_mpi
>cp amber11 amber11_mpi
7. serial用のamber11をmakeする準備。前のmakeが残っているのでcleanする。
※ここのcleanの二ヶ所をやらないとmakeできないので注意
>cd ~/amber11/src
>make clean
>cd ~/amber11/AmberTools/src
>make clean
>make clean
>cd ~/amber11/AmberTools/src
>make clean
8. AmberTools上でconfigurationする。serial用のmakefileを作る。
>cd ~/amber11/AmberTools/src
>./configure intel
※A
Could not find the X11 libraries; you may need to edit config.h
to set the XHOME and XLIBS variables.
Warning: the X11 libraries are not in the usual location !
To search for them try the command: locate libXt
On new Fedora OS's install the libXt-devel libXext-devel
libX11-devel libICE-devel libSM-devel packages.
On old Fedora OS's install the xorg-x11-devel package.
On RedHat OS's install the XFree86-devel package.
On Ubuntu OS's install the xorg-dev package.
For the moment Amber will be configured not to build XLEaP.
Using existing python from /home/tokiwa/amber11/bin
[: 1166: Illegal number: icc version 12
[: 1166: Illegal number: icc version 12
[: 1166: Illegal number: ifort version 12
[: 1166: Illegal number: icc version 12
[: 1166: Illegal number: ifort version 12
[: 1166: Illegal number: icc version 12
[: 1166: Illegal number: ifort version 12
Testing the icc compiler:
icc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c
OK
Testing the ifort compiler:
ifort -O0 -o testp testp.f
OK
Testing mixed C/Fortran compilation:
icc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -c -o testp.c.o testp.c
ifort -O0 -c -o testp.f.o testp.f
icc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c.o testp.f.o -L/opt/intel/composer_xe_2011_sp1.9.293/lib/intel64/ -lifport -lifcore -lsvml
OK
Testing pointer size:
icc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o test_pointer_size test_pointer_size.c
Detected 64 bit operating system.
Testing flex:./configure: 1874: flex: Permission denied
Warning: Unable to run flex; this is recommended for NAB
Please check your PATH, or install the program
We will try to solider on with precompiled files
Configuring NetCDF (may be time-consuming)...
NetCDF configure succeeded.
Checking for zlib: OK
Checking for libbz2: OK
Configuring fftw-3.2.2 (may be time-consuming)...
fftw-3.2.2 configure succeeded.
Configuring fftw-2.1.5 (may be time-consuming)...
fftw-2.1.5 configure succeeded.
Configuring MTK++ (may be time-consuming)...
MTK++-0.2.0 configure succeeded.
The configuration file, config.h, was successfully created.
The next step is to type 'make serial'
Running $AMBERHOME/AT15_Amber11.py to patch config.h for building Amber 11.
Check Amber11_Conversion.log for details of what was done. Running this script
a second time has no effect (positive or negative)
>
>./configure intel
※A
Could not find the X11 libraries; you may need to edit config.h
to set the XHOME and XLIBS variables.
Warning: the X11 libraries are not in the usual location !
To search for them try the command: locate libXt
On new Fedora OS's install the libXt-devel libXext-devel
libX11-devel libICE-devel libSM-devel packages.
On old Fedora OS's install the xorg-x11-devel package.
On RedHat OS's install the XFree86-devel package.
On Ubuntu OS's install the xorg-dev package.
For the moment Amber will be configured not to build XLEaP.
Using existing python from /home/tokiwa/amber11/bin
[: 1166: Illegal number: icc version 12
[: 1166: Illegal number: icc version 12
[: 1166: Illegal number: ifort version 12
[: 1166: Illegal number: icc version 12
[: 1166: Illegal number: ifort version 12
[: 1166: Illegal number: icc version 12
[: 1166: Illegal number: ifort version 12
Testing the icc compiler:
icc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c
OK
Testing the ifort compiler:
ifort -O0 -o testp testp.f
OK
Testing mixed C/Fortran compilation:
icc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -c -o testp.c.o testp.c
ifort -O0 -c -o testp.f.o testp.f
icc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c.o testp.f.o -L/opt/intel/composer_xe_2011_sp1.9.293/lib/intel64/ -lifport -lifcore -lsvml
OK
Testing pointer size:
icc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o test_pointer_size test_pointer_size.c
Detected 64 bit operating system.
Testing flex:./configure: 1874: flex: Permission denied
Warning: Unable to run flex; this is recommended for NAB
Please check your PATH, or install the program
We will try to solider on with precompiled files
Configuring NetCDF (may be time-consuming)...
NetCDF configure succeeded.
Checking for zlib: OK
Checking for libbz2: OK
Configuring fftw-3.2.2 (may be time-consuming)...
fftw-3.2.2 configure succeeded.
Configuring fftw-2.1.5 (may be time-consuming)...
fftw-2.1.5 configure succeeded.
Configuring MTK++ (may be time-consuming)...
MTK++-0.2.0 configure succeeded.
The configuration file, config.h, was successfully created.
The next step is to type 'make serial'
Running $AMBERHOME/AT15_Amber11.py to patch config.h for building Amber 11.
Check Amber11_Conversion.log for details of what was done. Running this script
a second time has no effect (positive or negative)
>
※A
ここで、下記のようのことを聞かれたら環境変数を設定しないといけない。
Your AMBERHOME environment variable is not set! It should be set to
/home/tokiwa/amber11 NOT doing so may cause errors when you compile. Continue
anyway? (yes or no)
/home/tokiwa/amber11 NOT doing so may cause errors when you compile. Continue
anyway? (yes or no)
[対処方法]
> setenv AMBERHOME /home/tokiwa/amber11
9. Amber本体のソースディレクトリーで、make serialする。
>cd ~/amber11/src
>make serial
...
...
...
Installation of Amber11 (serial) is complete at Mon Mar 19 20:55:05 JST 2012.
>
>make serial
...
...
...
Installation of Amber11 (serial) is complete at Mon Mar 19 20:55:05 JST 2012.
>
(インストール方法日本語ページ) : http://bioxtal.spring8.or.jp/kobito/?PreBioKids%2FAMBER11
0 件のコメント:
コメントを投稿