我試圖用這個命令我的Linux CentOS的7計算機上安裝luasql:如何在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實例? – Hackerman