[英]Update gdal on ubuntu 22.04
I'm trying to update GDAL on my Ubuntu 22.04:我正在尝试在我的 Ubuntu 22.04 上更新 GDAL:
python3 -m pip install --upgrade GDAL
This error occurs:发生此错误:
extensions/gdal_array_wrap.cpp:3237:10: fatal error: ogr_recordbatch.h: Aucun fichier ou dossier de ce type
3237 | #include "ogr_recordbatch.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
"Aucun fichier ou dossier de ce type" means no file or folder found in french. “Aucun fichier ou dossier de ce type”是指在法语中找不到文件或文件夹。
OGR is installed and is working fine: OGR 已安装并且运行良好:
ogrinfo --version
GDAL 3.4.1, released 2021/12/27
I am out of idea...我没主意了...
ogr_recordbatch.h
is one of the new include files in GDAL 3.6.0 - https://github.com/OSGeo/gdal/blob/v3.6.0/NEWS.md ogr_recordbatch.h
是 GDAL 3.6.0 中的新包含文件之一 - https://github.com/OSGeo/gdal/blob/v3.6.0/NEWS.md
Obviously your system-installed GDAL from Ubuntu is an older version - 3.4.1.显然你的系统安装的 GDAL 来自 Ubuntu 是一个旧版本 - 3.4.1。
I don't know what are you trying to do.我不知道你想做什么。
If you are trying to update only the Python module, it requires having an adequate system-installed GDAL.如果您尝试仅更新 Python 模块,则需要有足够的系统安装 GDAL。 This can't work.这是行不通的。
If you are trying to update the system-installed GDAL - Ubuntu does not have a current GDAL PPA.如果您尝试更新系统安装的 GDAL - Ubuntu 没有当前的 GDAL PPA。
You have two options if you need a current version:如果您需要当前版本,您有两个选择:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.