Pip Can';t配置spatialite,因为它可以';t检测项目(libproj)

Pip Can';t配置spatialite,因为它可以';t检测项目(libproj),pip,spatialite,proj,Pip,Spatialite,Proj,我需要在我的系统上安装spatialite,我正在从源代码处安装它 我得到的源代码是:wget (我已安装项目) 然后我在libspatialite-5.0.1目录中运行/configure 我在命令行上得到一个很长的输出,最后一行是: 正在检查包含项目规范化的库以进行可视化。。。否 正在检查包含pj_init_plus的库。。。否 configure:错误:需要“libproj”,但此系统上似乎没有安装它。 ​ ​ 我使用的是Ubuntu20.04,我在一个激活的虚拟环境中,在这个虚拟环境中

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

我得到的源代码是:
wget

(我已安装项目)

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

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

正在检查包含项目规范化的库以进行可视化。。。否

正在检查包含pj_init_plus的库。。。否

configure:错误:需要“libproj”,但此系统上似乎没有安装它。

我使用的是Ubuntu20.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
测试日期:

# 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.
.
..
...
....

==============================================================
                        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.