We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
20:47 $ uname -a Linux ip-172-31-11-168 4.4.0-101-generic #124~14.04.1-Ubuntu SMP Fri Nov 10 19:05:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
✔ ~/SQLAdvisor/sqladvisor [master|✚ 3…60] 20:47 $ sudo cmake -DCMAKE_BUILD_TYPE=debug ./ -- Configuring done -- Generating done -- Build files have been written to: /home/ubuntu/SQLAdvisor/sqladvisor ✔ ~/SQLAdvisor/sqladvisor [master|✚ 3…60] 20:47 $ ll total 108 drwxrwxr-x 3 ubuntu ubuntu 4096 Dec 5 20:47 ./ drwxrwxr-x 18 ubuntu ubuntu 4096 Dec 5 19:51 ../ -rw-r--r-- 1 root root 11988 Dec 4 13:47 CMakeCache.txt drwxr-xr-x 6 root root 4096 Dec 5 20:47 CMakeFiles/ -rw-r--r-- 1 root root 1617 Dec 4 13:47 cmake_install.cmake -rw-rw-r-- 1 ubuntu ubuntu 694 Dec 4 11:44 CMakeLists.txt -rw-r--r-- 1 ubuntu ubuntu 12288 Dec 5 19:57 .CMakeLists.txt.swp -rw-rw-r-- 1 ubuntu ubuntu 53195 Dec 4 11:44 main.cc -rw-r--r-- 1 root root 4673 Dec 5 20:47 Makefile -rw-rw-r-- 1 ubuntu ubuntu 257 Dec 4 11:44 README ✔ ~/SQLAdvisor/sqladvisor [master|✚ 3…60] 20:47 $ sudo make [100%] Building CXX object CMakeFiles/sqladvisor.dir/main.cc.o /home/ubuntu/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 ✘-2 ~/SQLAdvisor/sqladvisor [master|✚ 3…60] 20:47 $
The text was updated successfully, but these errors were encountered:
同样遇到了这个问题,要在上一步的时候就 sudo make,才能把编译需要的文件写到sqlparser目录
Sorry, something went wrong.
https://github.com/liangry/SQLAdvisor latest commit fixed
No branches or pull requests
20:47 $ uname -a
Linux ip-172-31-11-168 4.4.0-101-generic #124~14.04.1-Ubuntu SMP Fri Nov 10 19:05:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
✔ ~/SQLAdvisor/sqladvisor [master|✚ 3…60]
20:47 $ sudo cmake -DCMAKE_BUILD_TYPE=debug ./
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/SQLAdvisor/sqladvisor
✔ ~/SQLAdvisor/sqladvisor [master|✚ 3…60]
20:47 $ ll
total 108
drwxrwxr-x 3 ubuntu ubuntu 4096 Dec 5 20:47 ./
drwxrwxr-x 18 ubuntu ubuntu 4096 Dec 5 19:51 ../
-rw-r--r-- 1 root root 11988 Dec 4 13:47 CMakeCache.txt
drwxr-xr-x 6 root root 4096 Dec 5 20:47 CMakeFiles/
-rw-r--r-- 1 root root 1617 Dec 4 13:47 cmake_install.cmake
-rw-rw-r-- 1 ubuntu ubuntu 694 Dec 4 11:44 CMakeLists.txt
-rw-r--r-- 1 ubuntu ubuntu 12288 Dec 5 19:57 .CMakeLists.txt.swp
-rw-rw-r-- 1 ubuntu ubuntu 53195 Dec 4 11:44 main.cc
-rw-r--r-- 1 root root 4673 Dec 5 20:47 Makefile
-rw-rw-r-- 1 ubuntu ubuntu 257 Dec 4 11:44 README
✔ ~/SQLAdvisor/sqladvisor [master|✚ 3…60]
20:47 $ sudo make
[100%] Building CXX object CMakeFiles/sqladvisor.dir/main.cc.o
/home/ubuntu/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
✘-2 ~/SQLAdvisor/sqladvisor [master|✚ 3…60]
20:47 $
The text was updated successfully, but these errors were encountered: