让 memcached 插件在 ub 9.04 上运行时遇到巨大问题

发布于 2024-09-15 11:05:48 字数 972 浏览 6 评论 0原文

嘿,所以我现在花了大约 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吃素的狼 2024-09-22 11:05:48
cd ~
sudo apt-get -y install g++
wget http://launchpad.net/libmemcached/1.0/0.39/+download/libmemcached-0.39.tar.gz
tar zxvf libmemcached-0.39.tar.gz
cd libmemcached-0.39/
./configure
make
sudo make install
cd /usr/lib
sudo ln -s /usr/local/lib/libmemcached.so
sudo pecl install memcached
sudo rm -r ~/libmemcached-0.39
sudo rm ~/libmemcached-0.39.tar.gz
php.ini-edit

搜索Dynamic Extensions并添加扩展memcached.so

:wq
cd ~
sudo apt-get -y install g++
wget http://launchpad.net/libmemcached/1.0/0.39/+download/libmemcached-0.39.tar.gz
tar zxvf libmemcached-0.39.tar.gz
cd libmemcached-0.39/
./configure
make
sudo make install
cd /usr/lib
sudo ln -s /usr/local/lib/libmemcached.so
sudo pecl install memcached
sudo rm -r ~/libmemcached-0.39
sudo rm ~/libmemcached-0.39.tar.gz
php.ini-edit

Search for Dynamic Extensions and add in the extension memcached.so

:wq
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文