cd /path/to/PyFerret
yum -y install cairo* yum -y install pango-devel pangomm pango-tests pangomm-devel pangomm-doc
tar -zxvf PyFerret-7.6.0.tar.gz
cd PyFerret-7.6.0
cp site_specific.mk.in site_specific.mk
vim site_specific.mk
HOME=/path/to/PyFerret
修改如下内容:
修改前:
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
修改后:
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
cp platform_specific.mk.x86_64-linux platform_specific.mk.aarch64-linux
sed -i "s/-m64//g" platform_specific.mk.aarch64-linux
cd external_functions/ef_utility/
cp site_specific.mk.in site_specific.mk
cp platform_specific.mk.x86_64-linux platform_specific.mk.aarch64-linux
sed -i "s/-m64//g" platform_specific.mk.aarch64-linux
cd -
make make install