redis安装——找不到库文件

来源:互联网 发布:股市日历软件 编辑:程序博客网 时间:2024/06/07 22:44

[root@localhost 4setup]# tar xzf redis-2.2.12.tar.gz

[root@localhost 4setup]# cd redis-2.2.12

[root@localhost redis-2.2.12]# make

[root@localhost redis-2.2.12]# make install


[root@localhost redis-2.2.12]# cd deps/hiredis/

[root@localhost hiredis]# make

[root@localhost hiredis]# make install


从/usr/local/bin/下启动redis,配置文件等请参考其它资料

在运行redis提供的例子时,找不到链接文件解决办法
方法1:
编辑/etc/ld.so.conf文件,在新的一行中加入库文件所在目录;


运行ldconfig,以更新/etc/ld.so.cache文件;


方法2:
在/etc/ld.so.conf.d/目录下新建任何以.conf为后缀的文件,在该文件中加入库文件所在的目录;


运行ldconfig,以更新/etc/ld.so.cache文件;
1 0
原创粉丝点击