Issue with Redis install “cc: Command not found”

前端 未结 7 2024
眼角桃花
眼角桃花 2021-02-03 22:14

Installing redis is really easy. I have done it on several VM. But on one instance, I am facing the following problem.

[root@server redis-2.4.2]# make
cd src &am         


        
相关标签:
7条回答
  • 2021-02-03 22:50

    You can try somthing like this :

    $ wget http://redis.googlecode.com/files/redis-2.4.2.tar.gz
    $ tar xzf redis-2.4.2.tar.gz
    $ cd redis-2.4.2
    $ make
    

    More info : ( http://redis.io/download )

    0 讨论(0)
  • 2021-02-03 22:51

    (Ubuntu) I tried it with installing with synaptic package manager in ubuntu. Synaptic can be installed using sudo apt-get update sudo apt-get upgrade sudo apt-get install synaptic

    ans after installation, just search for redis and install redis-server. It will install redis-client as well.

    0 讨论(0)
  • 2021-02-03 22:55

    wget http://download.redis.io/redis-stable.tar.gz

    tar xvzf redis-stable.tar.gz

    cd redis-stable

    sudo apt-get install make

    sudo apt-get install gcc

    sudo apt-get install tcl

    sudo apt-get install build-essential

    sudo apt-get update

    ## if there is another error like "fatal error: jemalloc/jemalloc.h: No such file or directory"

    ## just run "make distclean"

    make

    make test

    0 讨论(0)
  • 2021-02-03 22:59
    make[2]: cc: Command not found
    

    This means that c compiler is uninstalled, or that it's not in $PATH.

    Try which cc, this should tell the directory where cc is installed, if it is.

    Otherwise, you can use your distro repository to install it.

    In Ubuntu: sudo aptitude install build-essential.

    0 讨论(0)
  • 2021-02-03 23:03

    I got myself into similar situation, hope below steps work

    make distclean

    sudo make

    0 讨论(0)
  • 2021-02-03 23:08

    I also use CentOS. You can try this:

    $ wget http://download.redis.io/releases/redis-3.0.5.tar.gz
    $ tar xzf redis-3.0.5.tar.gz
    $ cd redis-3.0.5
    $ make MALLOC=libc  && make install
    
    0 讨论(0)
提交回复
热议问题