J'ai essayé d'installer luasql sur mon ordinateur Linux CentOS 7 avec cette commande:Comment installer luasql sur Linux CentOS 7?
luarocks install luasql-postgres
mais malheureusement j'ai eu l'erreur suivante:
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
J'ai essayé ensuite d'exécuter la dernière ligne luarocks install luasql-postgres PGSQL_DIR=/usr/local
mais je n'avais aucune amélioration ...
Que dois-je faire?
Alors, êtes-vous sûr à 100% que vous avez une instance pgsql en fonctionnement dans votre machine? – Hackerman