power架构安装mysql
[root@admin ~]# cd /usr/mysql
[root@admin mysql]# ls
data mysql-5.7.16
[root@admin mysql]#
[root@admin mysql]# cd mysql-5.7.16/
[root@admin mysql-5.7.16]#
[root@admin mysql-5.7.16]# ls
boost configure.cmake INSTALL man README support-files
BUILD COPYING libbinlogevents mysql-test regex testclients
client dbug libbinlogstandalone mysys scripts unittest
cmake Docs libevent mysys_ssl sql VERSION
CMakeLists.txt Doxyfile-perfschema libmysql packaging sql-common vio
cmd-line-utils extra libmysqld plugin storage win
config.h.cmake include libservices rapid strings zlib
[root@admin mysql-5.7.16]#
[root@admin mysql-5.7.16]#
[root@admin mysql-5.7.16]# pwd
/usr/mysql/mysql-5.7.16
[root@admin mysql-5.7.16]#
[root@admin mysql-5.7.16]# cd ..
[root@admin mysql]# ls
data mysql-5.7.16
[root@admin mysql]# mkdir boost
[root@admin mysql]#
[root@admin mysql]# ls
boost data mysql-5.7.16
[root@admin mysql]#
[root@admin mysql]# ll
total 4
drwxr-xr-x. 2 root root 6 Nov 23 01:07 boost
drwxr-xr-x. 2 root root 6 Nov 22 16:34 data
drwxr-xr-x. 36 7161 31415 4096 Sep 29 2016 mysql-5.7.16
[root@admin mysql]#
[root@admin mysql]# cd boost/
[root@admin boost]#
[root@admin boost]# pwd
/usr/mysql/boost
[root@admin boost]#
[root@admin boost]# cd ..
[root@admin mysql]# ls
boost data mysql-5.7.16
[root@admin mysql]#
[root@admin mysql]# cd mysql-5.7.16/
[root@admin mysql-5.7.16]#
[root@admin mysql-5.7.16]# ls
boost configure.cmake INSTALL man README support-files
BUILD COPYING libbinlogevents mysql-test regex testclients
client dbug libbinlogstandalone mysys scripts unittest
cmake Docs libevent mysys_ssl sql VERSION
CMakeLists.txt Doxyfile-perfschema libmysql packaging sql-common vio
cmd-line-utils extra libmysqld plugin storage win
config.h.cmake include libservices rapid strings zlib
[root@admin mysql-5.7.16]#
-----------------------------------------------------------------------------
下面开始执行
cmake -DCMAKE_INSTALL_PREFIX=/usr/mysql -DMYSQL_DATADIR=/usr/mysql/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_TCP_PORT=3306 -DMYSQL_USER=mysql -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/mysql/boost
[root@admin mysql-5.7.16]# cmake -DCMAKE_INSTALL_PREFIX=/usr/mysql --DMYSQL_DATADIR=/usr/mysql/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_genOeral_ci -DMYSQL_TCP_PORT=3306 -DMYSQL_USER=mysql -DWITH_MYISAM_STORAGE_ENGINE=1 -DWVITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STOR-AGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/mysql/boost
-- Running cmake version 2.8.12.2
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Configuring with MAX_INDEXES = 64U
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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 SHM_HUGETLB
-- Looking for SHM_HUGETLB - found
-- 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
-- SIZEOF_VOIDP 8
-- Performing Test HAVE_C_FLOATING_POINT_OPTIMIZATION_PROBLEMS
-- Performing Test HAVE_C_FLOATING_POINT_OPTIMIZATION_PROBLEMS - Success
-- Performing Test HAVE_CXX_FLOATING_POINT_OPTIMIZATION_PROBLEMS
-- Performing Test HAVE_CXX_FLOATING_POINT_OPTIMIZATION_PROBLEMS - Success
-- MySQL 5.7.16
-- Packaging as: mysql-5.7.16-Linux-ppc64le
-- Downloading boost_1_59_0.tar.gz to /usr/mysql/boost
-- [download 100% complete]
-- [download 76% complete]
-- [download 100% complete]
-- [download 76% complete]
-- [download 100% complete]
-- [download 76% complete]
-- [download 100% complete]
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- Download failed, error: 28;"Timeout was reached"
CMake Error at cmake/boost.cmake:187 (MESSAGE):
You can try downloading
http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz
manually using curl/wget or a similar tool, or increase the value of
DOWNLOAD_BOOST_TIMEOUT (which is now 600 seconds)
Call Stack (most recent call first):
CMakeLists.txt:455 (INCLUDE)
-- Configuring incomplete, errors occurred!
See also "/usr/mysql/mysql-5.7.16/CMakeFiles/CMakeOutput.log".
[root@admin mysql-5.7.16]#
----------------------------
发现不行
-----------------------------
再来
/usr/mysql/data
/usr/mysql/mysql-5.7.16
cmake -DCMAKE_INSTALL_PREFIX=/usr/mysql/mysql-5.7.16\
-DMYSQL_DATADIR=/usr/mysql/data \
-DMYSQL_UNIX_ADDR=/usr/mysql/mysql-5.7.16/mysql.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_EXTRA_CHARSETS:STRING=utf8 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DMYSQL_DATADIR=/usr/mysql/mysql-5.7.16\
-DMYSQL_USER=mysql \
-DMYSQL_TCP_PORT=3306
[root@admin mysql-5.7.16]# cmake -DCMAKE_INSTALL_PREFIX=/usr/mysql/mysql-5.7.16\
> -DMYSQL_DATADIR=/usr/mysql/data \
> -DMYSQL_UNIX_ADDR=/usr/mysql/mysql-5.7.16/mysql.sock \
> -DDEFAULT_CHARSET=utf8 \
> -DDEFAULT_COLLATION=utf8_general_ci \
> -DWITH_EXTRA_CHARSETS:STRING=utf8 \
> -DWITH_INNOBASE_STORAGE_ENGINE=1 \
> -DWITH_READLINE=1 \
> -DENABLED_LOCAL_INFILE=1 \
> -DMYSQL_DATADIR=/usr/mysql/mysql-5.7.16\
> -DMYSQL_USER=mysql \
> -DMYSQL_TCP_PORT=3306
-- Running cmake version 2.8.12.2
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Configuring with MAX_INDEXES = 64U
-- SIZEOF_VOIDP 8
-- MySQL 5.7.16
-- Packaging as: mysql-5.7.16-Linux-ppc64le
-- Downloading boost_1_59_0.tar.gz to /usr/mysql/boost
-- [download 100% complete]
-- [download 76% complete]
-- [download 100% complete]
-- [download 76% complete]
-- [download 100% complete]
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- Download failed, error: 28;"Timeout was reached"
CMake Error at cmake/boost.cmake:187 (MESSAGE):
You can try downloading
http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz
manually using curl/wget or a similar tool, or increase the value of
DOWNLOAD_BOOST_TIMEOUT (which is now 600 seconds)
Call Stack (most recent call first):
CMakeLists.txt:455 (INCLUDE)
-- Configuring incomplete, errors occurred!
See also "/usr/mysql/mysql-5.7.16/CMakeFiles/CMakeOutput.log".
[root@admin mysql-5.7.16]#
还不行
-----------------------------
只好在浏览器下载
http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz
2019-11-23 2:21 下载成功
然后本地上传下载好的 boost_1_59_0.tar.gz
---------------------------------
安装boost库
------------------------------------------------------
[root@admin ~]# cd /usr/mysql/
[root@admin mysql]# ls
boost data mysql-5.7.16
[root@admin mysql]#
[root@admin mysql]# cd boost/
[root@admin boost]# ll
total 0
[root@admin boost]#
[root@admin boost]#
[root@admin boost]# cd ..
[root@admin mysql]#
[root@admin mysql]# ll
total 4
drwxr-xr-x. 2 root root 6 Nov 23 01:39 boost
drwxr-xr-x. 2 root root 6 Nov 22 16:34 data
drwxr-xr-x. 37 7161 31415 4096 Nov 23 01:39 mysql-5.7.16
[root@admin mysql]#
[root@admin mysql]# rm -rf /usr/mysql/boost/
[root@admin mysql]# ll
total 4
drwxr-xr-x. 2 root root 6 Nov 22 16:34 data
drwxr-xr-x. 37 7161 31415 4096 Nov 23 01:39 mysql-5.7.16
[root@admin mysql]#
[root@admin mysql]# cd /opt/soft/
[root@admin soft]# ll
total 0
[root@admin soft]#
[root@admin soft]# ll
total 81752
-rw-r--r--. 1 root root 83709983 Nov 23 12:57 boost_1_59_0.tar.gz
[root@admin soft]#
[root@admin soft]# tar zxvf boost_1_59_0.tar.gz
[root@admin soft]#
[root@admin soft]# ll
total 81756
drwx------. 8 501 games 4096 Aug 12 2015 boost_1_59_0
-rw-r--r--. 1 root root 83709983 Nov 23 12:57 boost_1_59_0.tar.gz
[root@admin soft]#
[root@admin soft]# mv boost_1_59_0 /usr/mysql/
[root@admin soft]# ll
total 81752
-rw-r--r--. 1 root root 83709983 Nov 23 12:57 boost_1_59_0.tar.gz
[root@admin soft]#
[root@admin soft]# rm -rf boost_1_59_0.tar.gz
[root@admin soft]#
[root@admin soft]# ll
total 0
[root@admin soft]#
[root@admin soft]# cd /usr/mysql/
[root@admin mysql]# ll
total 8
drwx------. 8 501 games 4096 Aug 12 2015 boost_1_59_0
drwxr-xr-x. 2 root root 6 Nov 22 16:34 data
drwxr-xr-x. 37 7161 31415 4096 Nov 23 01:39 mysql-5.7.16
[root@admin mysql]# mv boost_1_59_0/ boost
[root@admin mysql]#
[root@admin mysql]# ll
total 8
drwx------. 8 501 games 4096 Aug 12 2015 boost
drwxr-xr-x. 2 root root 6 Nov 22 16:34 data
drwxr-xr-x. 37 7161 31415 4096 Nov 23 01:39 mysql-5.7.16
[root@admin mysql]#
[root@admin mysql]# cd boost/
[root@admin boost]# ls
boost boost.css bootstrap.sh index.html libs rst.css
boost-build.jam boost.png doc INSTALL LICENSE_1_0.txt status
boostcpp.jam bootstrap.bat index.htm Jamroot more tools
[root@admin boost]#
[root@admin boost]# cd ..
[root@admin mysql]#
[root@admin mysql]# cd mysql-5.7.16/
[root@admin mysql-5.7.16]# ls
boost config.h.cmake INSTALL mysql-test scripts VERSION
BUILD configure.cmake libbinlogevents mysys sql VERSION.dep
client COPYING libbinlogstandalone mysys_ssl sql-common vio
cmake dbug libevent packaging storage win
CMakeCache.txt Docs libmysql plugin strings zlib
CMakeFiles Doxyfile-perfschema libmysqld rapid support-files
CMakeLists.txt extra libservices README testclients
cmd-line-utils include man regex unittest
[root@admin mysql-5.7.16]# cd ..
[root@admin mysql]# ls
boost data mysql-5.7.16
[root@admin mysql]#
------------------------------------------------------
boost库安装好了
下面开始
再来
cmake -DCMAKE_INSTALL_PREFIX=/usr/mysql/mysql-5.7.16\
-DMYSQL_DATADIR=/usr/mysql/data \
-DMYSQL_UNIX_ADDR=/usr/mysql/mysql-5.7.16/mysql.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_EXTRA_CHARSETS:STRING=utf8 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DMYSQL_DATADIR=/usr/mysql/mysql-5.7.16\
-DMYSQL_USER=mysql \
-DMYSQL_TCP_PORT=3306
[root@admin mysql]#
[root@admin mysql]# cd mysql-5.7.16/
[root@admin mysql-5.7.16]#
[root@admin mysql-5.7.16]# cmake -DCMAKE_INSTALL_PREFIX=/usr/mysql/mysql-5.7.16\
> -DMYSQL_DATADIR=/usr/mysql/data \
> -DMYSQL_UNIX_ADDR=/usr/mysql/mysql-5.7.16/mysql.sock \
> -DDEFAULT_CHARSET=utf8 \
> -DDEFAULT_COLLATION=utf8_general_ci \
> -DWITH_EXTRA_CHARSETS:STRING=utf8 \
> -DWITH_INNOBASE_STORAGE_ENGINE=1 \
> -DWITH_READLINE=1 \
> -DENABLED_LOCAL_INFILE=1 \
> -DMYSQL_DATADIR=/usr/mysql/mysql-5.7.16\
> -DMYSQL_USER=mysql \
> -DMYSQL_TCP_PORT=3306
走你
[root@admin mysql-5.7.16]#
[root@admin mysql-5.7.16]# cmake -DCMAKE_INSTALL_PREFIX=/usr/mysql/mysql-5.7.16\
> -DMYSQL_DATADIR=/usr/mysql/data \
> -DMYSQL_UNIX_ADDR=/usr/mysql/mysql-5.7.16/mysql.sock \
> -DDEFAULT_CHARSET=utf8 \
> -DDEFAULT_COLLATION=utf8_general_ci \
> -DWITH_EXTRA_CHARSETS:STRING=utf8 \
> -DWITH_INNOBASE_STORAGE_ENGINE=1 \
> -DWITH_READLINE=1 \
> -DENABLED_LOCAL_INFILE=1 \
> -DMYSQL_DATADIR=/usr/mysql/mysql-5.7.16\
> -DMYSQL_USER=mysql \
> -DMYSQL_TCP_PORT=3306
-- Running cmake version 2.8.12.2
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Configuring with MAX_INDEXES = 64U
-- SIZEOF_VOIDP 8
-- MySQL 5.7.16
-- Packaging as: mysql-5.7.16-Linux-ppc64le
-- Local boost dir /usr/mysql/boost
-- Found /usr/mysql/boost/boost/version.hpp
-- BOOST_VERSION_NUMBER is #define BOOST_VERSION 105900
-- BOOST_INCLUDE_DIR /usr/mysql/boost
-- Performing Test HAVE_LLVM_LIBCPP
-- Performing Test HAVE_LLVM_LIBCPP - Failed
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for floor
-- Looking for floor - not found
-- Looking for floor in m
-- Looking for floor in m - found
-- Looking for gethostbyname_r
-- Looking for gethostbyname_r - found
-- Looking for bind
-- Looking for bind - found
-- Looking for crypt
-- Looking for crypt - not found
-- Looking for crypt in crypt
-- Looking for crypt in crypt - found
-- Looking for setsockopt
-- Looking for setsockopt - found
-- Looking for dlopen
-- Looking for dlopen - not found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for sched_yield
-- Looking for sched_yield - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for timer_create
-- Looking for timer_create - not found
-- Looking for timer_create in rt
-- Looking for timer_create in rt - found
-- Looking for atomic_thread_fence
-- Looking for atomic_thread_fence - not found
-- Looking for atomic_thread_fence in atomic
-- Looking for atomic_thread_fence in atomic - not found
-- Looking for include file alloca.h
-- Looking for include file alloca.h - found
-- Looking for include file arpa/inet.h
-- Looking for include file arpa/inet.h - found
-- Looking for include file dirent.h
-- Looking for include file dirent.h - found
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file execinfo.h
-- Looking for include file execinfo.h - found
-- Looking for include file fpu_control.h
-- Looking for include file fpu_control.h - found
-- Looking for include file grp.h
-- Looking for include file grp.h - found
-- Looking for include file ieeefp.h
-- Looking for include file ieeefp.h - not found
-- Looking for include file langinfo.h
-- Looking for include file langinfo.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for include file netinet/in.h
-- Looking for include file netinet/in.h - found
-- Looking for include file poll.h
-- Looking for include file poll.h - found
-- Looking for include file pwd.h
-- Looking for include file pwd.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file sys/cdefs.h
-- Looking for include file sys/cdefs.h - found
-- Looking for include file sys/ioctl.h
-- Looking for include file sys/ioctl.h - found
-- Looking for include file sys/mman.h
-- Looking for include file sys/mman.h - found
-- Looking for include file sys/resource.h
-- Looking for include file sys/resource.h - found
-- Looking for include file sys/select.h
-- Looking for include file sys/select.h - found
-- Looking for include file sys/socket.h
-- Looking for include file sys/socket.h - found
-- Looking for include files curses.h, term.h
-- Looking for include files curses.h, term.h - found
-- Looking for include file termios.h
-- Looking for include file termios.h - found
-- Looking for include file termio.h
-- Looking for include file termio.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file sys/wait.h
-- Looking for include file sys/wait.h - found
-- Looking for include file sys/param.h
-- Looking for include file sys/param.h - found
-- Looking for include file fnmatch.h
-- Looking for include file fnmatch.h - found
-- Looking for include file sys/un.h
-- Looking for include file sys/un.h - found
-- Looking for include file vis.h
-- Looking for include file vis.h - not found
-- Looking for include file sasl/sasl.h
-- Looking for include file sasl/sasl.h - not found
-- Looking for include file sys/devpoll.h
-- Looking for include file sys/devpoll.h - not found
-- Looking for include file sys/epoll.h
-- Looking for include file sys/epoll.h - found
-- Looking for TAILQ_FOREACH
-- Looking for TAILQ_FOREACH - found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - not found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for printstack
-- Looking for printstack - not found
-- Looking for index
-- Looking for index - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for cuserid
-- Looking for cuserid - found
-- Looking for directio
-- Looking for directio - not found
-- Looking for ftruncate
-- Looking for ftruncate - found
-- Looking for compress
-- Looking for compress - not found
-- Looking for crypt
-- Looking for crypt - found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for fchmod
-- Looking for fchmod - found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for fdatasync
-- Looking for fdatasync - found
-- Looking for fdatasync
-- Looking for fdatasync - found
-- Looking for fedisableexcept
-- Looking for fedisableexcept - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for fsync
-- Looking for fsync - found
-- Looking for gethostbyaddr_r
-- Looking for gethostbyaddr_r - found
-- Looking for gethrtime
-- Looking for gethrtime - not found
-- Looking for getnameinfo
-- Looking for getnameinfo - found
-- Looking for getpass
-- Looking for getpass - found
-- Looking for getpassphrase
-- Looking for getpassphrase - not found
-- Looking for getpwnam
-- Looking for getpwnam - found
-- Looking for getpwuid
-- Looking for getpwuid - found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for initgroups
-- Looking for initgroups - found
-- Looking for issetugid
-- Looking for issetugid - not found
-- Looking for getuid
-- Looking for getuid - found
-- Looking for geteuid
-- Looking for geteuid - found
-- Looking for getgid
-- Looking for getgid - found
-- Looking for getegid
-- Looking for getegid - found
-- Looking for lstat
-- Looking for lstat - found
-- Looking for madvise
-- Looking for madvise - found
-- Looking for malloc_info
-- Looking for malloc_info - found
-- Looking for memrchr
-- Looking for memrchr - found
-- Looking for mlock
-- Looking for mlock - found
-- Looking for mlockall
-- Looking for mlockall - found
-- Looking for mmap64
-- Looking for mmap64 - found
-- Looking for poll
-- Looking for poll - found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for pread
-- Looking for pread - found
-- Looking for pthread_condattr_setclock
-- Looking for pthread_condattr_setclock - found
-- Looking for pthread_sigmask
-- Looking for pthread_sigmask - found
-- Looking for readdir_r
-- Looking for readdir_r - found
-- Looking for readlink
-- Looking for readlink - found
-- Looking for realpath
-- Looking for realpath - found
-- Looking for setfd
-- Looking for setfd - not found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for sleep
-- Looking for sleep - found
-- Looking for stpcpy
-- Looking for stpcpy - found
-- Looking for stpncpy
-- Looking for stpncpy - found
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for strnlen
-- Looking for strnlen - found
-- Looking for strlcat
-- Looking for strlcat - not found
-- Looking for strsignal
-- Looking for strsignal - found
-- Looking for fgetln
-- Looking for fgetln - not found
-- Looking for strsep
-- Looking for strsep - found
-- Looking for tell
-- Looking for tell - not found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for memalign
-- Looking for memalign - found
-- Looking for nl_langinfo
-- Looking for nl_langinfo - found
-- Looking for ntohll
-- Looking for ntohll - not found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for epoll_create
-- Looking for epoll_create - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Looking for kqueue
-- Looking for kqueue - not found
-- Looking for timeradd
-- Looking for timeradd - found
-- Looking for timerclear
-- Looking for timerclear - found
-- Looking for timercmp
-- Looking for timercmp - found
-- Looking for timerisset
-- Looking for timerisset - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/times.h
-- Looking for include file sys/times.h - found
-- Looking for times
-- Looking for times - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for lrand48
-- Looking for lrand48 - found
-- Looking for TIOCGWINSZ
-- Looking for TIOCGWINSZ - found
-- Looking for FIONREAD
-- Looking for FIONREAD - found
-- Looking for FIONREAD
-- Looking for FIONREAD - not found
-- Looking for SIGEV_THREAD_ID
-- Looking for SIGEV_THREAD_ID - found
-- Looking for SIGEV_PORT
-- Looking for SIGEV_PORT - not found
-- Looking for log2
-- Looking for log2 - found
-- Looking for isinf
-- Looking for isinf - found
-- Performing Test HAVE_CXX_ISINF
-- Performing Test HAVE_CXX_ISINF - Success
-- Looking for timer_create
-- Looking for timer_create - found
-- Looking for timer_settime
-- Looking for timer_settime - found
-- Looking for kqueue
-- Looking for kqueue - not found
-- Looking for EVFILT_TIMER
-- Looking for EVFILT_TIMER - not found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Check size of char *
-- Check size of char * - done
-- Check size of long
-- Check size of long - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long long
-- Check size of long long - done
-- Check size of off_t
-- Check size of off_t - done
-- Check size of time_t
-- Check size of time_t - done
-- Check size of struct timespec
-- Check size of struct timespec - done
-- Check size of uint
-- Check size of uint - done
-- Check size of ulong
-- Check size of ulong - done
-- Check size of u_int32_t
-- Check size of u_int32_t - done
-- Performing Test HAVE_VISIBILITY_HIDDEN
-- Performing Test HAVE_VISIBILITY_HIDDEN - Success
-- Checking stack direction : -1
-- Looking for include files time.h, sys/time.h
-- Looking for include files time.h, sys/time.h - found
-- Looking for O_NONBLOCK
-- Looking for O_NONBLOCK - found
-- Performing Test HAVE_FAKE_PAUSE_INSTRUCTION
-- Performing Test HAVE_FAKE_PAUSE_INSTRUCTION - Failed
-- Performing Test HAVE_HMT_PRIORITY_INSTRUCTION
-- Performing Test HAVE_HMT_PRIORITY_INSTRUCTION - Success
-- Performing Test HAVE_BSS_START
-- Performing Test HAVE_BSS_START - Success
-- Performing Test HAVE_BUILTIN_UNREACHABLE
-- Performing Test HAVE_BUILTIN_UNREACHABLE - Success
-- Performing Test HAVE_BUILTIN_EXPECT
-- Performing Test HAVE_BUILTIN_EXPECT - Success
-- Performing Test HAVE_BUILTIN_STPCPY
-- Performing Test HAVE_BUILTIN_STPCPY - Success
-- Performing Test HAVE_GCC_ATOMIC_BUILTINS
-- Performing Test HAVE_GCC_ATOMIC_BUILTINS - Success
-- Performing Test HAVE_GCC_SYNC_BUILTINS
-- Performing Test HAVE_GCC_SYNC_BUILTINS - Success
-- Looking for netinet/in6.h
-- Looking for netinet/in6.h - not found
-- Check size of struct sockaddr_in6
-- Check size of struct sockaddr_in6 - done
-- Check size of struct in6_addr
-- Check size of struct in6_addr - done
-- Performing Test HAVE_SOCKADDR_STORAGE_SS_FAMILY
-- Performing Test HAVE_SOCKADDR_STORAGE_SS_FAMILY - Success
-- Performing Test HAVE_SOCKADDR_IN_SIN_LEN
-- Performing Test HAVE_SOCKADDR_IN_SIN_LEN - Failed
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_LEN
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_LEN - Failed
-- Performing Test HAVE_IMPLICIT_DEPENDENT_NAME_TYPING
-- Performing Test HAVE_IMPLICIT_DEPENDENT_NAME_TYPING - Failed
-- Looking for chown
-- Looking for chown - found
-- Looking for include file numaif.h
-- Looking for include file numaif.h - found
-- Performing Test HAVE_LIBNUMA
-- Performing Test HAVE_LIBNUMA - Success
-- Check size of socklen_t
-- Check size of socklen_t - failed
-- Performing Test HAVE_NO_UNUSED_CONST_VAR
-- Performing Test HAVE_NO_UNUSED_CONST_VAR - Success
-- Check size of mbstate_t
-- Check size of mbstate_t - done
-- Performing Test HAVE_LANGINFO_CODESET
-- Performing Test HAVE_LANGINFO_CODESET - Success
-- Looking for wcsdup
-- Looking for wcsdup - found
-- Check size of wchar_t
-- Check size of wchar_t - done
-- Check size of wint_t
-- Check size of wint_t - done
-- Found Curses: /usr/lib64/libcurses.so
-- Looking for tputs in /usr/lib64/libcurses.so
-- Looking for tputs in /usr/lib64/libcurses.so - found
-- Performing Test HAVE_DECL_TGOTO
-- Performing Test HAVE_DECL_TGOTO - Success
-- Looking for strvis
-- Looking for strvis - not found
-- Looking for strunvis
-- Looking for strunvis - not found
-- WITH_PROTOBUF=bundled
-- Performing Test HAVE_NO_SIGN_COMPARE
-- Performing Test HAVE_NO_SIGN_COMPARE - Success
-- Performing Test HAVE_NO_UNUSED_TYPEDEFS
-- Performing Test HAVE_NO_UNUSED_TYPEDEFS - Success
-- Performing Test HAVE_NO_IGNORED_QUALIFIERS
-- Performing Test HAVE_NO_IGNORED_QUALIFIERS - Success
-- Performing Test HAVE_NO_RETURN_TYPE
-- Performing Test HAVE_NO_RETURN_TYPE - Success
-- Performing Test HAVE_NO_UNUSED_FUNCTION
-- Performing Test HAVE_NO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_MAYBE_UNINITIALIZED
-- Performing Test HAVE_MAYBE_UNINITIALIZED - Success
-- Performing Test HAVE_UNUSED_BUT_SET
-- Performing Test HAVE_UNUSED_BUT_SET - Success
-- protobuf version is 2.6
-- Performing Test HAVE_SYS_THREAD_SELFID
-- Performing Test HAVE_SYS_THREAD_SELFID - Failed
-- Performing Test HAVE_SYS_GETTID
-- Performing Test HAVE_SYS_GETTID - Success
-- Performing Test HAVE_PTHREAD_SETNAME_NP
-- Performing Test HAVE_PTHREAD_SETNAME_NP - Success
-- Performing Test HAVE_PTHREAD_GETTHREADID_NP
-- Performing Test HAVE_PTHREAD_GETTHREADID_NP - Failed
-- Performing Test HAVE_INTEGER_PTHREAD_SELF
-- Performing Test HAVE_INTEGER_PTHREAD_SELF - Success
-- Looking for include file libaio.h
-- Looking for include file libaio.h - found
-- Looking for io_queue_init in aio
-- Looking for io_queue_init in aio - found
-- Looking for sched_getcpu
-- Looking for sched_getcpu - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Performing Test HAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE
-- Performing Test HAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE - Success
-- Performing Test HAVE_IB_GCC_SYNC_SYNCHRONISE
-- Performing Test HAVE_IB_GCC_SYNC_SYNCHRONISE - Success
-- Performing Test HAVE_IB_GCC_ATOMIC_THREAD_FENCE
-- Performing Test HAVE_IB_GCC_ATOMIC_THREAD_FENCE - Success
-- Performing Test HAVE_IB_GCC_ATOMIC_COMPARE_EXCHANGE
-- Performing Test HAVE_IB_GCC_ATOMIC_COMPARE_EXCHANGE - Success
-- Performing Test HAVE_IB_ATOMIC_PTHREAD_T_GCC
-- Performing Test HAVE_IB_ATOMIC_PTHREAD_T_GCC - Success
-- Performing Test HAVE_IB_LINUX_FUTEX
-- Performing Test HAVE_IB_LINUX_FUTEX - Success
-- Looking for asprintf
-- Looking for asprintf - found
-- Using cmake version 2.8.12.2
-- Performing Test HAVE_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_UNUSED_BUT_SET_VARIABLE - Success
-- Disabling -Wunused-but-set-variable warning for building NDB
-- Performing Test HAVE_STRICT_ALIASING
-- Performing Test HAVE_STRICT_ALIASING - Success
-- Disabling -Wstrict-aliasing warning for building NDB
-- Not building NDB
-- Performing Test HAVE_PEERCRED
-- Performing Test HAVE_PEERCRED - Success
-- Using Boost headers from /usr/mysql/boost
-- Performing Test CXX_HAVE_SIGN_COMPARE
-- Performing Test CXX_HAVE_SIGN_COMPARE - Success
-- Performing Test CXX_HAVE_UNUSED_VARIABLE
-- Performing Test CXX_HAVE_UNUSED_VARIABLE - Success
-- MYSQLX - Text log of protobuf messages enabled
-- Performing Test HAVE_UNUSED_PARAMETER
-- Performing Test HAVE_UNUSED_PARAMETER - Success
-- Performing Test HAVE_NO_DEPREC_CONST
-- Performing Test HAVE_NO_DEPREC_CONST - Success
-- Library mysqlclient depends on OSLIBS -lpthread;m;rt;dl
-- Looking for include file endian.h
-- Looking for include file endian.h - found
-- Looking for le64toh
-- Looking for le64toh - found
-- Looking for le32toh
-- Looking for le32toh - found
-- Looking for le16toh
-- Looking for le16toh - found
-- Check size of long long
-- Check size of long long - done
-- Check size of long
-- Check size of long - done
-- Check size of int
-- Check size of int - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found ZLIB: zlib (found version "1.2.3")
-- Googlemock was not found. gtest-based unit tests will be disabled. You can run cmake . -DENABLE_DOWNLOADS=1 to automatically download and build required components from source.
-- If you are inside a firewall, you may need to use an http proxy: export http_proxy=http://example.com:80
-- Performing Test HAVE_UNUSED_TYPEDEFS
-- Performing Test HAVE_UNUSED_TYPEDEFS - Success
-- Performing Test HAVE_NO_BUILTIN_MEMCMP
-- Performing Test HAVE_NO_BUILTIN_MEMCMP - Success
-- Library mysqlserver depends on OSLIBS -lpthread;m;rt;crypt;dl;aio;numa
-- INSTALL mysqlclient.pc lib/pkgconfig
-- Skipping deb packaging on unsupported platform .
-- CMAKE_BUILD_TYPE: RelWithDebInfo
-- COMPILE_DEFINITIONS: _GNU_SOURCE;_FILE_OFFSET_BITS=64;HAVE_CONFIG_H;HAVE_LIBEVENT1
-- CMAKE_C_FLAGS: -Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-after-statement
-- CMAKE_CXX_FLAGS: -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter
-- CMAKE_C_FLAGS_RELWITHDEBINFO: -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -fno-expensive-optimizations -DDBUG_OFF
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -fno-expensive-optimizations -DDBUG_OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/mysql/mysql-5.7.16
[root@admin mysql-5.7.16]#
[root@admin mysql-5.7.16]#
[root@admin mysql-5.7.16]# cd ..
[root@admin mysql]#
[root@admin mysql]# ll
total 8
drwx------. 8 501 games 4096 Aug 12 2015 boost
drwxr-xr-x. 2 root root 6 Nov 22 16:34 data
drwxr-xr-x. 38 7161 31415 4096 Nov 23 13:51 mysql-5.7.16
[root@admin mysql]#
[root@admin mysql]#
[root@admin mysql]# cd mysql-5.7.16/
[root@admin mysql-5.7.16]#
[root@admin mysql-5.7.16]# ls
boost COPYING libbinlogevents mysys_ssl strings
BUILD CPackConfig.cmake libbinlogstandalone packaging support-files
client CPackSourceConfig.cmake libevent plugin testclients
cmake CTestTestfile.cmake libmysql rapid unittest
CMakeCache.txt dbug libmysqld README VERSION
CMakeFiles Docs libservices regex VERSION.dep
cmake_install.cmake Doxyfile-perfschema make_dist.cmake scripts vio
CMakeLists.txt extra Makefile source_downloads win
cmd-line-utils include man sql zlib
config.h.cmake info_macros.cmake mysql-test sql-common
configure.cmake INSTALL mysys storage
[root@admin mysql-5.7.16]#
[root@admin mysql-5.7.16]#
--------------------------------------
成功!
--------------------------------------
然后下面这个
make && make install #这个过程比较慢,大概30分钟