SQLAdvisor icon indicating copy to clipboard operation
SQLAdvisor copied to clipboard

cmake那一步报错了

Open garyrothchild opened this issue 7 years ago • 5 comments

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found

garyrothchild avatar Mar 04 '18 15:03 garyrothchild

Centos6下安装美团开源SQL优化工具SQLAdvisor https://aqzt.com/5383.html

ppabc avatar Apr 11 '18 03:04 ppabc

yum install gcc gcc-c++ -y 就可以了

ghost avatar Jun 07 '18 12:06 ghost

我的cmake也报错。。 CMake Error at cmake/build_configurations/mysql_release.cmake:46 (MESSAGE):

      aio is required on Linux, you need to install the required library:



        Debian/Ubuntu:              apt-get install libaio-dev
        RedHat/Fedora/Oracle Linux: yum install libaio-devel
        SuSE:                       zypper install libaio-devel



      If you really do not want it, pass -DIGNORE_AIO_CHECK to cmake.
      

Call Stack (most recent call first): CMakeLists.txt:131 (INCLUDE)

-- Configuring incomplete, errors occurred! See also "/home/jin/myfile/project/SQLAdvisor/CMakeFiles/CMakeOutput.log". See also "/home/jin/myfile/project/SQLAdvisor/CMakeFiles/CMakeError.log".

yiwuxia avatar Jul 04 '19 09:07 yiwuxia

我的cmake也报错。。 CMake Error at cmake/build_configurations/mysql_release.cmake:46 (MESSAGE):

      aio is required on Linux, you need to install the required library:



        Debian/Ubuntu:              apt-get install libaio-dev
        RedHat/Fedora/Oracle Linux: yum install libaio-devel
        SuSE:                       zypper install libaio-devel



      If you really do not want it, pass -DIGNORE_AIO_CHECK to cmake.

Call Stack (most recent call first): CMakeLists.txt:131 (INCLUDE)

-- Configuring incomplete, errors occurred! See also "/home/jin/myfile/project/SQLAdvisor/CMakeFiles/CMakeOutput.log". See also "/home/jin/myfile/project/SQLAdvisor/CMakeFiles/CMakeError.log".

我已经执行了 yum install libaio-devel -y,确认已经安装成功,还是会报这个错。

zhangsean avatar Oct 07 '23 10:10 zhangsean

我的cmake也报错。。 CMake Error at cmake/build_configurations/mysql_release.cmake:46 (MESSAGE):

      aio is required on Linux, you need to install the required library:



        Debian/Ubuntu:              apt-get install libaio-dev
        RedHat/Fedora/Oracle Linux: yum install libaio-devel
        SuSE:                       zypper install libaio-devel



      If you really do not want it, pass -DIGNORE_AIO_CHECK to cmake.

Call Stack (most recent call first): CMakeLists.txt:131 (INCLUDE) -- Configuring incomplete, errors occurred! See also "/home/jin/myfile/project/SQLAdvisor/CMakeFiles/CMakeOutput.log". See also "/home/jin/myfile/project/SQLAdvisor/CMakeFiles/CMakeError.log".

我已经执行了 yum install libaio-devel -y,确认已经安装成功,还是会报这个错。

添加 -DIGNORE_AIO_CHECK=true 跳过 aio 验证,编译出来的文件使用正常。

zhangsean avatar Oct 08 '23 02:10 zhangsean