首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SequelizeDatabaseError:当我在centos上安装了JSON时,ST_GeomFromGeoJSON需要JSON

SequelizeDatabaseError:当我在centos上安装了JSON时,ST_GeomFromGeoJSON需要JSON
EN

Stack Overflow用户
提问于 2016-05-28 15:28:19
回答 1查看 852关注 0票数 0

在我的centos服务器上,我收到了以下错误:

代码语言:javascript
复制
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时:

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-05-28 20:03:54

这恰好是一个postgis问题,我最后用源代码构建了postgis。我必须使用以下命令配置postgis:

./configure --with-jsonc=/usr/include

如果您愿意,可以在我的博客上查看我的完整步骤/命令日志:geomfromgeojson/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37500821

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档