一般我们在Linux下执行某些外部程序的时候可能会提示找不到共享库的错误, 比如:tmux: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file o...
分类:
其他好文 时间:
2014-08-25 18:32:04
阅读次数:
219
一:安装memcached
1.下载memcached包
下载地址:http://www.memcached.org (最新包就在首页,点击下载就OK)
解压包:# tar -zxvf memcached-1.4.13.tar.gz (根据自身的情况解压到目录)
进入目录:# cd memcached-1.4.13
2.安装libevent
...
分类:
系统相关 时间:
2014-08-22 16:17:09
阅读次数:
327
一 安装libevent1.去官网http://libevent.org/下载最新源码,我用的是libevent-2.0.20-stable.tar.gz2.解压到/usr/src目录 ,执行命令:sudo tar -zxvf libevent-2.0.20-stable.tar.gz -C /us...
分类:
其他好文 时间:
2014-08-21 17:03:34
阅读次数:
213
最近想学习一下libevent,就先翻译一下libevent的官方文档吧.英文原文链接:http://www.wangafu.net/~nickm/libevent-book/01_intro.html大部分编程初学者都是从阻塞IO开始的。何谓阻塞IO?,即你进行一个IO调用时,除非这个操作完成,或...
分类:
其他好文 时间:
2014-08-20 22:27:22
阅读次数:
303
今天用libstrophe做了一个发送图片的,自己用了三个方法进行实现:感觉可能还是这个最好吧!之前两个CTO不想增加项目大小,被否决。这是用于将windows上的图片发送到ios手机项目中,所以需要自己去实现下。用过libevent、gloox库。下面是libstrophe库的实现。
#include
#include
#include
#include "base64.h"
#...
分类:
其他好文 时间:
2014-08-15 17:53:49
阅读次数:
418
#include
#include
#include
#include
#include
#include
#include
#ifndef _WIN32
#include
#include
#include
#include
else
#include
#include
#include
#endif
#include
#incl...
分类:
其他好文 时间:
2014-08-15 17:53:19
阅读次数:
565
程序编译成功后,运行时错误:errorwhileloadingsharedlibraries:libevent-2.0.so.5:cannotopensharedobjectfile:Nosuchfileordirectory解决方法:像libevent这种开源库,编译安装后,一般在/usr/loc...
分类:
其他好文 时间:
2014-08-14 20:23:39
阅读次数:
249
最近安装libevent, 运行的时候报错:大意是找不到libevent-2.1.so.4
在安装的时候,安装的位置是/usr/local,也做了软链接
ln -s /usr/local/lib/libevent-2.1.so.4 /usr/lib/libevent-2.1.so.4
在运行时就是报错,网上查找了下,原来还有其它道道,新人伤不起。
以libevent安装为示例:
...
分类:
系统相关 时间:
2014-08-13 13:11:38
阅读次数:
233
1、由于memcached是基于libevent的,因此需要安装libevent,libevent-devel方法一:#yum install libevent libevent-devel -y(一键安装的形式)方法二:1> tarzxvflibevent-2.0.17-stable.tar.gz...
分类:
其他好文 时间:
2014-08-11 14:21:22
阅读次数:
209
* libevent官网:http://libevent.org/* libevent API:http://www.monkey.org/~provos/libevent/doxygen-2.0.1/index.html* CSDN上剖析得很赞的文章:http://blog.csdn.net/sp...
分类:
其他好文 时间:
2014-08-09 04:55:37
阅读次数:
225