File: INSTALL.rst

package info (click to toggle)
ecbuild 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,088 kB
  • sloc: sh: 683; perl: 593; cpp: 399; python: 383; f90: 317; ansic: 163; fortran: 43; makefile: 10
file content (41 lines) | stat: -rw-r--r-- 986 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
============================
ecbuild - ECMWF build system
============================

Getting the sources
===================

First, retrieve ecBuild, for instance from GitHub::

   git clone https://github.com/ecmwf/ecbuild
   ECBUILD_SRC_DIR=$PWD/ecbuild

Booststrapping ecBuild
======================

ecBuild does not need to be built, however, the installation needs to be
bootstrapped::

   mkdir $TMPDIR/ecbuild # out-of-source build directory
   cd $TMPDIR/ecbuild
   ECBUILD_INSTALL_DIR=/usr/local/apps/ecbuild # where to install ecBuild
   $ECBUILD_SRC_DIR/bin/ecbuild --prefix=$ECBUILD_INSTALL_DIR $ECBUILD_SRC_DIR

Running the tests
=================

Some ecBuild features can be tested::

   cd $TMPDIR/ecbuild
   ctest

Installing
==========

By default, CMake generates a ``Makefile`` (can be overwritten with the ``-G``
command-line option, supported by both CMake and ecBuild)::

   cd $TMPDIR/ecbuild
   make install
   export PATH=$ECBUILD_INSTALL_DIR/bin:$PATH