ConfigureAmazonLinuxAMI: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
(Created page with "<< 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 machi...")
 
No edit summary
Line 35: Line 35:
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.  
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...
 
==== Add the EPEL EL5 repo to yum ====
 
===== Centos 5.x =====
* google EPEL/EL5 and  
* find & download ''epel-release-5.4.noarch.rpm''
* install it: ''rpm -i epel-release-5.4.noarch.rpm''
 
===== Centos 6.x =====
* google EPEL/EL6 and
* find & download ''epel-release-6.5.noarch.rpm''
* install it: ''rpm -i epel-release-6.5.noarch.rpm''
 
==== Data type dependencies: NetCDF, HDF4, HDF5 ====
* ''yum install netcdf-devel'' (note: On CentOS-6.2 you'll get netcdf-4 and on CentOS-5.3 you'll get netcdf-3)
* ''yum install hdf-devel'' # note 'hdf', not 'hdf4'
* ''yum install hdf5-devel''


==== Other dependencies ====
==== Other dependencies ====
* ''yum install libicu-devel''
* ''yum install libicu-devel''
* ''yum install cfitsio-devel''
* ''yum install cppunit-devel''
==== RPM Construction Tools ====
* ''yum install rpm-devel''
* ''yum install rpm-build''
== VMware configuration tips ==
It's best if you enable a shared directory so that you can pass stuff back and forth between the host OS and the Guest OS (i.e., the Virtual machine). That will only work if you have the ''VMware tools'' installed in/on the guest.
* Install VMware-tools. This process varies, but it's pretty easy for all platforms. On VMware Fusion, look under the ''Virtual Machine'' menu for the item that says ''Install VMware Tools''. This will download lump of code and, for CentOS, mount it on '/media/VMware Tools' (yes, there's a space in the directory name). Copy the *.tar.gz file to some place like your home directory, unpack it and read the INSTALL file. For an initial installation, the typical process is to run ''vmware-install.pl''.
* Under the configuration/options menu (the little wrench thing in Fusion), choose ''Sharing''. Make a folder with an obvious name (e.g., ''vmware'') and turn sharing on. Now, anything you put in there when on either the OS will be available to the other OS. On linux, this directory is located at ''/mnt/hgfs/<<name>>''.
== problems not addressed ==
* There no JUnit for the OLFS build
* There's not graphviz so the ''doc'' targets for libdap and bes will fail; I tried adding graphviz but that did not fix the problem.

Revision as of 02:46, 8 June 2012

<< 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.

CentOS 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 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

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

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...

Other dependencies

  • yum install libicu-devel