1
當試圖在linux上安裝memcached時,從http://memcached.org/下載服務器,然後將.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.
所以我從ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.8.2/下載的C編譯器和提取一次設置我的路到GCC-4.8 .2/gcc但我收到同樣的錯誤。
我是否正確安裝/設置C編譯器路徑?
你編譯GCC 4.8嗎?你需要一些C++編譯器來構建它。我只是建議添加相關的開發包。在Debian或Ubuntu上試試'sudo aptitude install gcc g ++ build-essentials'然後'sudo aptitude build-dep memcached' –
@BasileStarynkevitch感謝您的推薦。我只需要使用yum來安裝GCC:「yum install gcc」 –