ARM架构银河麒麟docker,源码编译安装GDAL

docker中安装依赖

sudo apt-get update
sudo apt-get install build-essential autoconf automake libtool
sudo apt-get install libproj-dev libgeos-dev libjson-c-dev libpng-dev libjpeg-dev
sudo apt-get install python3-dev
sudo apt-get install python3.11-dev

去官网下载GDAL源码

https://gdal.org/download.html

下载GDAL3.4.3版本

进入到GDAL源码目录并执行

./configure --with-python=python3.11

以6个cpu核心编译源码

make -j6

安装到python

sudo make install

你可能感兴趣的:(arm开发,docker,容器)