MariaDB

MariaDB 구성 (build) 과정 중 troubleshooting

열린기술자·2015년 4월 23일·조회 4,903

 

MariaDB 구성 중 발생 가능한 상황을 정리해 보았다.

 

1) CMake is required to build MySQL. 

# ./configure --with-plugin-xtradb
CMake is required to build MySQL.
# yum install cmake
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.daumkakao.com
 * extras: ftp.daumkakao.com
 * updates: ftp.daumkakao.com
base
extras
updates
updates/primary_db
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package cmake.x86_64 0:2.8.12.2-4.el6 will be installed
--> Processing Dependency: libarchive.so.2()(64bit) for package: cmake-2.8.12.2-4.el6.x86_64
--> Running transaction check
---> Package libarchive.x86_64 0:2.8.3-4.el6_2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================
 Package                                          Arch                                         Version
==================================================================================================================================
Installing:
 cmake                                            x86_64                                       2.8.12.2-4.el6
Installing for dependencies:
 libarchive                                       x86_64                                       2.8.3-4.el6_2

Transaction Summary
==================================================================================================================================
Install       2 Package(s)

Total download size: 8.1 M
Installed size: 29 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): cmake-2.8.12.2-4.el6.x86_64.rpm
(2/2): libarchive-2.8.3-4.el6_2.x86_64.rpm
----------------------------------------------------------------------------------------------------------------------------------
Total
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libarchive-2.8.3-4.el6_2.x86_64
  Installing : cmake-2.8.12.2-4.el6.x86_64
  Verifying  : cmake-2.8.12.2-4.el6.x86_64
  Verifying  : libarchive-2.8.3-4.el6_2.x86_64

Installed:
  cmake.x86_64 0:2.8.12.2-4.el6

Dependency Installed:
  libarchive.x86_64 0:2.8.3-4.el6_2

Complete!

 

2) Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) 

-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:85 (MESSAGE):
  Curses library not found.  Please install appropriate package,

      remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.
Call Stack (most recent call first):
  cmake/readline.cmake:196 (FIND_CURSES)
  CMakeLists.txt:358 (MYSQL_CHECK_READLINE)


-- Configuring incomplete, errors occurred!
See also "/u01/mariadb/installer/mariadb-10.0.17/CMakeFiles/CMakeOutput.log".
See also "/u01/mariadb/installer/mariadb-10.0.17/CMakeFiles/CMakeError.log".

# yum install ncurses-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * extras: ftp.riken.jp
 * updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.7-3.20090208.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================
 Package                          Arch                      Version                                 Repository               Size
==================================================================================================================================
Installing:
 ncurses-devel                    x86_64                    5.7-3.20090208.el6                      base                    642 k

Transaction Summary
==================================================================================================================================
Install       1 Package(s)

Total download size: 642 k
Installed size: 1.7 M
Is this ok [y/N]: y
Downloading Packages:
ncurses-devel-5.7-3.20090208.el6.x86_64.rpm                                                                | 642 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : ncurses-devel-5.7-3.20090208.el6.x86_64                                                                        1/1
  Verifying  : ncurses-devel-5.7-3.20090208.el6.x86_64                                                                        1/1

Installed:
  ncurses-devel.x86_64 0:5.7-3.20090208.el6

Complete!

 

3) error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

# ./scripts/mysql_install_db --user=mariadb
Installing MariaDB/MySQL system tables in '/u01/mariadb/test' ...
/u01/mariadb/10.0/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

Installation of system tables failed!  Examine the logs in
/u01/mariadb/test for more information.

# yum install libaio
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.daumkakao.com
 * extras: ftp.daumkakao.com
 * updates: ftp.daumkakao.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libaio.x86_64 0:0.3.107-10.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
 Package                   Arch                      Version                              Repository               Size
========================================================================================================================
Installing:
 libaio                    x86_64                    0.3.107-10.el6                       base                     21 k

Transaction Summary
========================================================================================================================
Install       1 Package(s)

Total download size: 21 k
Installed size: 34 k
Is this ok [y/N]: y
Downloading Packages:
libaio-0.3.107-10.el6.x86_64.rpm                                                                 |  21 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libaio-0.3.107-10.el6.x86_64                                                                         1/1
  Verifying  : libaio-0.3.107-10.el6.x86_64                                                                         1/1

Installed:
  libaio.x86_64 0:0.3.107-10.el6

Complete!

댓글 0

로그인 후 댓글을 남길 수 있습니다.

아직 댓글이 없습니다.