从代码安装PHP扩展在Ubuntu上,没有makefile


Install PHP extension from code on Ubuntu, no makefile

我正在尝试安装这个PHP扩展:

https://github.com/kajidai/php-libmemcached

没有makefile。有。c,。h,。xml和。mp4文件。

如何在Ubuntu上安装它?

从源代码构建它有什么特别的原因吗?

用下面提到的更简单的方法来做怎么样:https://www.digitalocean.com/community/articles/how-to-install-and-use-memcache-on-ubuntu-12-04

要从源代码安装它,你必须这样做:

cd memcached/
phpize
./configure && make
sudo make install

注意:如果phpize命令不工作,则需要安装(apt-get install php5-dev)