关于MariaDB安装问题小记(CMake Error at)
今日在安装MariaDB的时候始终提示如下错误,但是我已经安装了libaio-devel库:
CMake Error at cmake/build_configurations/mysql_release.cmake:128 (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.
搜寻各种解决方案后才知道因为刚开始第一次执行cmake的时候就产生了CMakeCache.txt,这个时候我并没有安装libaio-devel库,然后继续安装依赖库后再执行cmake其实读取的依然是前面生成的cache文件,导致cmake判断libaio-devel一直未被安装。因此只要我们rm删除CMakeCache.txt文件后重新执行cmake命令既可以解决此问题
相关推荐
wonner 2020-05-07
adsadadaddadasda 2020-04-15
小惠 2020-03-04
hazing 2020-02-22
oZaoHua 2020-02-16
wbczyh 2020-01-19
82467413 2019-12-31
jackadmi 2019-12-28
Andrea0 2019-12-27
wenjs00 2019-12-14
pointfish 2019-12-14
greent00 2019-11-13
GeorgeTH 2019-10-28
kevinzhangwen 2019-03-10
yhljxy 2014-10-19
cyhgogogo 2012-08-20