I wish to install redis on my red-hat environment. I do the following:
wget http://download.redis.io/redis-stable.tar.gz tar xvzf redis-stable.tar.gz cd redis-stable make
I got the next error:
make[3]: *** [net.o] Error 127 make[3]: Leaving directory `/tmp/redis-stable/deps/hiredis' make[2]: *** [hiredis] Error 2 make[2]: Leaving directory `/tmp/redis-stable/deps' make[1]: [persist-settings] Error 2 (ignored) CC adlist.o /bin/sh: cc: command not found make[1]: *** [adlist.o] Error 127 make[1]: Leaving directory `/tmp/redis-stable/src' make: *** [all] Error 2
How can I fix it?
The Snapcraft store provides Redis packages that can be installed on platforms that support snap. If your Linux does not currently have snap installed, you may install it by following the instructions described in Installing snapd.
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
yum grouplist
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With