【发布时间】:2017-08-26 05:35:36
【问题描述】:
我尝试使用以下命令在我的 Linux CentOS 7 计算机上安装 luasql:
luarocks install luasql-postgres
但不幸的是,我收到以下错误:
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luasql-postgres-2.3.5-2.rockspec...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luasql-postgres-2.3.5-2.rockspec... switching to 'build' mode
Error: Could not find header file for PGSQL
No file libpq-fe.h in /usr/local/include
No file libpq-fe.h in /usr/include
You may have to install PGSQL in your system and/or pass PGSQL_DIR or PGSQL_INCDIR to the luarocks command.
Example: luarocks install luasql-postgres PGSQL_DIR=/usr/local
然后我尝试运行最后一行 luarocks install luasql-postgres PGSQL_DIR=/usr/local 但我没有任何改进...
我该怎么办?
【问题讨论】:
-
那么,您是否 100% 确定您的机器中有一个启动并正在运行的 pgsql 实例?
标签: linux postgresql lua centos7 torch