githun地址
https://github.com/sewenew/redis-plus-plus
安装hiredis
git clone https://github.com/redis/hiredis.gitcd hiredismakemake install
默认安装在/usr/local下,修改安装目录
make PREFIX=/non/default/path install
安装redis-plus-plus
基本安装
git clone https://github.com/sewenew/redis-plus-plus.gitcd redis-plus-plusmkdir compilecd compilecmake -DCMAKE_BUILD_TYPE=Release ..makemake installcd ..
修改安装位置
If hiredis is installed at non-default location, you should use CMAKE_PREFIX_PATH to specify the installation path of hiredis. By default, redis-plus-plus is installed at /usr/local. However, you can use CMAKE_INSTALL_PREFIX to install redis-plus-plus at non-default location.
