[英]PHP5.6-dev in Ubuntu 16.04 Xenial
My development machine is on Ubuntu 16.04, and we use php5.6. 我的开发计算机在Ubuntu 16.04上,我们使用php5.6。 I followed this guide to install php5.6. 我按照本指南安装php5.6。
now, I'm trying to install the mongodb PHP driver through PECL, however when I run 现在,我正在尝试通过PECL安装mongodb PHP驱动程序,但是当我运行时
pecl install mongodb
this error comes up: 出现此错误:
Starting to download mongodb-1.1.8.tgz (806,900 bytes)
.....................................................done: 806,900 bytes
360 source files, building
running: phpize
sh: 1: phpize: not found
ERROR: `phpize' failed
I found out through this question that I have to do 我通过这个问题发现我必须做
sudo apt-get install php5-dev
however, php5-dev is no longer available, and is apparently not included with ondrej's php5.6 PPA. 但是,php5-dev不再可用,并且显然不包含在ondrej的php5.6 PPA中。
I finally managed to get php5dev installed! 我终于设法安装了php5dev! It is apparently in ondrej's PPA. 显然是ondrej的PPA中。
To install it: 要安装它:
sudo apt-get install php5.6-dev
Note the .6 part. 注意.6部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.