yum 安装gdal
时间: 2023-10-12 22:01:41 浏览: 688
根据引用的内容,安装gdal的步骤如下:
1. 切换到root用户:su - root
2. 安装依赖环境:yum -y groupinstall "Development tools",yum -y install gcc-c,yum -y install zlib-devel,yum install -y sqlite-devel,yum -y install bzip2
3. 安装proj依赖文件:解压proj-6.0.0.tar.gz文件,然后在proj-6.0.0目录下执行以下命令:./configure,make,make install,proj --help(用于检验安装)
根据引用的内容,还需要安装libtiff和libcurl-devel依赖文件:yum install -y libtiff,yum install -y libtiff-devel.x86_64,yum install -y libcurl-devel.x86_64
根据引用的内容,下载gdal-3.2.0.tar.gz文件并上传到/home/gdal目录下,然后执行以下步骤:
1. 解压gdal-3.2.0.tar.gz文件:tar -zxvf gdal-3.2.0.tar.gz
2. 创建安装目录:mkdir install_file
3. 进入gdal-3.2.0目录:cd gdal-3.2.0
4. 配置安装路径:./configure --prefix=/home/install_file
5. 检查是否缺少C编译器依赖:若报错"no acceptable C compiler found in $PATH",执行以下命令安装gcc:yum install gcc gcc-c
6. 指定PROJ的安装文件(如果没有指定,可能会报错缺少PROJ依赖):详细的步骤请参考相关博客
7. 最后安装gdal:继续执行make和make install命令
这样就完成了通过yum安装gdal的过程。请注意,具体的安装步骤可能会因操作系统版本和环境而略有变化,建议根据实际情况进行调整。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Centos7.6 在线编译安装 gdal](https://blog.csdn.net/wg22222222/article/details/121783785)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Linux下安装GDAL(含docker部分)](https://blog.csdn.net/qq_32605245/article/details/129929134)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文