时间:2021-07-01 10:21:17 帮助过:96人阅读
luarocks install luasql-mysql
参考链接 http://www.runoob.com/lua/lua-database-access.html
三 安装luasql-mysql 出错
Error: Could not find header file for MYSQL
No file mysql.h in /usr/local/mysql
You may have to install MYSQL in your system and/or pass MYSQL_DIR or MYSQL_INCDIR to the luarocks command.
Example: luarocks install luasql-mysql MYSQL_DIR=/usr/local
解决方法:
在终端执行whereis mysql 找到mysql 的include路径
luarocks install luasql-mysql MYSQL_INCDIR=/usr/include/mysql
注释:配置自己查到的mysql.h 所在路径
luarocks错误 require ‘luasql.mysql' 报module 'luasql.mysql' not found:
标签:for 终端 error ade header nbsp UI span local