linux+qt编译gdal,linux-错误:找不到gdal-config

请指出我缺少的一点:

openSUSE 11.3

anisha@linux-y3pi:~/Desktop/R> sudo R CMD INSTALL rgdal_0.7-12.tar.gz

root's password:

* installing to library ‘/usr/lib64/R/library’

* installing *source* package ‘rgdal’ ...

** package ‘rgdal’ successfully unpacked and MD5 sums checked

configure: gdal-config: gdal-config

checking gdal-config usability... ./configure: line 1353: gdal-config: command not found

no

Error: gdal-config not found

The gdal-config script distributed with GDAL could not be found.

If you have not installed the GDAL libraries, you can

download the source from http://www.gdal.org/

If you have installed the GDAL libraries, then make sure that

gdal-config is in your path. Try typing gdal-config at a

shell prompt and see if it runs. If not, use:

--configure-args='--with-gdal-config

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
当你在Linux系统上尝试安装GDAL(Geospatial Data Abstraction Library)时,遇到`no such file or directory : gdal-config`这个错误,通常意味着系统不到名为`gdal-config`的工具,这在GDAL构建过程中是必要的,因为它帮助查库文件和配置信息。 这个错误可能有以下几个原因: 1. **GDAL包未正确安装**:确认你是否按照官方文档或适合你发行版的包管理器(如apt、yum、zypper等)安装了GDAL。如果没有,你需要先安装GDAL。 2. **GDAL配置文件路径错误**:`gdal-config`可能位于系统路径之外,比如某些自定义安装路径下。检查`PATH`环境变量,确保它包含了GDAL的bin目录。 3. **GDAL源码安装**:如果你从源代码编译安装GDAL,那么`gdal-config`会在编译后的安装目录(通常是`/usr/local`或`~/local`)的bin子目录中。确保编译时指定了正确的安装位置。 4. **第三方软件包问题**:有时候,依赖的开发工具包可能未正确安装或版本不匹配,比如Python的开发头文件。检查是否有相关的依赖项缺失。 为了解决这个问题,你可以尝试以下步骤: 1. **更新或重新安装GDAL**:使用包管理器更新GDAL到最新版本,或者卸载后重新安装。 2. **检查路径设置**:运行`which gdal-config`看它在哪里,如果没到,可能需要添加GDAL的bin目录到`PATH`环境变量。 3. **检查编译选项**:如果是从源码编译,确认你正确设置了编译选项,包括安装目录。 4. **确认依赖安装**:确保所有依赖的库和工具,如Python header files,已经正确安装。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值