MySQL Forums
Forum List  »  Source, Builds, Binaries

Re: Help on Debian Source building mysql 5.5.10 w/ CMake
Posted by: Noel Cruz
Date: April 03, 2011 10:49AM

other unsuccessful tweaks:

after post-install script failed, i didn't have to issue this command coz data subdir mysql was empty.

#rm -rf /usr/local/mysql/data/mysql

okako:/usr/local/mysql# ls -al data/
total 16
drwxr-sr-x 4 mysql mysql 4096 2011-04-02 19:40 .
drwxr-sr-x 16 mysql mysql 4096 2011-04-02 19:42 ..
drwxr-sr-x 2 mysql mysql 4096 2011-04-02 18:47 mysql
drwxr-sr-x 2 mysql mysql 4096 2011-04-02 18:47 test
okako:/usr/local/mysql# ls -al data/mysql/
total 8
drwxr-sr-x 2 mysql mysql 4096 2011-04-02 18:47 .
drwxr-sr-x 4 mysql mysql 4096 2011-04-02 19:40 ..
-rw-r--r-- 1 mysql mysql 0 2011-04-02 18:36 .empty
okako:/usr/local/mysql# ls -al data/test/
total 8
drwxr-sr-x 2 mysql mysql 4096 2011-04-02 18:47 .
drwxr-sr-x 4 mysql mysql 4096 2011-04-02 19:40 ..
-rw-r--r-- 1 mysql mysql 0 2011-04-02 18:36 .empty
okako:/usr/local/mysql# ls -al scripts/
total 24
drwxr-sr-x 2 mysql mysql 4096 2011-04-02 18:47 .
drwxr-sr-x 16 mysql mysql 4096 2011-04-02 19:42 ..
-rwxr-xr-x 1 mysql mysql 14453 2011-04-02 18:36 mysql_install_db
okako:/usr/local/mysql# which cmake
/usr/bin/cmake
okako:/usr/local/mysql# cmake --version
cmake version 2.6-patch 0
okako:/usr/local/mysql# exit
exit
okkaba@okako:~$ cd mysql/mysql-5.5.10/
okkaba@okako:~/mysql/mysql-5.5.10$ ls -al
total 1252
drwxr-xr-x 32 okkaba okkaba 4096 2011-04-02 18:47 .
drwxr-xr-x 4 okkaba okkaba 4096 2011-04-02 19:48 ..
drwxr-xr-x 2 okkaba okkaba 4096 2011-03-09 07:11 BUILD
-rw-r--r-- 1 okkaba okkaba 8479 2011-03-09 07:11 BUILD-CMAKE
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-02 18:47 client
drwxr-xr-x 4 okkaba okkaba 4096 2011-03-09 07:11 cmake
-rw-r--r-- 1 okkaba okkaba 47531 2011-04-02 18:36 CMakeCache.txt
drwxr-xr-x 9 okkaba okkaba 4096 2011-04-02 18:47 CMakeFiles
-rw-r--r-- 1 okkaba okkaba 6494 2011-04-02 18:36 cmake_install.cmake

so i proceeded w/:
okkaba@okako:~/mysql/mysql-5.5.10$ make clean
okkaba@okako:~/mysql/mysql-5.5.10$ rm CMakeCache.txt
okkaba@okako:~/mysql/mysql-5.5.10$ mkdir bld
okkaba@okako:~/mysql/mysql-5.5.10$ cd bld
okkaba@okako:~/mysql/mysql-5.5.10/bld$ cmake -DBUILD_CONFIG=mysql_release ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void *
-- Check size of void * - done
-- Looking for include files HAVE_LIBAIO_H
-- Looking for include files HAVE_LIBAIO_H - not found.
-- Looking for io_queue_init in aio
-- Looking for io_queue_init in aio - not found
CMake Error at cmake/build_configurations/mysql_release.cmake:126 (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:85 (INCLUDE)


-- Configuring done
okkaba@okako:~/mysql/mysql-5.5.10/bld$ ls -al
total 28
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:28 .
drwxr-xr-x 33 okkaba okkaba 4096 2011-04-03 08:27 ..
-rw-r--r-- 1 okkaba okkaba 12330 2011-04-03 08:28 CMakeCache.txt
drwxr-xr-x 5 okkaba okkaba 4096 2011-04-03 08:28 CMakeFiles
okkaba@okako:~/mysql/mysql-5.5.10/bld$ su
Password:
okako:/home/okkaba/mysql/mysql-5.5.10/bld# apt-get install libaio-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libaio1
The following NEW packages will be installed:
libaio-dev libaio1
0 upgraded, 2 newly installed, 0 to remove and 101 not upgraded.
Need to get 31.2kB/38.5kB of archives.
After this operation, 242kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Media change: please insert the disc labeled
'Debian GNU/Linux 5.0.6 _Lenny_ - Official i386 CD Binary-1 20100904-18:58'
in the drive '/cdrom/' and press enter

Get:1 http://ftp.us.debian.org lenny/main libaio-dev 0.3.107-3 [31.2kB]
Fetched 31.2kB in 1min27s (358B/s)
Selecting previously deselected package libaio1.
(Reading database ... 99932 files and directories currently installed.)
Unpacking libaio1 (from .../libaio1_0.3.107-3_i386.deb) ...
Selecting previously deselected package libaio-dev.
Unpacking libaio-dev (from .../libaio-dev_0.3.107-3_i386.deb) ...
Processing triggers for man-db ...
Setting up libaio1 (0.3.107-3) ...
Setting up libaio-dev (0.3.107-3) ...
okako:/home/okkaba/mysql/mysql-5.5.10/bld# exit
exit
okkaba@okako:~/mysql/mysql-5.5.10/bld$ cmake -DBUILD_CONFIG=mysql_release ..

okkaba@okako:~/mysql/mysql-5.5.10/bld$ cmake ..
...
-- Looking for strunvis
-- Looking for strunvis - not found
-- Looking for include files HAVE_LIBAIO_H
-- Looking for include files HAVE_LIBAIO_H - found
-- Looking for io_queue_init in aio
-- Looking for io_queue_init in aio - found
-- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS
-- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS - Success
-- Performing Test HAVE_IB_ATOMIC_PTHREAD_T_GCC
-- Performing Test HAVE_IB_ATOMIC_PTHREAD_T_GCC - Success
-- Check size of pthread_t
-- Check size of pthread_t - done
-- Performing Test HAVE_PEERCRED
-- Performing Test HAVE_PEERCRED - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/okkaba/mysql/mysql-5.5.10/bld
okkaba@okako:~/mysql/mysql-5.5.10/bld$ ls -al
total 244
drwxr-xr-x 25 okkaba okkaba 4096 2011-04-03 08:50 .
drwxr-xr-x 33 okkaba okkaba 4096 2011-04-03 08:27 ..
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 client
-rw-r--r-- 1 okkaba okkaba 47569 2011-04-03 08:50 CMakeCache.txt
drwxr-xr-x 9 okkaba okkaba 4096 2011-04-03 08:50 CMakeFiles
-rw-r--r-- 1 okkaba okkaba 6654 2011-04-03 08:50 cmake_install.cmake
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 cmd-line-utils
-rw-r--r-- 1 okkaba okkaba 4701 2011-04-03 08:50 CPackConfig.cmake
-rw-r--r-- 1 okkaba okkaba 5641 2011-04-03 08:50 CPackSourceConfig.cmake
-rw-r--r-- 1 okkaba okkaba 1185 2011-04-03 08:50 CTestTestfile.cmake
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 dbug
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 extra
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 include
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 libmysql
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 libservices
-rw-r--r-- 1 okkaba okkaba 4814 2011-04-03 08:50 make_dist.cmake
-rw-r--r-- 1 okkaba okkaba 50843 2011-04-03 08:50 Makefile
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 man
drwxr-xr-x 4 okkaba okkaba 4096 2011-04-03 08:50 mysql-test
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 mysys
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 packaging
drwxr-xr-x 7 okkaba okkaba 4096 2011-04-03 08:50 plugin
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 regex
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 scripts
drwxr-xr-x 4 okkaba okkaba 4096 2011-04-03 08:50 sql
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 sql-bench
drwxr-xr-x 12 okkaba okkaba 4096 2011-04-03 08:50 storage
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 strings
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 support-files
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 tests
drwxr-xr-x 4 okkaba okkaba 4096 2011-04-03 08:50 unittest
-rw-r--r-- 1 okkaba okkaba 88 2011-04-03 08:50 VERSION.dep
drwxr-xr-x 3 okkaba okkaba 4096 2011-04-03 08:50 vio
okkaba@okako:~/mysql/mysql-5.5.10/bld$ make
...
okkaba@okako:~/mysql/mysql-5.5.10/bld# make install
...
-- Up-to-date: /usr/local/mysql/man/man1/mysql.server.1
-- Up-to-date: /usr/local/mysql/man/man1/mysqldump.1
-- Up-to-date: /usr/local/mysql/man/man1/perror.1
-- Up-to-date: /usr/local/mysql/man/man1/mysqlbug.1
-- Up-to-date: /usr/local/mysql/man/man1/mysql_setpermission.1
-- Up-to-date: /usr/local/mysql/man/man8/mysqld.8
okako:/home/okkaba/mysql/mysql-5.5.10/bld#

in short: the mysql official release compiler options and cmake .. didn't work. specifying explicitly -DCMAKE_INSTALL_PREFIX=/usr/local/mysql to override the default /usr/local/mysql doesn't work either. -DINSTALL_SBINDIR=bin

breaktime for now and cheers??? noel

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Help on Debian Source building mysql 5.5.10 w/ CMake
4488
April 03, 2011 10:49AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.