Ubuntu最后一步报错,怎么处理,头文件是有问题吗,怎么提示好像缺少头文件?
jpfss opened this issue · 3 comments
root@XXXX:/usr/local/SQLAdvisor/SQLAdvisor-master/sqladvisor# make
Scanning dependencies of target sqladvisor
[100%] Building CXX object CMakeFiles/sqladvisor.dir/main.cc.o
/usr/local/SQLAdvisor/SQLAdvisor-master/sqladvisor/main.cc:6:24: fatal error: sql/mysqld.h: No such file or directory
#include "sql/mysqld.h"
^
compilation terminated.
make[2]: *** [CMakeFiles/sqladvisor.dir/main.cc.o] Error 1
make[1]: *** [CMakeFiles/sqladvisor.dir/all] Error 2
make: *** [all] Error 2
https://github.com/liangry/SQLAdvisor
latest commit fixed
[root@jdu4e00u53f7 sqladvisor]# make
Scanning dependencies of target sqladvisor
[100%] Building CXX object CMakeFiles/sqladvisor.dir/main.cc.o
/root/SQLAdvisor/sqladvisor/main.cc:6:24: fatal error: sql/mysqld.h: No such file or directory
#include "sql/mysqld.h"
^
compilation terminated.
make[2]: *** [CMakeFiles/sqladvisor.dir/main.cc.o] Error 1
make[1]: *** [CMakeFiles/sqladvisor.dir/all] Error 2
make: *** [all] Error 2
同样的问题,这项目好久没人维护了。。。
master分支上似乎有问题,找了https://github.com/Meituan-Dianping/SQLAdvisor/archive/v2.0.zip release文件,部署正常