Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the main program installation directory.
cd /path/to/PyFerret
- Install the base dependencies.
yum -y install cairo* yum -y install pango-devel pangomm pango-tests pangomm-devel pangomm-doc
- Decompress the installation package.
tar -zxvf PyFerret-7.6.0.tar.gz
- Go to the directory generated after the decompression.
cd PyFerret-7.6.0
- Copy the configuration file.
cp site_specific.mk.in site_specific.mk
- Modify the site_specific.mk file:
- Open site_specific.mk.
vim site_specific.mk
- 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
- Press Esc, type :wq!, and press Enter to save the changes and exit.
- Open site_specific.mk.
- Copy the configuration file.
cp platform_specific.mk.x86_64-linux platform_specific.mk.aarch64-linux
- Modify the platform_specific.mk.aarch64-linux file.
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 site_specific.mk file.
- Open site_specific.mk.
vim site_specific.mk
- 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
- Press Esc, type :wq!, and press Enter to save the changes and exit.
- Open site_specific.mk.
- Copy the configuration file.
cp platform_specific.mk.x86_64-linux platform_specific.mk.aarch64-linux
- Modify the platform_specific.mk.aarch64-linux file.
sed -i "s/-m64//g" platform_specific.mk.aarch64-linux
- Go back to the original directory.
cd -
- Perform the installation.
make make install
Parent topic: PyFerret 7.6.0 Porting Guide (CentOS 7.6)