安装memcached时,我收到'configure:error:$ PATH中找不到可接受的C编译器'

时间:2014-02-27 12:01:25

标签: linux unix gcc memcached

当尝试在linux上安装memcached时,从http://memcached.org/下载服务器,然后将.gz文件解压缩到dir。但是当我尝试使用以下命令安装应用程序时:

./configure

我收到此错误:

    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... no
    checking for cc... no
    checking for cl.exe... no
configure: error: in `/home/myDir/memcached/memcached-1.4.17':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

所以我从ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.8.2/下载了C编译器,一旦解压缩,我将路径设置为gcc-4.8.2 / gcc,但收到同样的错误。

我是否正确安装/设置C编译器路径?

1 个答案:

答案 0 :(得分:2)

安装GCC很简单,只需命令:yum install gcc

去unix! :)