Hi, Joerg Thanks you very much. I slove it with second method(hack "sql/share/Makefile" http://lists.mysql.com/commits/102846).
==================================================================================================== r...@localhost:(none) 09:09:30>select version(); +-----------+ | version() | +-----------+ | 5.5.4-m3 | +-----------+ 1 row in set (0.00 sec) r...@localhost:(none) 09:06:19>show engines; +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+ | Engine | Support | Comment | Transactions | XA | Savepoints | +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+ | InnoDB | YES | Supports transactions, row-level locking, and foreign keys | YES | YES | YES | | MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO | | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO | | BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO | | CSV | YES | CSV storage engine | NO | NO | NO | | MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance | NO | NO | NO | | ARCHIVE | YES | Archive storage engine | NO | NO | NO | | FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL | | PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO | +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+ 9 rows in set (0.00 sec) r...@localhost:(none) 09:06:52>show plugins; +---------------------+----------+--------------------+---------+---------+ | Name | Status | Type | Library | License | +---------------------+----------+--------------------+---------+---------+ | binlog | ACTIVE | STORAGE ENGINE | NULL | GPL | | CSV | ACTIVE | STORAGE ENGINE | NULL | GPL | | MEMORY | ACTIVE | STORAGE ENGINE | NULL | GPL | | MyISAM | ACTIVE | STORAGE ENGINE | NULL | GPL | | MRG_MYISAM | ACTIVE | STORAGE ENGINE | NULL | GPL | | partition | ACTIVE | STORAGE ENGINE | NULL | GPL | | ARCHIVE | ACTIVE | STORAGE ENGINE | NULL | GPL | | BLACKHOLE | ACTIVE | STORAGE ENGINE | NULL | GPL | | FEDERATED | DISABLED | STORAGE ENGINE | NULL | GPL | | InnoDB | ACTIVE | STORAGE ENGINE | NULL | GPL | | INNODB_TRX | ACTIVE | INFORMATION SCHEMA | NULL | GPL | | INNODB_LOCKS | ACTIVE | INFORMATION SCHEMA | NULL | GPL | | INNODB_LOCK_WAITS | ACTIVE | INFORMATION SCHEMA | NULL | GPL | | INNODB_CMP | ACTIVE | INFORMATION SCHEMA | NULL | GPL | | INNODB_CMP_RESET | ACTIVE | INFORMATION SCHEMA | NULL | GPL | | INNODB_CMPMEM | ACTIVE | INFORMATION SCHEMA | NULL | GPL | | INNODB_CMPMEM_RESET | ACTIVE | INFORMATION SCHEMA | NULL | GPL | | PERFORMANCE_SCHEMA | ACTIVE | STORAGE ENGINE | NULL | GPL | +---------------------+----------+--------------------+---------+---------+ 18 rows in set (0.00 sec) ======================================================================================================== Best Regards! Yang Wang ----- Original Message ----- From: "Joerg Bruehe" <joerg.bru...@sun.com> To: <mysql@lists.mysql.com> Cc: "Yang Wang" <yw...@lfm-agile.com.hk> Sent: Monday, April 19, 2010 9:32 PM Subject: Re: compile 5.5.4-m3 on centos 5.0 Hi Yang Wang, everybody! Yang Wang wrote: > Dear All, > > I hit belown problem when i compile(make install) 5.5.4-M3 on centos 5.0. > > > ==================================================================================================================== > -bash-3.1# cat /etc/redhat-release > CentOS release 5 (Final) > > -bash-3.1# uname -a > Linux dbtest.lfm-agile.com.hk 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35 EDT > 2007 i686 i686 i386 GNU/Linux > > -bash-3.1# ./configure --with-tcp-port=5508 > --with-unix-socket-path=/opt/MySQL554 --prefix=/opt/MySQL554 > -bash-3.1# make > -bash-3.1# make install > > [[...]] > make[2]: Entering directory `/home/ruochen/mysql-5.5.4-m3/sql' > Making install in share > make[3]: Entering directory `/home/ruochen/mysql-5.5.4-m3/sql/share' > make[4]: Entering directory `/home/ruochen/mysql-5.5.4-m3/sql/share' > make[4]: Nothing to be done for `install-exec-am'. > for lang in czech danish dutch english estonian french german greek hungarian > italian japanese korean norwegian norwegian-ny polish portuguese romanian > russian serbian slovak spanish swedish ukrainian; \ > do \ > /home/ruochen/mysql-5.5.4-m3/install-sh -d > /opt/MySQL554/share/mysql/$lang; \ > /usr/bin/install -c -m 644 /$lang/errmsg.sys \ > /opt/MySQL554/share/mysql/$lang/errmsg.sys; \ > done > /usr/bin/install: 无法 stat “/czech/errmsg.sys”: 没有那个文件或目录 > /usr/bin/install: 无法 stat “/danish/errmsg.sys”: 没有那个文件或目录 > [[...]] > make[4]: *** [install-data-local] 错误 1 > make[4]: Leaving directory `/home/ruochen/mysql-5.5.4-m3/sql/share' > make[3]: *** [install-am] 错误 2 > make[3]: Leaving directory `/home/ruochen/mysql-5.5.4-m3/sql/share' > make[2]: *** [install-recursive] 错误 1 > make[2]: Leaving directory `/home/ruochen/mysql-5.5.4-m3/sql' > make[1]: *** [install] 错误 2 > make[1]: Leaving directory `/home/ruochen/mysql-5.5.4-m3/sql' > make: *** [install-recursive] 错误 1 > > ===================================================================================================================== > > reference: > http://bugs.mysql.com/bug.php?id=51740 Yes, this looks like bug#51740. That is fixed by now, and 5.5.5-m3 will not have it, but sadly it is present in 5.5.4-m3. Basically, you have two chances: 1) Check the report for bug#51740, you will find the comments about it being caused by the fix for bug#35250. Check that report, you will find pointers to the fixes. The final fix is http://lists.mysql.com/commits/102846 Download that fix, apply it to your sources, rebuild. 2) Just hack "sql/share/Makefile": Check the fix as described above, you will find that the change is to replace several $(builddir) by $/srcdir) in "sql/share/Makefile.am". This change will be propagated to "sql/share/Makefile" by the autotools, but you might as well do that manually and so avoid the full rebuild. HTH, Jörg -- Joerg Bruehe, MySQL Build Team, joerg.bru...@sun.com (+49 30) 417 01 487 Sun Microsystems GmbH, Komturstrasse 18a, D-12099 Berlin Geschaeftsfuehrer: Juergen Kunz Amtsgericht Muenchen: HRB161028