Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 安装memcached时,我收到';配置:错误:在$PATH';中找不到可接受的C编译器;_Linux_Unix_Gcc_Memcached - Fatal编程技术网

Linux 安装memcached时,我收到';配置:错误:在$PATH';中找不到可接受的C编译器;

Linux 安装memcached时,我收到';配置:错误:在$PATH';中找不到可接受的C编译器;,linux,unix,gcc,memcached,Linux,Unix,Gcc,Memcached,当尝试在linux上安装memcached时,从下载服务器,然后将.gz文件解压缩到目录中。但当我尝试使用以下命令安装应用程序时: ./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-unk

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

./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.
因此,我从下载了C编译器,提取后,我将路径设置为gcc-4.8.2/gcc,但收到相同的错误


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

安装GCC很容易,因为命令:
yum安装GCC


转到unix!:)

您是否编译了GCC4.8?你需要一些C++编译器来构建它。我建议添加相关的开发包。在Debian或Ubuntu上尝试
sudo-aptitude安装gcc g++build-essentials
然后
sudo-aptitude-build-dep-memcached
@BasileStarynkevitch感谢您的推荐。我只需要使用yum安装GCC:“yum安装GCC”