如何在Linux Ubuntu 16上安装luasql?
发布时间:2021-01-12 06:51:02 所属栏目:Linux 来源:互联网
导读:感谢StackOverflow社区的帮助,我能够在我的 computer running Linux CentOS 7上正确安装luasql. 现在我在Linux Ubuntu 16上遇到了类似的问题. 我尝试了以下命令: sudo apt-get -y install lua-sql-postgressudo apt-get -y install lua-sql-postgres-devsu
感谢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 有谁知道如何解决这个问题? 解决方法正如@Knud Larsen所建议的那样:首先,您需要安装libpq-dev. 如果安装成功,您可以看到文件/usr/include/postgresql/libpq-fe.h 之后执行命令: sudo luarocks PGSQL_INCDIR=/usr/include/postgresql/ install luasql-postgres (编辑:十堰站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- linux – Curl同时下载和上传同一个文件
- linux – 了解os bootloading – assembly
- 从头开始构建linux时出现glibc错误
- LINUX教程:php结合web uploader插件实现分片上传文件
- linux – bash – 从中运行脚本的get目录
- LINUX实战:Kickstart配置文件超详细解析
- linux-kernel – Linux:使用U-Boot和Flat Image Tree(FIT)
- Install Tomcat 6 on CentOS or RHEL --转载
- linux – 以特定的速度执行stdout输出
- embedded-linux – 从用户空间获取U-boot的版本