(轉載)
版權聲明:本文爲博主原創文章,未經博主允許不得轉載。
[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 ===================================