2017. 10. 27. 10:08 나의일 관련/Linux
petsc-3.1-p5 설치 기록
module load compiler/pgi-9.0-4 mpi/mvapich-1.2.0
(1) sundials-2.3.0
$ tar xvzf sundials-2.3.0.tar.gz
$ cd sundials-2.3.0
$ ./configure --prefix=/home01/sunlsy/sundials
$ make
$ make install
(2) ParMetis-3.0
$ tar xvzf ParMetis-3.0.tar.gz
$ cd ParMetis-3.0
$ make
$ mkdir include
$ mkdir lib
$ cp *.h include
$ cp *.a lib
(3) petsc-3.1-p5
$ tar xvzf petsc-3.1-p5.tar.gz
$ cd petsc-3.1-p5
$ ./configure --with-sundials-dir=/home01/sunlsy/sundials \
--with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 \
--with-parmetis-dir=/home01/sunlsy/ParMetis-3.0 \
--download-superlu_dist=/home01/sunlsy/superlu_dist_2.4.tar.gz \
--with-blas-lapack-dir=/applic/compilers/pgi/linux86-64/9.0-4/applib1/LAPACK
$ make PETSC_DIR=/home01/sunlsy/petsc-3.1-p5 PETSC_ARCH=linux-gnu-c-debug all
$ vi /home01/sunlsy/petsc-3.1-p5/linux-gnu-c-debug/conf/petscvariables
PCC와 PCC_LINKER를 수정해 주세요.
수정 전 : PCC = mpicc
PCC_LINKER = mpicc
수정 후 : PCC = mpicxx
PCC_LINKER = mpicxx
(4) 환경설정
$ vi ~/.bashrc
아래 내용을 마지막에 추가해주세요.
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/home01/sunlsy/sundials/lib:\
/home01/sunlsy/petsc-3.1-p5/linux-gnu-c-debug/lib:/home01/sunlsy/ParMetis-3.0/lib"
$ source ~/.bashrc
'나의일 관련 > Linux' 카테고리의 다른 글
siesta-4.1-b2 설치 기록 (0) | 2017.10.27 |
---|---|
cdo-1.5.6.1 설치 기록 (0) | 2017.10.27 |
DESMOND-3.4.0.2 설치 기록 (0) | 2017.10.27 |
OS 별 shared libraries 사용 정리 (0) | 2017.10.27 |
antlr3 C 설치 기록 (0) | 2017.10.27 |