[异常记录] Error: Could not find header file for MYSQL
生活随笔
收集整理的這篇文章主要介紹了
[异常记录] Error: Could not find header file for MYSQL
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
在通過 LuaRocks 安裝 MySql 數(shù)據(jù)庫驅(qū)動(dòng)時(shí)發(fā)生以下異常:
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解決方法:
出現(xiàn)這個(gè)的原因是沒有找到 MySQL 的安裝路徑,只要在安裝明令后面指定下 MySQL (我的路徑:/usr/local/mysql?)的安裝路徑即可:
luarocks install luasql-mysql MYSQL_DIR=/usr/local/mysql?
轉(zhuǎn)載于:https://my.oschina.net/bigxuan/blog/1924714
總結(jié)
以上是生活随笔為你收集整理的[异常记录] Error: Could not find header file for MYSQL的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 酷狗音乐如何设置歌词显示在屏幕上
- 下一篇: MySQL使用on duplicate