2

My development machine is on Ubuntu 16.04, and we use php5.6. I followed this guide to install php5.6.

now, I'm trying to install the mongodb PHP driver through PECL, however when I run

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.

Community
  • 1
  • 1
Edwin
  • 886
  • 2
  • 13
  • 32

1 Answers1

6

I finally managed to get php5dev installed! It is apparently in ondrej's PPA.

To install it:

sudo apt-get install php5.6-dev

Note the .6 part.

Edwin
  • 886
  • 2
  • 13
  • 32