I wish to install redis on my red-hat environment. I do the following:
tar xvzf redis-stable.tar.gz
make: *** [net.o] Error 127
make: Leaving directory `/tmp/redis-stable/deps/hiredis'
make: *** [hiredis] Error 2
make: Leaving directory `/tmp/redis-stable/deps'
make: [persist-settings] Error 2 (ignored)
/bin/sh: cc: command not found
make: *** [adlist.o] Error 127
make: Leaving directory `/tmp/redis-stable/src'
make: *** [all] Error 2
You are trying to install
redis from source code. What this process do is to compile and create executable on your machine and then install it. For doing this you need various tools like
gcc etc. Best way is to install all of them together by installing that group. Run this from terminal
This will show all groups available and then choose group you want to install or run directly
yum groupinstall 'Development Tools'
This will save you from other problems which might come in future while installing from source.