更新时间:2021-10-09 01:23:39
@Knud Larsen建议:
As suggested by @Knud Larsen:
首先,您需要安装libpq-dev
.
如果已成功安装,则可以看到文件/usr/include/postgresql/libpq-fe.h
If it was installed successfully, you can see the file /usr/include/postgresql/libpq-fe.h
在那之后执行命令:
sudo luarocks PGSQL_INCDIR=/usr/include/postgresql/ install luasql-postgres