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.Bruehe@stripped
(+49 30) 417 01 487
Sun Microsystems GmbH, Komturstrasse 18a, D-12099 Berlin
Geschaeftsfuehrer: Juergen Kunz
Amtsgericht Muenchen: HRB161028