./configure --prefix=/home/theo/netcdf4/zlib-1.2.11 make make check make install
./configure --prefix=/home/theo/netcdf4/hdf-1.8.20 --with-zlib=/home/theo/netcdf4/zlib-1.2.11 CC=icc CXX=icpc --enable-cxx CFLAGS=-O3 CXXFLAGS=-O3 FC=ifort F77=ifort F90=ifort --enable-fortran --enable-fortran2003 FFLAGS=-O3 CPP=‘icc -E’ CXXCPP=‘icpc -E’
make make check make install
./configure --prefix=/home/theo/netcdf4/curl-7.60.0 --with-zlib=/home/theo/netcdf4/zlib-1.2.11 make make install
./configure --prefix=/home/theo/netcdf4/m4-1.4.18 make make install
添加环境变量: M4=/home/theo/netcdf4/m4-1.4.18/ export PATH=
M
4
/
b
i
n
:
M4/bin:
M4/bin:PATH
CPPFLAGS=-I/home/theo/netcdf4/hdf-1.8.20/include LDFLAGS=-L/home/theo/netcdf4/hdf-1.8.20/lib ./configure --prefix=/home/theo/netcdf4/netcdf-4.6.1 --with-zlib=/home/theo/netcdf4/zlib-1.2.11 CC=icc CXX=icpc --enable-cxx CFLAGS=-O3 CXXFLAGS=-O3 FC=ifort F77=ifort F90=ifort --enable-fortran --enable-fortran2003 FFLAGS=-O3 CPP=‘icc -E’ CXXCPP=‘icpc -E’ --disable-netcdf-4 --disable-dap make make check make install
添加环境变量:
export LD_LIBRARY_PATH=/home/theo/netcdf4/netcdf-4.6.1/lib:
L
D
L
I
B
R
A
R
Y
P
A
T
H
e
x
p
o
r
t
P
A
T
H
=
/
h
o
m
e
/
t
h
e
o
/
n
e
t
c
d
f
4
/
n
e
t
c
d
f
?
4.6.1
/
b
i
n
:
LD_LIBRARY_PATH export PATH=/home/theo/netcdf4/netcdf-4.6.1/bin:
LDL?IBRARYP?ATHexportPATH=/home/theo/netcdf4/netcdf?4.6.1/bin:PATH
CPPFLAGS=-I/home/theo/netcdf4/netcdf-4.6.1/include LDFLAGS=-L/home/theo/netcdf4/netcdf-4.6.1/lib ./configure --prefix=/home/theo/netcdf4/netcdff-4.4.4 CC=icc CXX=icpc CFLAGS=-O3 CXXFLAGS=-O3 FC=ifort F77=ifort F90=ifort FFLAGS=-O3 CPP=‘icc -E’ CXXCPP=‘icpc -E’ make make check make install
添加环境变量: export LD_LIBRARY_PATH=/home/theo/netcdf4/netcdff-4.4.4/lib:
L
D
L
I
B
R
A
R
Y
P
A
T
H
e
x
p
o
r
t
P
A
T
H
=
/
h
o
m
e
/
t
h
e
o
/
n
e
t
c
d
f
4
/
n
e
t
c
d
f
f
?
4.4.4
/
b
i
n
:
LD_LIBRARY_PATH export PATH=/home/theo/netcdf4/netcdff-4.4.4/bin:
LDL?IBRARYP?ATHexportPATH=/home/theo/netcdf4/netcdff?4.4.4/bin:PATH
最后:
20220110 install the intel, the path is:
source /home/theo/intel/bin/compilervars.sh intel64
20220110 install the openmpi, the path is:
OPENMPI=/home/theo/openmpi/ export PATH=
O
P
E
N
M
P
I
/
b
i
n
:
OPENMPI/bin:
OPENMPI/bin:PATH export LD_LIBRARY_PATH=
O
P
E
N
M
P
I
/
l
i
b
:
OPENMPI/lib:
OPENMPI/lib:LD_LIBRARY_PATH export MANPATH=
O
P
E
N
M
P
I
/
s
h
a
r
e
/
m
a
n
:
OPENMPI/share/man:
OPENMPI/share/man:MANPATH
20220110 install the M4, the path is:
M4=/home/theo/netcdf4/m4-1.4.18/ export PATH=
M
4
/
b
i
n
:
M4/bin:
M4/bin:PATH
20220110 install the netcdf-4.6.1, the path is:
export LD_LIBRARY_PATH=/home/theo/netcdf4/netcdf-4.6.1/lib:
L
D
L
I
B
R
A
R
Y
P
A
T
H
e
x
p
o
r
t
P
A
T
H
=
/
h
o
m
e
/
t
h
e
o
/
n
e
t
c
d
f
4
/
n
e
t
c
d
f
?
4.6.1
/
b
i
n
:
LD_LIBRARY_PATH export PATH=/home/theo/netcdf4/netcdf-4.6.1/bin:
LDL?IBRARYP?ATHexportPATH=/home/theo/netcdf4/netcdf?4.6.1/bin:PATH
20220110: install the netcdff-4.4.4, the path is:
export LD_LIBRARY_PATH=/home/theo/netcdf4/netcdff-4.4.4/lib:
L
D
L
I
B
R
A
R
Y
P
A
T
H
e
x
p
o
r
t
P
A
T
H
=
/
h
o
m
e
/
t
h
e
o
/
n
e
t
c
d
f
4
/
n
e
t
c
d
f
f
?
4.4.4
/
b
i
n
:
LD_LIBRARY_PATH export PATH=/home/theo/netcdf4/netcdff-4.4.4/bin:
LDL?IBRARYP?ATHexportPATH=/home/theo/netcdf4/netcdff?4.4.4/bin:PATH
|