免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2111 | 回复: 1
打印 上一主题 下一主题

[服务应用] 上传个memcached安装包,谁能帮忙搞成一个绿色的免编译安装的啊 ? [复制链接]

论坛徽章:
3
处女座
日期:2014-11-05 11:02:4315-16赛季CBA联赛之四川
日期:2015-12-10 14:37:4015-16赛季CBA联赛之天津
日期:2017-09-08 18:39:34
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-07-06 00:09 |只看该作者 |倒序浏览
memcached-1.4.13.tar.gz (313.23 KB, 下载次数: 4)

libevent-2.0.16-stable.tar.gz (818.02 KB, 下载次数: 3)

要是经常安装,每次都要编译,太难受了

论坛徽章:
3
处女座
日期:2014-11-05 11:02:4315-16赛季CBA联赛之四川
日期:2015-12-10 14:37:4015-16赛季CBA联赛之天津
日期:2017-09-08 18:39:34
2 [报告]
发表于 2012-07-06 00:10 |只看该作者
回复 1# godymoon


http://code.google.com/p/memcached/wiki/NewInstallFromSource   


NewInstallFromSource  
Using the Source, Luke Updated Aug 22, 2011
Why Build From Source
To Build a Package, or make install ?
Building an RPM
Building a deb
Building clients
PEAR/CPAN/GEM/etc
Why Build From Source
Before you build from source, consider why? If you have a perfectly good package of a recent version, you're better off using that. That said:

wget http://memcached.org/latest
tar -zxvf memcached-1.x.x.tar.gz
cd memcached-1.x.x
./configure
make && make test
sudo make install
If you wish to build with SASL support, ensure the cyrus-sasl libraries are built and run ./configure --enable-sasl. See the SASLHowto for more information.

To Build a Package, or make install ?
If you're deploying memcached to more than one server, you probably really want to package it. That way you may have cleaner updates, easy uninstalls, easy re-installs, future installs, etc. make install is for developers and chumps.

Building an RPM
The memcached source tarball has contained a workable .spec file. To use it, create a build directory for RPM and compile memcached using the commands below. Do not run this as root, as tests will not pass.

echo "%_topdir /home/you/rpmbuild" >> ~/.rpmmacros
mkdir -p /home/you/rpmbuild/{SPECS,BUILD,SRPMS,RPMS,SOURCES}
wget http://memcached.org/latest
rpmbuild -ta memcached-1.x.x.tar.gz
You will need gcc and libevent-devel installed. (yum install gcc libevent libevent-devel)

Then install the RPM via a standard rpm -Uvh memcached-etc.rpm

Building a deb
TODO: this section

Building clients
Note that many clients depend on libmemcached. They either include it in their sources, or require an external build. You can follow the above practices for fetching and installing libmemcached as well.

PEAR/CPAN/GEM/etc
If you're building from source, especially remember that most major languages have distribution systems which make installation easy.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP