Issue with Redis install "cc: Command not found"
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
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
.