感谢StackOverflow社区的帮助,我能够在我的
computer running Linux CentOS 7上正确安装luasql.
现在我在Linux Ubuntu 16上遇到了类似的问题.
我尝试了以下命令:
sudo apt-get -y install lua-sql-postgres sudo apt-get -y install lua-sql-postgres-dev sudo luarocks install luasql-postgres
这是我从系统得到的错误:
Installing https://rocks.MoonScript.org/luasql-postgres-2.3.5-2.rockspec... Using https://rocks.MoonScript.org/luasql-postgres-2.3.5-2.rockspec... switching to 'build' mode Error: Could not find expected file libpq-fe.h,or libpq-fe.h for PGsql -- 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
有谁知道如何解决这个问题?
谢谢
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。