gpt4 book ai didi

django - 错误 : Please install the PostgreSQL server development packages and re-run configure

转载 作者:行者123 更新时间:2023-11-29 11:23:29 25 4
gpt4 key购买 nike

我正在尝试在我的 ubuntu 系统上为 django 框架安装 Postgis。但是每次当我运行命令 ./configure 时,它​​都会给我错误

 error: the PGXS Makefile /usr/lib/postgresql/9.3/lib/pgxs/src/makefiles/pgxs.mk cannot be found. Please install the PostgreSQL server development packages and re-run configure.

我已经在我的系统上安装了 postgres 并且还创建了用户。但是我无法在我的系统上安装 Postgis。我已按照在 Internet 上找到的许多说明进行操作,但未能安装它。

请告诉我这个错误的解决方案,以便我可以在 ubuntu 上安装 Postgis。帮助将不胜感激

最佳答案

假设您使用 http://apt.postgresql.org/ 中的 PostgreSQL :

apt-get install postgresql-server-dev-9.3

正如@BurhanKhalid 指出的那样,您应该只从包中安装 PostGIS,而不是从源代码中安装 PostGIS,as the PostGIS web page explains :

apt-get install postgis2_93

关于django - 错误 : Please install the PostgreSQL server development packages and re-run configure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26134991/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com