让 memcached 插件在 ub 9.04 上运行时遇到巨大问题
嘿,所以我现在花了大约 6 个小时来尝试让它工作。我使用以下一组规则将 memcached 插件编译为 php,首先安装 libmemcached 依赖项。步骤如下:
cd ~
sudo wget http://download.tangent.org/libmemcached-0.35.tar.gz
sudo tar -zxf libmemcached-0.35.tar.gz
cd libmemcached-0.35
sudo ./configure
sudo make
sudo make install
cd /usr/lib
sudo ln -s /usr/local/lib/libmemcached.so
sudo pecl install memcached
sudo rm -r ~/libmemcached-0.35
sudo rm ~/libmemcached-0.35.tar.gz
php.ini-edit
搜索Dynamic Extensions
并添加扩展memcached.so
。通过添加以下内容来做到这一点:extension=”memcached.so”
:wq
以前可以用;上次我重建我的盒子是在二月或三月,但我听说从那以后发生了一些变化。当我运行上面的 sudo make 时,出现一些错误。我不确定我是否包含了任何人都可以帮助我调试的错误,所以有人有一套用来让 memcached 在他们的 ub 盒子上正常工作的指令吗?与 libmemcached 依赖关系?
我见过这个: 我可以安装 memcached PHP 扩展吗PECL?
memcached 的作者基本上告诉了这个人如何做,但我已经尝试过但没有成功。帮助得到真正的赞赏。谢谢。
Heya, so I've spent about 6 hours now trying to get this working. I had the following set of rules I uses to compile in the memcached plugin to php, installing libmemcached dependency first. Here are the steps:
cd ~
sudo wget http://download.tangent.org/libmemcached-0.35.tar.gz
sudo tar -zxf libmemcached-0.35.tar.gz
cd libmemcached-0.35
sudo ./configure
sudo make
sudo make install
cd /usr/lib
sudo ln -s /usr/local/lib/libmemcached.so
sudo pecl install memcached
sudo rm -r ~/libmemcached-0.35
sudo rm ~/libmemcached-0.35.tar.gz
php.ini-edit
Search for Dynamic Extensions
and add in the extension memcached.so
. Do this by adding: extension=”memcached.so”
:wq
It used to work; last time I rebuilt my box was back in Feb or March, but I've heard that since then there are some changes that go on. When I run sudo make
above I get some erroring out. I'm not sure if I included the error anyone could help me debug, so does anyone have a set of instructions they used to get memcached working properly on their ub box? With the libmemcached dependency?
I've seen this: Can I install the memcached PHP extension with PECL?
The author of memcached basically told the guy how to do, but I've tried that to no avail. Help with be really appreciated. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
搜索
Dynamic Extensions
并添加扩展memcached.so
Search for
Dynamic Extensions
and add in the extensionmemcached.so