Not the answer you need?
Register and ask your own question!

About Cmake error

CalipsoCalipso EntrantLegacy User Role Beginner
Hello,
i try to install Percona XtraBackup.

I have follow this KB https://www.percona.com/doc/percona-xtrabackup/2.2/installation/compiling_xtrabackup.html#compiling-with-cmake, it's a CentOS minimal 6.6 clean.

After run "yum install" with all package i have send this command:

cmake -DBUILD_CONFIG=xtrabackup_release && make -j4

The output is
CMake Error: The source directory "/root" does not appear to contain CMakeLists.txt.

I've located my installation CMakeLists.txt, and the output is
[[email protected] ~]# locate CMakeLists.txt
/usr/share/cmake/Modules/FortranCInterface/CMakeLists.txt
/usr/share/cmake/Modules/FortranCInterface/Verify/CMakeLists.txt
/usr/share/cmake/Modules/IntelVSImplicitPath/CMakeLists.txt
/usr/share/doc/cmake-2.8.12.2/Example/CMakeLists.txt
/usr/share/doc/cmake-2.8.12.2/Example/Demo/CMakeLists.txt
/usr/share/doc/cmake-2.8.12.2/Example/Hello/CMakeLists.txt

Now i've run my command in /usr/share/cmake/Modules/FortranCInterface/ & /usr/share/cmake/Modules/IntelVSImplicitPath/ and the ouput is
[[email protected] IntelVSImplicitPath]# cmake -DBUILD_CONFIG=xtrabackup_release && make -j4
-- The Fortran compiler identification is unknown
CMake Error: your Fortran compiler: "CMAKE_Fortran_COMPILER-NOTFOUND" was not found. Please set CMAKE_Fortran_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
See also "/usr/share/cmake/Modules/IntelVSImplicitPath/CMakeFiles/CMakeOutput.log".
See also "/usr/share/cmake/Modules/IntelVSImplicitPath/CMakeFiles/CMakeError.log".

How can solve this issue?

Comments

  • jriverajrivera Percona Support Engineer Percona Staff Role
    What is the purpose of compiling Xtrabackup? You can install the package with yum install and should work on CentOS 6.6 without any problems.

    In any case, did you download the source code from launchpad as instructed on the manual?

    Can you provide the directory listing of xtrabackup source directory on your server.
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.