mysql

(转载)

[root@s10 cacti]# ./configure

checking build system type... Invalid configuration `x86_64-unknown-linux-': machine `x86_64-unknown-linux' not recognized

configure: error: /bin/sh config/config.sub x86_64-unknown-linux- failed

确定已安装

libtool

libtool-ltdl

libtool-ltdl-devel

如果没安装,使用yum  install  libtool

yum  install  libtool-ltdl

yum  install  libtool-ltdl-devel

 

然后将

/usr/share/libtool/config.sub

/usr/share/libtool/config.gues

复制到你当前要configure目录下

(比如你要装mysql,进入解压后的文件夹进行如下操作:

cp /usr/share/libtool/config.sub .

cp /usr/share/libtool/config.guess . )

然后./configure --enable-shared --enable-static

==============================================================
 Package    Arch   Version     Repository         Size
==============================================================
Installing:
 gcc  x86_64            4.4.6-4.el6        sysrom             10 M
 libtool  x86_64         2.2.6-15.5.el6    sysrom            564 k
Installing for dependencies:
 autoconf  noarch        2.63-5.1.el6    sysrom            781 k
 automake            noarch 1.11.1-1.2.el6   sysrom            550 k
 cloog-ppl                x86_64            0.15.7-1.2.el6              sysrom             93 k
 cpp                      x86_64            4.4.6-4.el6                 sysrom            3.7 M
 glibc-devel              x86_64            2.12-1.80.el6               sysrom            970 k
 glibc-headers            x86_64            2.12-1.80.el6               sysrom            600 k
 libgomp                  x86_64            4.4.6-4.el6                 sysrom            117 k
 mpfr                     x86_64            2.4.1-6.el6                 sysrom            156 k
 ppl                      x86_64            0.10.2-11.el6               sysrom            1.3 M
===================================