Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Install the base dependencies.
yum -y install cairo* yum -y install pango-devel pangomm pango-tests pangomm-devel pangomm-doc
- Decompress the installation package and go to the installation directory.
tar -zxvf PyFerret-7.6.0.tar.gz cd PyFerret-7.6.0
- Copy the configuration file.
cp site_specific.mk.in site_specific.mk
- Modify the site_specific.mk configuration file.
- Open the site_specific.mk file.
vi site_specific.mk
- Press i to enter the edit mode and add a new line above line 10:
HOME=/path/to/PyFerret
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:
HOME=/path/to/PyFerret DIR_PREFIX = $(HOME)/PyFerret-7.6.0 INSTALL_FER_DIR = $(HOME)/pyferret BUILDTYPE = aarch64-linux PYTHON_EXE = python3.8 HDF5_LIBDIR = /path/to/HDF5/lib NETCDF_LIBDIR = /path/to/NETCDF/lib
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the site_specific.mk file.
- Copy the configuration file.
cp platform_specific.mk.x86_64-linux platform_specific.mk.aarch64-linux
- Modify platform_specific.mk.aarch64-linux.
sed -i "s/-m64//g" platform_specific.mk.aarch64-linux
- Go to the ef_utility directory.
cd external_functions/ef_utility/
- Copy the configuration file.
cp site_specific.mk.in site_specific.mk
- Modify the configuration file.
- Open the configuration file.
vi site_specific.mk
- Press i to enter the edit mode and modify the following information in bold:
BUILDTYPE = aarch64-linux PYTHON_EXE = python3.8
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the configuration file.
- Copy the configuration file.
cp platform_specific.mk.x86_64-linux platform_specific.mk.aarch64-linux
- Modify the platform_specific.mk.aarch64-linux configuration file.
sed -i "s/-m64//g" platform_specific.mk.aarch64-linux
- Return to the original directory.
cd -
- Perform the installation.
make

make install

Parent topic: PyFerret 7.6.0 Porting Guide (openEuler 21.03)
