OPeNDAP HDF5 Server Installation
To install and test OPeNDAP HDF5 server, we recommend you to build from the Official Releases.
Building from the Official Releases
This build instruction is for Hyrax.
- Install HDF5 source (version 1.8.6).
- tar zxvf hdf5-1.8.6.tar.gz
- cd hdf5-1.8.6
- ./configure --prefix=/usr/local/hdf5 --with-default-api-version=v16
- make install
- Install libdap source (version 3.11.0).
- tar zxvf lbdap-3.11.0.tar.gz
- cd libdap-3.11.0
- ./configure --prefix=/usr/local/opendap
- make install
- Install BES source (version 3.9.0).
- set path = (/usr/local/opendap/bin /usr/local/hdf5/bin $path) # We assume that (t)csh as a current shell.
- setenv LD_LIBRARY_PATH /usr/local/opendap/lib:/usr/local/hdf5/lib:$LD_LIBRARY_PATH # We assume that (t)csh as a current shell.
- tar zxvf bes-3.9.0.tar.gz
- cd bes-3.9.0
- ./configure --prefix=/usr/local/opendap
- make install
- Install general purpose handlers source (version 4.1.0).
- tar zxvf dap-server-4.1.0.tar.gz
- cd dap-server-4.1.0
- ./configure --prefix=/usr/local/opendap
- make install
- Install hdf5_handler source (version 1.4.3).
- tar zxvf hdf5_handler-1.4.3.tar.gz
- cd hdf5_handler-1.4.3
- setenv PKG_CONFIG_PATH /usr/local/opendap/lib/pkgconfig:/usr/lib/pkgconfig # We assume that the system wide package configuration files (*.pc) are under /usr/lib/pkgconfig
- ./configure --prefix=/usr/local/opendap --with-hdf5=/usr/local/hdf5 --enable-cf --enable-short-path # --enable-cf and --enable-short-path are optional but required for some OPeNDAP visualization clients.
- make install
Testing with Apache Tomcat server
- Modify the following parameters in bes.conf file under /usr/local/opendap/etc/bes.
BES.ServerAdministrator=username@yoursite.com # Your e-mail address
BES.User=username # Output of "users" command
BES.Group=groupname # Output of "groups" command
Make sure that h5.conf file exists under
/usr/local/opendap/etc/bes/modules directory.
Please see BES Configuration for other configuration options.
- Become a super user and start BES server by typing besctl start.
- Install Apache Tomcat server.
- Compile and install OLFS. Please refer to OLFS Build Instructions for instruction.
- Start tomcat by running $tomcat_install_root/bin/startup.sh.
- Copy some HDF5 files under /usr/local/opendap/share/hyrax/data/.
- Try URL http://your_host_address/opendap/data/ on your web browser.
Technical Notes
- Please try make LEX=flex YACC=bison if compilation fails with lex or yacc error after rm -f lex.* *.tab.cc.
Last Updated: 2011.04.05