rpm的configuration选项

我如何检查用于构buildmysql-server的rpmconfiguration选项? 我想包括mysql的memcached支持,因此我必须从源重新安装mysql服务器,我需要知道确切的configurationrpm用于生成当前在我的系统上运行的mysql。

mysqlbug显示我下面,但我不知道如何使用它来与cmakebuild立MySQL服务器

>MySQL support: [none | licence | email support | extended email support ] >Synopsis: <synopsis of the problem (one line)> >Severity: <[ non-critical | serious | critical ] (one line)> >Priority: <[ low | medium | high ] (one line)> >Category: mysql >Class: <[ sw-bug | doc-bug | change-request | support ] (one line)> >Release: mysql-5.6.12-56 (Percona Server (GPL), Release rc60.4, Revision 393) >C compiler: gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3) >C++ compiler: g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3) >Environment: <machine, os, target, libraries (multiple lines)> System: Linux 1 3.0.0+ #1 SMP Fri Oct 26 07:55:47 EEST 2012 x86_64 x86_64 x86_64 GNU/Linux Architecture: x86_64 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/lib64/ccache/gcc /usr/lib64/ccache/cc GCC: Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) Compilation info (call): CC='/usr/bin/gcc' CFLAGS='-fPIC -Wall -O3 -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=rc60.4 -fPIC -Wall -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -DMY_PTHREAD_FASTMUTEX=1' CXX='/usr/bin/g++' CXXFLAGS='-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -DPERCONA_INNODB_VERSION=rc60.4 -fPIC -Wall -Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -DMY_PTHREAD_FASTMUTEX=1' LDFLAGS='' ASFLAGS='' Compilation info (used): CC='/usr/bin/gcc' CFLAGS='-fPIC -Wall -O3 -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=rc60.4 -fPIC -Wall -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -DMY_PTHREAD_FASTMUTEX=1' CXX='/usr/bin/g++' CXXFLAGS='-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -DPERCONA_INNODB_VERSION=rc60.4 -fPIC -Wall -Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -DMY_PTHREAD_FASTMUTEX=1' LDFLAGS='' ASFLAGS='' LIBC: lrwxrwxrwx. 1 root root 12 Jan 7 2013 /lib/libc.so.6 -> libc-2.12.so -rwxr-xr-x. 1 root root 1898576 Nov 1 2012 /lib/libc-2.12.so 

你下载源代码rpm,安装它,然后检查spec文件

 yumdownloader --source mysql-server rpm -i mysql-server*.src.rpm cd ~/rpmbuild/SPECS/mysql-server*/ 

检查那里的规格文件。 它包含了所有的补丁,编译选项等。如果你不熟悉rpm的制作,那么你也可以看看rpmbuild 。

这个博客文章概述了让你开始的基本过程。

当你完成spec文件的更改时,可以使用例如rpmbuild来转换rpm:

 rpmbuild -ba mysql*.spec 

我也想谈谈签署软件包