Skip to content

Latest commit

 

History

History
143 lines (92 loc) · 2.2 KB

LROSE_build_src_release.md

File metadata and controls

143 lines (92 loc) · 2.2 KB

Download LROSE release and build from source - LINUX

  1. prepare
  2. download
  3. build
  4. verify
  5. handling errors
  6. update

Most good, up-to date LINUX distributions should work.

Recommended distributions are:

  • Debian
  • Ubuntu (based on Debian)
  • RedHat
  • Centos (based on RedHat)
  • Fedora (based on RedHat)

First, you will need to install the required packages.

See: LROSE package dependencies

Create a working directory for building the distribution:

  mkdir ~/lrose_build
  cd ~/lrose_build

Download the source release for Linux

Download the source tar file from:

  https://github.com/NCAR/lrose-core/releases 

A typical source release would be:

  lrose-20200110.src.tgz

Untar

  tar xvfz lrose-20200110.src.tgz

The distribution will be unpacked into a subdirectory:

  cd ~/lrose_build/lrose-20200110.src

Run the build script:

To see the usage:

  ./build_src_release.py --help

To build and install into the default directory: ~/lrose

  ./build_src_release.py

Or set an install directory:

  ./build_src_release.py --prefix /my/install/dir

Look in ~/lrose or /my/install/dir for

  include
  lib
  bin

Try the commands:

  ~/lrose/bin/RadxPrint -h
  ~/lrose/bin/RadxConvert -h
  ~/lrose/bin/Radx2Grid -h
  ~/lrose/bin/HawkEye

If the build does not complete successfully, you will need to track down the errors.

The very first errors in the build are the most important.

If you get errors, go into the directory giving problems, and run the make as follows:

  make |& less

and scroll down searchinf for error.

Alternatively, run

  make >& make.log

and then inspect the make.log file, searching for error.

To update, just repeat the procedure in sections 2, 3 and 4 above.

The new version will be installed over the previous version.