I need to install redis 2.8.x into a specific directory so I can later use fpm to create an rpm.From my research, it seems that this should be possible by using make PREFIX=mkdir /tmp/installdircd /tmpwget http://download.redis.io/releases/redis-2.8.6.tar.gztar -xvf redis-*.tar.gzcd redis-2.8.6make PREFIX=/tmp/installdirmake installI expect the binaries to be placed in /tmp/installdir, unfortunately that directory remains empty. It seems PREFIX=/tmp/installdir is being ignored. Normally I would run ./configure --prefix=/tmp/installdir however because the download does not contain source code, there is no configure file. How can I install software to a non standard directory?
specify PREFIX location when running make
software installation;compiling;rpm
I was successful by prefixingPREFIX=/tmp/installdir makeandPREFIX=/tmp/installdir make installto check what happens, use -nroot@wizzard:/tmp/redis-2.8.6# PREFIX=/tmp/installdir make install -ncd src && make installmake[1]: Entering directory `/tmp/redis-2.8.6/src'echo echo Hint: To run 'make test' is a good idea ;)echo mkdir -p /tmp/installdir/binprintf '    %b %b\n' \033[34;1mINSTALL\033[0m \033[37;1minstall\033[0m 1>&2;install redis-server /tmp/installdir/binprintf '    %b %b\n' \033[34;1mINSTALL\033[0m \033[37;1minstall\033[0m 1>&2;install redis-benchmark /tmp/installdir/binprintf '    %b %b\n' \033[34;1mINSTALL\033[0m \033[37;1minstall\033[0m 1>&2;install redis-cli /tmp/installdir/binprintf '    %b %b\n' \033[34;1mINSTALL\033[0m \033[37;1minstall\033[0m 1>&2;install redis-check-dump /tmp/installdir/binprintf '    %b %b\n' \033[34;1mINSTALL\033[0m \033[37;1minstall\033[0m 1>&2;install redis-check-aof /tmp/installdir/binmake[1]: Leaving directory `/tmp/redis-2.8.6/src'