程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了无法配置空间,因为它无法检测到 PROJ (libproj)大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决无法配置空间,因为它无法检测到 PROJ (libproj)?

开发过程中遇到无法配置空间,因为它无法检测到 PROJ (libproj)的问题如何解决?下面主要结合日常开发的经验,给出你关于无法配置空间,因为它无法检测到 PROJ (libproj)的解决方法建议,希望对你解决无法配置空间,因为它无法检测到 PROJ (libproj)有所启发或帮助;

我需要在我的系统上安装 spaceite 并且我正在从源代码安装它

我得到的源代码为:wget https://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-5.0.1.tar.gz

(我已经安装了 PROJ)

然后我在 libspatialite-5.0.1 目录中并运行 ./configure

我在命令行上得到一个很长的输出,其中最后几行是:

checking for library containing proj_normalize_for_visualization... no

checking for library containing pj_init_plus... no

configure: error: 'libproj' is required but it doesn't seem to be installed on this system.

Here's The Complete Command Line Output if needed for reference

我使用的是 Ubuntu 20.04,并且处于激活的虚拟环境中,我在该环境中安装了我正在处理的项目的所有依赖项

有人可以帮我解决这个问题吗?

谢谢

解决方法

这里有同样的问题,有这条消息:

configure: error: 'libproj' is required but it doesn't seem to be installed on this system.

解决方法:

apt-get update && apt-get -y install libproj-dev

连同:

apt-get -y install build-essential pkg-config \
  libfreexl-dev  \
  libgeos-dev  \
  librttopo-dev  \
  libxml2  \
  libzip-dev  \
  libminizip-dev
./configure
.
..
...
....

==============================================================
                        IMPORTANT NOTICE
==============================================================
You have SELEcted --enable-rttopo and/or --enable-gcp

Both modules Strictly depend on code released under the GPLv2+
license,wich takes precedence over any other license.
Consequently the copy of libspatialite you are going to build
if configured this way *must* be released under the GPLv2+ license.

If you wish better preserving the initial MPL tri-license you
simply have to reconfigure by specifying the following options:
        --disable-rttopo --disable-gcp
==============================================================

测试:

# cat /etc/lsb-release 
DIStriB_ID=Ubuntu
DIStriB_RELEASE=20.04
DIStriB_CODename=focal
DIStriB_DESCRIPTION="Ubuntu 20.04.1 LTS"

# uname -mor
5.4.0-65-generic x86_64 GNU/Linux

# gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation,Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITnesS FOR A PARTICULAR PURPOSE.

大佬总结

以上是大佬教程为你收集整理的无法配置空间,因为它无法检测到 PROJ (libproj)全部内容,希望文章能够帮你解决无法配置空间,因为它无法检测到 PROJ (libproj)所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: