【问题标题】:Can't configure spatialite because it can't detect PROJ (libproj)无法配置 spatialite,因为它无法检测 PROJ (libproj)
【发布时间】:2021-05-17 01:03:51
【问题描述】:

我需要在我的系统上安装 spatialite,我正在从源代码安装它

我得到的源代码为:wgethttps://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,并且我在一个激活的虚拟环境中,我在该环境中安装了我正在处理的项目的所有依赖项

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

谢谢

【问题讨论】:

    标签: pip spatialite proj


    【解决方案1】:

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

    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.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-17
      • 2013-11-15
      • 2017-02-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-15
      • 1970-01-01
      相关资源
      最近更新 更多