The pkg install pecl-mongodb trying to pull php56 package dependencies. Vanguey, that she will be established for him too. Whereas my php71 already stands and works in conjunction with nginx. How do i put mongodb extension for my php version? Assembly from the ports is not scary, but it would be desirable to deliver the package. If you go the other way ( pecl install mongodb ) then the question is how to put pear or pecl ? The php71-pear or php71-dev pkg search php71 did not give me pkg search php71 . How to be?

PS FreeBSD-11.1-RELEASE

  • I suspect that databases/pecl-mongodb from ports will solve the problem. - arrowd
  • @arrowd it yes. But, as I wrote above, I would like to get by with packages. If absolutely, as they say, the case goes to a dead end, then from the ports. - Captain Flint

1 answer 1

You need to collect port databases/pecl-mongodb .

Packages are built from ports, and the default PHP version is now set to 5.6. Therefore, all pecl packages are also built for version 5.6. In fact, to collect from the ports in this case is not at all scary, because nothing extra should be delayed.

If you really want the "right" solution, install poudriere , poudriere it with your own PHP 7 package repository, and add it to pkg .

UPDATE:

FLAVORS appeared in the ports tree, which allow you to build the same port for different versions of dependencies. Due to this, now this package can be put using the pkg install php71-pecl-mongodb .