1.

tests may fail if run as root.'

The MySQL regression tests may fail if run as root.

+ echo 'If you really need to build the RPM as root, use'

If you really need to build the RPM as root, use

+ echo '--define='\''runselftest 0'\'' to skip the regression tests.'

--define='runselftest 0' to skip the regression tests.

+ exit 1sively


说是回流测试,使用root会失败。按照提示跳过这个测试

rpmbuild -ba --define='runselftest 0' mysql.spec



2.

CMake Error at cmake/build_configurations/mysql_release.cmake:45 (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

按提示安装yum install libaio-devel