SQLAdvisor icon indicating copy to clipboard operation
SQLAdvisor copied to clipboard

sqlparser 库是需要自己安装吗?是否要和数据库安装在同一个服务器上?

Open chenjzSir opened this issue 4 years ago • 2 comments

我安装了一个下午还没有搞定. [root@linux01 apps]# cmake -DBUILD_CONFIG=mysql_release -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=/usr/local/sqlparser ./ CMake Error: The source directory "/root/apps" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. [root@linux01 apps]# cd /usr/lib64/

chenjzSir avatar Jun 02 '20 09:06 chenjzSir

安装报错,没sqlparser库,直接在目录上安装的,修改了CMakeLists.txt。然后报错 [root@linux01 sqladvisor]# cmake -DBUILD_CONFIG=mysql_release -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=/usr/local/sqlparser ./ -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name. CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. -- Configuring incomplete, errors occurred! See also "/root/apps/SQLAdvisor/sqladvisor/CMakeFiles/CMakeOutput.log". See also "/root/apps/SQLAdvisor/sqladvisor/CMakeFiles/CMakeError.log". [root@linux01 sqladvisor]# cat ^C [root@linux01 sqladvisor]# cat /root/apps/SQLAdvisor/sqladvisor/CMakeFiles/CMakeError.log Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: CMAKE_C_COMPILER-NOTFOUND Build flags: Id flags:

The output was: No such file or directory

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: CMAKE_C_COMPILER-NOTFOUND Build flags: Id flags: -c

The output was: No such file or directory

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: CMAKE_C_COMPILER-NOTFOUND Build flags: Id flags: -Aa

The output was: No such file or directory

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: CMAKE_CXX_COMPILER-NOTFOUND Build flags: Id flags:

The output was: No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: CMAKE_CXX_COMPILER-NOTFOUND Build flags: Id flags: -c

The output was: No such file or directory

chenjzSir avatar Jun 02 '20 10:06 chenjzSir

同样的问题,求解

handsometong avatar Aug 31 '21 03:08 handsometong