Last modified: Tue, 09/26/2017 - 17:32
First steps to installing LAS V8.x
Prerequisites
You must have the following software installed before you install LAS v8.x
Generally speaking we recommend you get the latest version of the major version number we recommend. Java 8 means get the latest available. THREDDS Data Server 4 means get the latest. We will note any deviations from this advice below.
- Java 1.8 (you need the full SE JDK not just the Run-time Environment (JRE).)
- Tomcat 8 (we have not tested Tomcat 9)
- TDS (The THREDDS Data Server) You must use TDS 4.
- ant 1.9 (if the Java code does not compile and you have the right JDK it's probably because your ant is old.)
- Ferret 7 or higher with the etopo05.nc data set and the Ferret environment that goes with the release. You can now use PyFerret with your LAS. There is now an option to install LAS using PyFerret when you run the configure script. The graphics and particularly the fonts are much nicer with PyFerret.
Install Java
Read the documentation for details.
- Go to oracle.com to get Java.
- Follow the instructions for the RPM or self-extracting binary installation as appropriate for your system.
Install Tomcat 8
Here's a quick and dirty "how-to" for Tomcat (read the documentation for details).
- Go to tomcat.apache.org get the latest 8 version.
- Follow the link on the left and download the "core" tar.gz file.
- Explode the tomcat tar file into a directory of your choosing:
tar -xzf apache-tomcat-V.v.vv.tar.gz
- I usually make a link from the complicated name (apache-tomcat-V.v.vv) to a simple name (tomcat) using a soft link. That way the "tomcat" name can always point to the latest version you have installed:
ln -s apache-tomcat-8.0.32/ tomcat
- If the default port numbers are being used by some other application, you'll need to edit the tomcat/conf/server.xml file to change the three port numbers (the shutdown port, the HTTP Connector port, and the Connector/AJP port). You can also just comment out the AJP connector port since we don't use it in our set up.
E.g.
<Server port="8005" shutdown="SHUTDOWN"> ... <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --> <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> ... <!-- Define an AJP 1.3 Connector on port 8009 --> <!-- For the basic LAS installation this connector is not used and could be commented out. --> <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
That's it. Now remember the full path name of the directory where you installed your tomcat and the port number you selected for the HTTP Connector port. You'll need these in the LAS configure process.
Install the THREDDS Data Server
This is not hard, but there are a lot of steps you need to follow.
Because of all the details needed to integrate TDS and LAS we've created a separate page with instructions.
Install Ant
This is very easy. The promise of "write once install anywhere in action".
- Check your version with ant -version
- If it's old go to ant.apache.org.
- Look for the download link on the welcome page.
- Expand the tar ball somewhere.
- Set your path so that this installation appears in the path ahead of the old version you're trying to replace.
Install Ferret 7 or higher
- Download the appropriate package from the Ferret downloads page.
- There is a detailed installation guide and help from the mailing list.
- N.B. You also need the Ferret environment that goes with this release.
- You also need to install the etopo05.nc data set in your FER_DATA directory since this version of LAS depends on this file for computing masks for user defined variables. The example configuration also includes a new dataset, ocean_atlas_subset.nc, a 4-Dimensional dataset for demonstrating LAS capabilities. Both of these files are in the Ferret datasets tar file listed on the Ferret downloads pages. Download the Ferret datasets tar file and install the data to update your installation.