在 ubuntu 12.04 中,我将地理空间库的源代码 gdal-1.11.0 下载到 ~/src 中,配置并成功编译,看起来。新文件,例如libgdal.a
got 放入 /usr/local/lib。
但是,当我运行依赖于它的程序时,
$ ogrinfo --formats
Run Code Online (Sandbox Code Playgroud)
我得到
ERROR 1: ogrinfo was compiled against GDAL 1.11 but current library version is 1.10
Run Code Online (Sandbox Code Playgroud)
看来我还没有删除旧版本的 GDAL。我该怎么做?
关于我的系统的一些信息:
$ uname -a
Linux ubuntu 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud) libraries ×1