ConfigureAmazonLinuxAMI: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
No edit summary
Line 28: Line 28:
* ''yum install libuuid-devel''
* ''yum install libuuid-devel''
* ''yum install openssl-devel''
* ''yum install openssl-devel''
== Other dependencies ==
* ''yum install libicu-devel''


==== Autotools ====
==== Autotools ====
Line 36: Line 39:
Set up things that are specific to Hyrax
Set up things that are specific to Hyrax


It's best to use as much of the RPM 'ecosystem' as possible because this is what will be on other people's computers; using newer stuff, like the lastest HDF5 library is only going to cause incompatibilities. But to do that for Hyrax, you need to get beyond the stock set of repositories that ''yum'' searches. Unfortunatley it looks like Amazon has their own version of the EPEL package and it does not contain HDF or Netcdf binaries...
;Check out the shrew project
:<font size="2"><code><nowiki>svn co https://scm.opendap.org/sv/trunk/shrew</nowiki></code></font>
;Change your working directory to the shrew directory.
:<font size="2"><code><nowiki>cd shrew</nowiki></code></font>


==== Other dependencies ====
;Source the spath file:
* ''yum install libicu-devel''
:<font size="2"><code><nowiki>. spath</nowiki></code></font>
 
; Build the dependancies
:<font size="2"><code><nowiki>cd src/dependencies</nowiki></code></font>
:<font size="2"><code><nowiki>make</nowiki></code></font>
 
 
 
;Copy the Makefile.am.master to Makefile.am
:<font size="2"><code><nowiki>cp Makefile.am.master Makefile.am</nowiki></code></font>
 
;Edit the Makefile.am to be certain that the various dependancies are correctly configured.
:<font size="2"><code><nowiki>vim  Makefile.am</nowiki></code></font>
:
:''(Since I am trying to get a new package up I edited this file, mostly I think you should just be able to make the copy and proceed.)''
 
; Engage the autotools process and see how far you get...
:<font size="2"><code><nowiki>autoreconf -vif</nowiki></code></font>
:<font size="2"><code><nowiki>./configure --prefix=$prefix</nowiki></code></font>
:<font size="2"><code><nowiki>make</nowiki></code></font>

Revision as of 20:51, 30 January 2013

<< back to HowTo Guides

How to configure an Amazon Linux AMI for EC2 to build Hyrax

This describes how to set up a vanilla Amazon Linux AMI virtual machine so that we can build the Hyrax data server.

Amazon Linux AMI versions

These instructions have been amended to cover:

  • Amazon Linux AMI 2012.03

Initial configuration

Set up general build stuff that you need:

  • yum install java-1.6.0-openjdk java-1.6.0-openjdk-devel
  • yum install ant
  • yum install make
  • yum install subversion
  • yum install gcc-c++
  • yum install flex
  • yum install bison
  • yum install curl-devel
  • yum install libxml2-devel
  • yum install libjpeg-devel
  • yum install zlib-devel
  • yum install readline-devel
  • yum install libuuid-devel
  • yum install openssl-devel

Other dependencies

  • yum install libicu-devel

Autotools

  • download the latest versions of autoconf, automake and libtool
  • ./configure, make, make install

Hyrax specific configuration

Set up things that are specific to Hyrax

Check out the shrew project
svn co https://scm.opendap.org/sv/trunk/shrew
Change your working directory to the shrew directory.
cd shrew
Source the spath file
. spath
Build the dependancies
cd src/dependencies
make


Copy the Makefile.am.master to Makefile.am
cp Makefile.am.master Makefile.am
Edit the Makefile.am to be certain that the various dependancies are correctly configured.
vim Makefile.am
(Since I am trying to get a new package up I edited this file, mostly I think you should just be able to make the copy and proceed.)
Engage the autotools process and see how far you get...
autoreconf -vif
./configure --prefix=$prefix
make