当尝试在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编译器路径?
答案 0 :(得分:2)
安装GCC很简单,只需命令:yum install gcc
去unix! :)