Hyrax GitHub Source Build: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
Line 8: Line 8:


==== Get the dependencies if you need them ====
==== 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/ http://www.opendap.org/pub/binary/tmp/]
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/sources/hyrax-dependencies-1.9.5.tar
: ''The Makefile should be modified to test for and create as needed the src directory so that everything will unpack correctly. [[User:Ndp|ndp]] ([[User talk:Ndp|talk]])"
: ''The Makefile should be modified to test for and create as needed the src directory so that everything will unpack correctly. [[User:Ndp|ndp]] ([[User talk:Ndp|talk]])''


==== Get and build libdap ====
==== Get and build libdap ====

Revision as of 23:32, 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/sources/hyrax-dependencies-1.9.5.tar

The Makefile should be modified to test for and create as needed the src directory so that everything will unpack correctly. ndp (talk)

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 init
does some init thing
git submodule update
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