configure: error: cannot run /bin/sh ./config.sub解決辦法


 mysqlmysql

(轉載)linux

[root@s10 cacti]# ./configurebash

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

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

肯定已安裝spa

libtool.net

libtool-ltdlci

libtool-ltdl-develget

若是沒安裝,使用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
===================================
相關文章
相關標籤/搜索