Dank der Hilfe der StackOverflow-Community konnte ich Luasql auf meinem computer running Linux CentOS 7 korrekt installieren.Wie luasql auf Linux Ubuntu 16 zu installieren?
Jetzt habe ich ein ähnliches Problem auf Linux Ubuntu 16. ich die folgenden Befehle versucht:
sudo apt-get -y install lua-sql-postgres
sudo apt-get -y install lua-sql-postgres-dev
sudo luarocks install luasql-postgres
Und hier ist der Fehler, den ich aus dem System erhalten:
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
Wer weiß, wie um dieses Problem zu lösen? Dank
Bitte installieren Sie 'libpq-dev': Die Datei ist in'/usr/include/postgresql/libpq-fe.h' http://packages.ubuntu.com/xenial-updates/amd64/libpq-dev/filelist –