我的CentOS 6.2 x86_64是选择最小化安装的, mysql的版本是mysql-5.1.56
首先用yum安装一些必要的软件包, 这个过程很顺利: # yum -y install bison ncurses-devel autoconf automake cmake telnet gcc gcc-c++ gd-devel libjpeg-devel libpng-devel freetype-devel make libtool wget zip unzip libtool-ltdl-devel* zlib* libxml* curl*
接下来开始安装mysql:
# tar xf mysql-5.1.56.tar.gz
# cd mysql-5.1.56
# ./configure --prefix=/usr/local/mysql-5.1.56 \
--with-charset=utf8 \
--with-extra-charsets=complex \
--enable-assembler \
--with-plugins=max \
--with-comment \
--with-big-tables \
--enable-local-infile
# 在configure的过程最后部分, 提示 /bin/rm: cannot remove `libtoolT': No such file or directory
# 搜到了解决办法是执行:autoreconf --force --install , 然后再configure一下就OK。 (这个在SUSE 10上可行)
# autoreconf --force --install # 出现满屏的信息
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
BUILD/Makefile.am:82: `%'-style pattern rules are a GNU make extension
Docs/Makefile.am:42: `%'-style pattern rules are a GNU make extension
client/Makefile.am:127: `%'-style pattern rules are a GNU make extension
client/Makefile.am:73: compiling `mysqlimport.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.in'
cmd-line-utils/Makefile.am:24: `%'-style pattern rules are a GNU make extension
cmd-line-utils/readline/Makefile.am:37: `%'-style pattern rules are a GNU make extension
dbug/Makefile.am:65: `%'-style pattern rules are a GNU make extension
extra/Makefile.am:60: `%'-style pattern rules are a GNU make extension
extra/yassl/Makefile.am:20: `%'-style pattern rules are a GNU make extension
extra/yassl/src/Makefile.am:22: wildcard ../include/*.hpp: non-POSIX variable name
extra/yassl/src/Makefile.am:22: (probably a GNU make extension)
extra/yassl/src/Makefile.am:22: wildcard ../include/openssl/*.h: non-POSIX variable name
extra/yassl/src/Makefile.am:22: (probably a GNU make extension)
extra/yassl/src/Makefile.am:26: `%'-style pattern rules are a GNU make extension
extra/yassl/taocrypt/Makefile.am:17: wildcard mySTL/*.hpp: non-POSIX variable name
extra/yassl/taocrypt/Makefile.am:17: (probably a GNU make extension)
extra/yassl/taocrypt/Makefile.am:20: `%'-style pattern rules are a GNU make extension
extra/yassl/taocrypt/benchmark/Makefile.am:24: `%'-style pattern rules are a GNU make extension
extra/yassl/taocrypt/src/Makefile.am:29: wildcard ../include/*.hpp: non-POSIX variable name
extra/yassl/taocrypt/src/Makefile.am:29: (probably a GNU make extension)
extra/yassl/taocrypt/src/Makefile.am:32: `%'-style pattern rules are a GNU make extension
extra/yassl/taocrypt/test/Makefile.am:24: `%'-style pattern rules are a GNU make extension
extra/yassl/testsuite/Makefile.am:28: `%'-style pattern rules are a GNU make extension
include/Makefile.am:70: `%'-style pattern rules are a GNU make extension
libmysql/Makefile.shared:118: `%'-style pattern rules are a GNU make extension
libmysql/Makefile.am:28: `libmysql/Makefile.shared' included from here
libmysql/Makefile.am:115: `%'-style pattern rules are a GNU make extension
libmysql/Makefile.shared:118: `%'-style pattern rules are a GNU make extension
libmysql_r/Makefile.am:29: `libmysql/Makefile.shared' included from here
libmysql_r/Makefile.am:46: `%'-style pattern rules are a GNU make extension
libmysqld/Makefile.am:236: `%'-style pattern rules are a GNU make extension
libmysqld/examples/Makefile.am:56: `%'-style pattern rules are a GNU make extension
man/Makefile.am:29: `%'-style pattern rules are a GNU make extension
mysql-test/Makefile.am:146: `%'-style pattern rules are a GNU make extension
mysql-test/lib/My/SafeProcess/Makefile.am:29: `%'-style pattern rules are a GNU make extension
mysys/Makefile.am:137: `%'-style pattern rules are a GNU make extension
netware/Makefile.am:120: `%'-style pattern rules are a GNU make extension
regex/Makefile.am:36: `%'-style pattern rules are a GNU make extension
scripts/Makefile.am:198: `%'-style pattern rules are a GNU make extension
server-tools/Makefile.am:20: `%'-style pattern rules are a GNU make extension
server-tools/instance-manager/Makefile.am:103: `%'-style pattern rules are a GNU make extension
sql-bench/Makefile.am:86: `%'-style pattern rules are a GNU make extension
sql-common/Makefile.am:20: `%'-style pattern rules are a GNU make extension
sql/Makefile.am:193: `%'-style pattern rules are a GNU make extension
sql/share/Makefile.am:62: `%'-style pattern rules are a GNU make extension
storage/archive/Makefile.am:70: `%'-style pattern rules are a GNU make extension
storage/blackhole/Makefile.am:52: `%'-style pattern rules are a GNU make extension
storage/csv/Makefile.am:45: `%'-style pattern rules are a GNU make extension
storage/example/Makefile.am:52: `%'-style pattern rules are a GNU make extension
storage/federated/Makefile.am:52: `%'-style pattern rules are a GNU make extension
storage/heap/Makefile.am:55: `%'-style pattern rules are a GNU make extension
storage/innobase/Makefile.am:175: `%'-style pattern rules are a GNU make extension
storage/innodb_plugin/Makefile.am:344: `%'-style pattern rules are a GNU make extension
storage/myisam/Makefile.am:154: `%'-style pattern rules are a GNU make extension
storage/myisammrg/Makefile.am:44: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/Makefile.am:21: `storage/ndb/config/common.mk.am' included from here
storage/ndb/Makefile.am:49: `%'-style pattern rules are a GNU make extension
storage/ndb/docs/Makefile.am:132: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/include/Makefile.am:16: `storage/ndb/config/common.mk.am' included from here
storage/ndb/include/Makefile.am:68: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/Makefile.am:18: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/Makefile.am:53: `%'-style pattern rules are a GNU make extension
storage/ndb/src/common/Makefile.am:33: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/common/debugger/Makefile.am:22: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/common/debugger/Makefile.am:26: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/common/debugger/signaldata/Makefile.am:43: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/common/debugger/signaldata/Makefile.am:47: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/common/logger/Makefile.am:22: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/common/logger/Makefile.am:26: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/common/mgmcommon/Makefile.am:24: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/common/mgmcommon/Makefile.am:29: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/common/portlib/Makefile.am:24: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/common/portlib/Makefile.am:59: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/common/transporter/Makefile.am:32: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/common/transporter/Makefile.am:36: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/common/util/Makefile.am:46: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/common/util/Makefile.am:50: `%'-style pattern rules are a GNU make extension
storage/ndb/src/cw/Makefile.am:21: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/cw/cpcd/Makefile.am:26: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/cw/cpcd/Makefile.am:32: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/kernel/Makefile.am:18: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/kernel/Makefile.am:75: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/kernel/blocks/Makefile.am:64: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/kernel/blocks/Makefile.am:68: `%'-style pattern rules are a GNU make extension
storage/ndb/src/kernel/blocks/Makefile.am:73: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/kernel/blocks/backup/Makefile.am:24: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/kernel/blocks/backup/Makefile.am:28: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/kernel/blocks/dbdict/Makefile.am:16: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/kernel/blocks/dbdict/Makefile.am:35: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/kernel/blocks/dbdih/Makefile.am:25: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/kernel/blocks/dbdih/Makefile.am:29: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/kernel/blocks/dblqh/Makefile.am:21: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/kernel/blocks/dblqh/Makefile.am:31: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/kernel/blocks/dbtup/Makefile.am:16: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/kernel/blocks/dbtup/Makefile.am:28: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/kernel/error/Makefile.am:22: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/kernel/error/Makefile.am:26: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/kernel/vm/Makefile.am:43: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/kernel/vm/Makefile.am:47: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/mgmapi/Makefile.am:27: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/mgmapi/Makefile.am:33: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/mgmclient/Makefile.am:30: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/mgmclient/Makefile.am:48: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/mgmsrv/Makefile.am:55: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/mgmsrv/Makefile.am:61: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/src/ndbapi/Makefile.am:66: `storage/ndb/config/common.mk.am' included from here
storage/ndb/src/ndbapi/Makefile.am:75: `%'-style pattern rules are a GNU make extension
storage/ndb/test/Makefile.am:26: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/test/ndbapi/Makefile.am:116: `storage/ndb/config/common.mk.am' included from here
storage/ndb/test/ndbapi/Makefile.am:129: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/test/ndbapi/bank/Makefile.am:32: `storage/ndb/config/common.mk.am' included from here
storage/ndb/test/ndbapi/bank/Makefile.am:36: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/test/run-test/Makefile.am:19: `storage/ndb/config/common.mk.am' included from here
storage/ndb/test/run-test/Makefile.am:55: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/test/src/Makefile.am:31: `storage/ndb/config/common.mk.am' included from here
storage/ndb/test/src/Makefile.am:35: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/test/tools/Makefile.am:40: `storage/ndb/config/common.mk.am' included from here
storage/ndb/test/tools/Makefile.am:47: `%'-style pattern rules are a GNU make extension
storage/ndb/config/common.mk.am:28: `:='-style assignments are not portable
storage/ndb/tools/Makefile.am:63: `storage/ndb/config/common.mk.am' included from here
storage/ndb/tools/Makefile.am:79: `%'-style pattern rules are a GNU make extension
strings/Makefile.am:84: `%'-style pattern rules are a GNU make extension
support-files/MacOSX/Makefile.am:57: `%'-style pattern rules are a GNU make extension
support-files/Makefile.am:132: `%'-style pattern rules are a GNU make extension
support-files/RHEL4-SElinux/Makefile.am:23: `%'-style pattern rules are a GNU make extension
tests/Makefile.am:65: `%'-style pattern rules are a GNU make extension
unittest/Makefile.am:30: `%'-style pattern rules are a GNU make extension
unittest/examples/Makefile.am:27: `%'-style pattern rules are a GNU make extension
unittest/mysys/Makefile.am:27: `%'-style pattern rules are a GNU make extension
unittest/mytap/Makefile.am:26: `%'-style pattern rules are a GNU make extension
unittest/mytap/t/Makefile.am:25: `%'-style pattern rules are a GNU make extension
unittest/strings/Makefile.am:27: `%'-style pattern rules are a GNU make extension
vio/Makefile.am:28: `%'-style pattern rules are a GNU make extension
win/Makefile.am:22: `%'-style pattern rules are a GNU make extension
zlib/Makefile.am:38: `%'-style pattern rules are a GNU make extension
# 好吧, 既然没报错, 就继续./configure试试
# ./configure --prefix=/usr/local/mysql-5.1.56 \
--with-charset=utf8 \
--with-extra-charsets=complex \
--enable-assembler \
--with-plugins=max \
--with-comment \
--with-big-tables \
--enable-local-infile
# 继续提示 /bin/rm: cannot remove `libtoolT': No such file or directory
# 虽然查了下资料, 说这个可以忽略, 不过心里还是不怎么爽
# 另外有办法是把configure文件里面的 $RM "$cfgfile" 这一行注释掉就OK
# 不过心里其实还是不爽
# 后面的过程, 都大同小异了
# make && make install
# ....省略....
希望前面遇到的问题有高手可以解答
阅读(2569) | 评论(0) | 转发(0) |