我要评分
获取效率
正确性
完整性
易理解

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the main program installation directory.
    cd /path/to/PyFerret
  3. Install the base dependencies.
    yum -y install cairo*
    yum -y install pango-devel pangomm pango-tests pangomm-devel pangomm-doc
  4. Decompress the installation package.
    tar -zxvf PyFerret-7.6.0.tar.gz
  5. Go to the directory generated after the decompression.
    cd PyFerret-7.6.0
  6. Copy the configuration file.
    cp site_specific.mk.in site_specific.mk
  7. Modify the site_specific.mk file:
    1. Open site_specific.mk.
      vim site_specific.mk
    2. Press i to go to the insert mode.

      Add the following content to line 10:

      HOME=/path/to/PyFerret

      Modify the following information:

      Before the modification:

      DIR_PREFIX = $(HOME)/git/PyFerret
      INSTALL_FER_DIR = $(HOME)/PyFerret
      BUILDTYPE = x86_64-linux
      PYTHON_EXE = python3.6
      HDF5_LIBDIR = /usr/local/hdf5/lib
      NETCDF_LIBDIR = /usr/local/netcdf/lib

      After the modification:

      DIR_PREFIX = $(HOME)/PyFerret-7.6.0
      INSTALL_FER_DIR = $(HOME)/pyferret
      BUILDTYPE = aarch64-linux
      PYTHON_EXE = python2.7
      HDF5_LIBDIR = /path/to/HDF5/lib
      NETCDF_LIBDIR = /path/to/NETCDF/lib
    3. Press Esc, type :wq!, and press Enter to save the changes and exit.
  8. Copy the configuration file.
    cp platform_specific.mk.x86_64-linux platform_specific.mk.aarch64-linux
  9. Modify the platform_specific.mk.aarch64-linux file.
    sed -i "s/-m64//g" platform_specific.mk.aarch64-linux
  10. Go to the ef_utility directory.
    cd external_functions/ef_utility/
  11. Copy the configuration file.
    cp site_specific.mk.in site_specific.mk
  12. Modify the site_specific.mk file.
    1. Open site_specific.mk.
      vim site_specific.mk
    2. Press i to enter the insert mode and modify the file as follows:

      Before the modification:

      BUILDTYPE = x86_64-linux
      PYTHON_EXE = python3.6

      After the modification:

      BUILDTYPE = aarch64-linux
      PYTHON_EXE = python2.7
    3. Press Esc, type :wq!, and press Enter to save the changes and exit.
  13. Copy the configuration file.
    cp platform_specific.mk.x86_64-linux platform_specific.mk.aarch64-linux
  14. Modify the platform_specific.mk.aarch64-linux file.
    sed -i "s/-m64//g" platform_specific.mk.aarch64-linux
  15. Go back to the original directory.
    cd -
  16. Perform the installation.
    make
    make install