|
|
Line 1: |
Line 1: |
| == How to install LROSE source on a Mac? == | | == How to install LROSE source on a Mac? == |
| + | |
| | | |
| 1. Download the '''[https://github.com/NCAR/lrose-core/releases/download/lrose-core-20200701/lrose-core-20200701.src.mac_osx.tgz lrose-core-20200701.src.mac_osx.tgz]''' tar file. | | 1. Download the '''[https://github.com/NCAR/lrose-core/releases/download/lrose-core-20200701/lrose-core-20200701.src.mac_osx.tgz lrose-core-20200701.src.mac_osx.tgz]''' tar file. |
| | | |
− | 2. There are two ways to build LROSE:
| |
− | : 1. Run the build script:
| |
− | :: To build and install into the default directory: <code lang="bash">/usr/local/lrose </code>
| |
− | :: <code lang="bash"> ./build_src_release.py </code>
| |
− | :: Or set an install directory:
| |
− | :: <code lang="bash"> ./build_src_release.py --prefix /my/install/dir </code>
| |
− |
| |
− |
| |
− | : 2. Using '''[https://brew.sh/ Homebrew]''' formula
| |
− | * Install prerequisites in a terminal:
| |
− | :: <code lang="bash">brew install cmake </code>
| |
− | :: <code lang="bash">brew install eigen </code>
| |
− | :: <code lang="bash">brew install fftw flex </code>
| |
− | :: <code lang="bash">brew install qt5 netcdf </code>
| |
− | :: <code lang="bash">brew install szip pkg-config </code>
| |
− | :: <code lang="bash">brew install geographiclib </code>
| |
− | :: <code lang="bash">brew install armadillo </code>
| |
− | :: <code lang="bash">brew install libomp libzip </code>
| |
− | :: <code lang="bash">brew install rsync </code>
| |
− | :: <code lang="bash">brew cask install xquartz </code>
| |
− |
| |
− | * Specify the paths in a terminal:
| |
− | :: <code lang="bash">export PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig </code>
| |
− | :: <code lang="bash">export PATH=/usr/local/opt/qt/bin:$PATH </code>
| |
− | :: <code lang="bash">export LROSE_INSTALL_DIR=/usr/local/Cellar/lrose-core/core-20200610 </code>
| |
− |
| |
− | * In a terminal, untar the release and install:
| |
− | :: <code lang="bash"> cd ~/Downloads/ </code>
| |
− | :: <code lang="bash"> tar xvfz lrose-core-20200610.src.mac_osx.tgz</code>
| |
− | :: <code lang="bash"> cd lrose-core-20200610.src.mac_osx/codebase/ </code>
| |
− | :: <code lang="bash"> ./configure --disable-dependency-tracking --prefix=$LROSE_INSTALL_DIR </code>
| |
− | :: <code lang="bash"> make install </code>
| |
− | :: <code lang="bash"> cd .. </code>
| |
− | :: <code lang="bash"> rsync -av share $LROSE_INSTALL_DIR </code>
| |
| | | |
− | <blockquote style="color: grey; border: solid thin gray;">
| + | 2. Build LROSE by running the python script: |
− | '''Important Note:''' Steps 3 and 4 are for the wind analysis tools '''[http://wiki.lrose.net/index.php/FRACTL FRACTL]''' and '''[http://wiki.lrose.net/index.php/SAMURAI SAMURAI]''' installation. Users are allowed to skip steps 3 and 4 if they are not in need of these two tools.
| + | * To build and install into the default directory: <code lang="bash">/usr/local/lrose </code> |
− | </blockquote>
| + | : <code lang="bash"> ./build_src_release.py </code> |
− | 3. Build FRACTL:
| + | : Or set an install directory: |
− | : <code lang="bash">cd lrose-core-20200610.src.mac_osx/fractl/ </code> | + | : <code lang="bash"> ./build_src_release.py --prefix /my/install/dir </code> |
− | : <code lang="bash">cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/lrose-core/core-20200610/ . </code> | |
− | : <code lang="bash">cd .. </code> | |
| | | |
− | 4. Build SAMURAI:
| |
− | * Install prerequisites in a terminal:
| |
− | : <code lang="bash"> brew install cmake </code>
| |
− | : <code lang="bash"> brew install eigen </code>
| |
− | : <code lang="bash"> brew install libomp libzip </code>
| |
− | : <code lang="bash"> brew install llvm </code>
| |
− | * Install:
| |
− | : <code lang="bash"> export OCFLAGS=`pkg-config --cflags ompi-c` </code>
| |
− | : <code lang="bash"> export OCXXFLAGS=`pkg-config --cflags ompi-cxx` </code>
| |
− | : <code lang="bash"> cmake -DCMAKE_INSTALL_PREFIX=$LROSE_INSTALL_DIR -DCMAKE_MODULE_PATH=$CMAKE_QT5 -D OpenMP_C_FLAGS=$OCFLAGS -D OpenMP_C_LIB_NAMES="" -D OpenMP_CXX_FLAGS=$OCXXFLAGS -D OpenMP_CXX_LIB_NAMES="" . </code>
| |
− | : <code lang="bash"> make </code>
| |
− | : <code lang="bash"> make install </code>
| |
| | | |
− | 5. You are done with the lrose installation! Go to the '''[http://wiki.lrose.net/index.php/Main_Page#Convert documentation]''' to learn how to run LROSE-Elle!
| + | 3. You are done with the lrose installation! Check '''[http://wiki.lrose.net/index.php/Mac-Homebrew-Installation#HawkEye_and_wind_tools_.28VORTRAC.2C_SAMURAI.2C_FRACTL.29_installation HawkEye and Wind tools installation]''' if you are in need of these tools, otherwise go to the '''[http://wiki.lrose.net/index.php/Main_Page#Convert documentation]''' to learn how to run LROSE tools! |