gpt4 book ai didi

javascript - SequelizeDatabaseError : You need JSON-C for ST_GeomFromGeoJSON when I have JSON-C installed on centos

转载 作者:行者123 更新时间:2023-12-03 22:42:04 25 4
gpt4 key购买 nike

我的 centos 服务器出现以下错误:

npm-2 Unhandled rejection SequelizeDatabaseError: You need JSON-C for ST_GeomFromGeoJSON
npm-2 at Query.formatError (/home/centos/jobcue.com/node_modules/sequelize/lib/dialects/postgres/query.js:357:14)
npm-2 at null.<anonymous> (/home/centos/jobcue.com/node_modules/sequelize/lib/dialects/postgres/query.js:88:19)
npm-2 at emitOne (events.js:77:13)
npm-2 at emit (events.js:169:7)
npm-2 at Query.handleError (/home/centos/jobcue.com/node_modules/pg/lib/query.js:108:8)
npm-2 at null.<anonymous> (/home/centos/jobcue.com/node_modules/pg/lib/client.js:171:26)
npm-2 at emitOne (events.js:77:13)
npm-2 at emit (events.js:169:7)
npm-2 at Socket.<anonymous> (/home/centos/jobcue.com/node_modules/pg/lib/connection.js:109:12)
npm-2 at emitOne (events.js:77:13)
npm-2 at Socket.emit (events.js:169:7)
npm-2 at readableAddChunk (_stream_readable.js:153:18)
npm-2 at Socket.Readable.push (_stream_readable.js:111:10)
npm-2 at TCP.onread (net.js:531:20)

当我尝试在服务器上安装 json-c 时:
sudo yum install json-c
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.eecs.wsu.edu
* epel: s3-mirror-us-west-2.fedoraproject.org
* extras: linux.mirrors.es.net
* updates: mirror.raystedman.net
Package json-c-0.11-4.el7_0.x86_64 already installed and latest version
Nothing to do

最佳答案

这恰好是一个 postgis 问题,我最终从源代码构建了我的 postgis。我必须使用以下命令配置我的 postgis:
./configure --with-jsonc=/usr/include
如果您愿意,可以在我的博客上查看我的完整步骤/命令日志:
http://www.sadafnoor.com/blog/centos-postgis-setup-you-need-json-c-for-st_geomfromgeojson/

关于javascript - SequelizeDatabaseError : You need JSON-C for ST_GeomFromGeoJSON when I have JSON-C installed on centos,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37500821/

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