[异常记录] Error: Could not find header file for MYSQL
生活随笔
收集整理的這篇文章主要介紹了
[异常记录] Error: Could not find header file for MYSQL
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
在通過 LuaRocks 安裝 MySql 數據庫驅動時發生以下異常:
daxuandeMacBook-Pro:include root# luarocks install luasql-mysql Installing https://luarocks.org/luasql-mysql-2.3.5-1.rockspecError: Could not find header file for MYSQLNo file mysql.h in /usr/local/includeNo file mysql.h in /usr/includeNo file mysql.h in /include 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解決方法:
出現這個的原因是沒有找到 MySQL 的安裝路徑,只要在安裝明令后面指定下 MySQL (我的路徑:/usr/local/mysql?)的安裝路徑即可:
luarocks install luasql-mysql MYSQL_DIR=/usr/local/mysql?
轉載于:https://my.oschina.net/bigxuan/blog/1924714
總結
以上是生活随笔為你收集整理的[异常记录] Error: Could not find header file for MYSQL的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 酷狗音乐如何设置歌词显示在屏幕上
- 下一篇: VMware虚拟机扩展内存和磁盘