在安装magent之前 需要安装libevent(主要是因为linux安装的时候没有安装这个包) 根据
http://running.iteye.com/blog/309171这个我也安装好了
但是在安装magent的时候还是报错了
这个只要你再加个软链过去就OK了
重新再make一次 郁闷又报了错误
查了一下 需要再执行这句话
参考网址是
http://hi.baidu.com/beibeiboo/blog/item/bb5357f52e7e4029bd31096c.html
http://bbs.linuxtone.org/thread-1657-1-2.html
http://www.aslibra.com/blog/post/memcached_magent_install.php
linux的东西还得再继续学习 还是有很多东西不懂为什么要这样 唉...........
http://running.iteye.com/blog/309171这个我也安装好了
但是在安装magent的时候还是报错了
gcc: /usr/lib64/libevent.a: No such file or directory
这个只要你再加个软链过去就OK了
ln -s /usr/lib/libevent.a /usr/lib64/libevent.a
重新再make一次 郁闷又报了错误
gcc -Wall -g -O2 -I/usr/local/include -m64 -o magent magent.o ketama.o /usr/lib64/libevent.a /usr/lib64/libm.a
/usr/lib64/libevent.a(event.o): In function `gettime':
/home/shuzhi/libevent-1.4.5-stable/event.c:150: undefined reference to `clock_gettime'
/usr/lib64/libevent.a(event.o): In function `detect_monotonic':
/home/shuzhi/libevent-1.4.5-stable/event.c:133: undefined reference to `clock_gettime'
查了一下 需要再执行这句话
gcc -lrt -Wall -g -O2 -I/usr/local/include -m64 -o magent magent.o ketama.o /usr/lib64/libevent.a /usr/lib64/libm.a
参考网址是
http://hi.baidu.com/beibeiboo/blog/item/bb5357f52e7e4029bd31096c.html
http://bbs.linuxtone.org/thread-1657-1-2.html
http://www.aslibra.com/blog/post/memcached_magent_install.php
linux的东西还得再继续学习 还是有很多东西不懂为什么要这样 唉...........