Hyrax GitHub Source Build: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
Line 14: Line 14:
;git clone https://github.com/opendap/libdap
;git clone https://github.com/opendap/libdap
;autoreconf -fiv
;autoreconf -fiv
;./configure --prefix=$prefix --with-dependencies=$prefix/deps --enable-developer  
;./configure --prefix=$prefix --enable-developer  
;make -j9
;make -j9
;make check -j9
;make check -j9

Revision as of 16:41, 4 December 2014

This describes how to get and build Hyrax from git. The OLFS is a java servlet built using ant. The BES is a Unix daemon written in C/C++ and is made up of a number of modules that are loaded at runtime. You can either get the BES framework and its modules separately, building only the part you need, or you can get the entire daemon and build it in one step.


Building the BES in one step

set up a build directory

In a new directory, set a new environment variable prefix to the CWD (export prefix=`pwd`) and set PATH so that $prefix/bin is at the head of PATH (export PATH=$prefix/bin:$PATH)

Get the dependencies if you need them

Get the tar ball hyrax-dependencies and build it. The Makefile in this package expects $prefix to be set as describe above. It will put all of the Hyrax server dependencies in a subdirectory called deps. Get the latest tarball from http://www.opendap.org/pub/binary/tmp/

Get and build libdap

Build, test and install libdap into $prefix:

git clone https://github.com/opendap/libdap
autoreconf -fiv
./configure --prefix=$prefix --enable-developer
make -j9
make check -j9
make install

Get and build the BES and all of the modules shipped with Hyrax

Build, test and install the BES and its modules

git clone https://github.com/opendap/bes
git checkout modules
Checkout the modules branch of the BES
git submodule update --init --remote
This will clone each of the N modules into the directory modules. There's lots of ways to do this; this is just one. [1]
autoreconf -vif
./configure --prefix=$prefix --enable-developer --with-dependencies=$prefix/deps
make -j9
make check -k
Some tests may fail and -k ignores that and keeps make marching along
  • Removed the -j9 option from the make check command because it can cause some tests to break. - ndp
  • fileout_json is failing right now 12/2/14 - jhrg
make install