# Install - HDF new version

**URL:** <https://forum.hdfgroup.org/t/install-hdf-new-version/1999>\
**Category:** Hdf-forum archives\
**Created:** [December 21, 2010, 11:38am UTC](https://forum.hdfgroup.org/t/install-hdf-new-version/1999 "2010-12-21T11:38:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krish](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/k/c57346/32.png) [@Krish](https://forum.hdfgroup.org/u/Krish)\
**Post date:** [December 21, 2010, 11:38am UTC](https://forum.hdfgroup.org/t/install-hdf-new-version/1999/1 "2010-12-21T11:38:09Z")

</div>

Dear users,

I want to install "hdf latest version" in my RedHat linux Enterprise Version 5.0 in my HP Proliant ML 110 server. Please help me in this regar. I am new in linux working environment.

with reards  
===============================================================Dr.K.MUNI KRISHNA  
TEACHING ASSOCIATE  
DEPT.OF.METEOROLOGY & OCEANOGRAPHY ANDHRA UNIVERSITY  
VISAKHAPATNAM  
ANDHRA PRADESH - 530003  
INDIA

> **···**
>

---

<div class="post-metadata">

**Author:** ![roger](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@roger](https://forum.hdfgroup.org/u/roger)\
**Post date:** [December 21, 2010, 1:51pm UTC](https://forum.hdfgroup.org/t/install-hdf-new-version/1999/2 "2010-12-21T13:51:46Z")

</div>

Hi,  
There are a number of things to consider before compiling.

What compression you'll use: zlib or szlib  
Will you program parallel hdf on parallel file systems (e.g. GPFS, lustre, etc.). If so which and which MPI  
Will you use c++. Will you use fortran. python. And separately java  
Does the rest of your build need the -fPIC compiler flag(I'm unfamiliar with PGI)

after unzipping 1.8.5 in its directory at the command line type:  
./configure --help  
to see more options.

If you aren't as command line oriented, make a little build script (i.e. build hdf5.sh with a text editor such as gedit on your system) in the 1.8.5 directory and experiment with build in it (this script is the same as command line but keeps them where you can modify and remember). If you have a linux file browser browsed to this 1.8.5 folder and you right click and set the permissions to execute you can then just double click every time you want to attempt another build. The paths to zlib and openmpi are dependency libraries I chose for my build of hdf5. And of course the ./release\_docs of hdf5 are many more examples for different systems and compilers

---------typical build script for openpmi and parallel-----------  
#!/bin/bash

function pause(){  
&nbsp;&nbsp;&nbsp;&nbsp;read -n 1 -p "Press any key to continue..."  
}

OPENMPI\_PATH=/home/roger/Software/openmpi-1.5/dist  
export FC=gfortran  
export CC=$OPENMPI\_PATH/bin/mpicc  
export CXX=$OPENMPI\_PATH/bin/mpic++  
export LDFLAGS=-fPIC -L$OPENMPI\_PATH/lib -L$OPENMPI\_PATH/lib/openmpi -lmpi -lmpi\_cxx -lopen-pal  
export CFLAGS=-fPIC -I$OPENMPI\_PATH/include  
export CPPFLAGS=-fPIC -I$OPENMPI\_PATH/include  
export CXXFLAGS=-fPIC -I$OPENMPI\_PATH/include  
export MKLROOT=/share/apps/intel/mkl/10.2.5.035  
export LD\_LIBRARY\_PATH=$MKLROOT/lib/em64t:$OPENMPI\_PATH/lib:/lib64:/usr/lib64:/lib:/home/roger/sourceforge/zlib-1.2.4/dist/lib:$LD\_LIBRARY\_PATH

#open next line to clean up and restart building again  
make clean

./configure --prefix=/home/roger/Software/hdf5-1.8.6-pre2/dist --disable-fortran --enable-parallel --with-zlib=/home/roger/sourceforge/zlib-1.2.4/dist --without-szlib --enable-shared=yes --enable-static=yes --with-python=yes

make  
make check  
make install  
cd examples  
make  
cd ..

#./configure --help  
pause

> **···**
>
> --------------------
> 
> If you list more specifics this could be adjusted accordingly
> 
> On 12/21/2010 06:38 AM, kailasam muni krishna wrote:
> 
> > Dear users,
> > 
> > I want to install "hdf latest version" in my RedHat linux Enterprise Version 5.0 in my HP Proliant ML 110 server. Please help me in this regar. I am new in linux working environment.
> > 
> > # with reards
> > 
> > \*Dr.K.MUNI KRISHNA\*  
> > \*TEACHING ASSOCIATE  
> > DEPT.OF.METEOROLOGY & OCEANOGRAPHY \*  
> > \*ANDHRA UNIVERSITY  
> > VISAKHAPATNAM  
> > ANDHRA PRADESH - 530003  
> > INDIA  
> > \*\*  
> > \*
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![Krish](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/k/c57346/32.png) [@Krish](https://forum.hdfgroup.org/u/Krish)\
**Post date:** [December 21, 2010, 11:45am UTC](https://forum.hdfgroup.org/t/install-hdf-new-version/1999/3 "2010-12-21T11:45:58Z")

</div>

Dear users,

I want to install "hdf latest version" in my RedHat  
linux Enterprise Version 5.0 in my HP Proliant ML 110 server. Please  
help me in this regar. I am new in linux working environment.  
PGI complier is avaliable in my server

with reards

===============================================================Dr.K.MUNI KRISHNA  
TEACHING ASSOCIATE  
DEPT.OF.METEOROLOGY & OCEANOGRAPHY ANDHRA UNIVERSITY  
VISAKHAPATNAM  
ANDHRA PRADESH - 530003  
INDIA

> **···**
>
