我尝试通过composer安装mongolid并出错:
composer require leroy-merlin-br/mongolid
[InvalidArgumentException]
Could not find package leroy-merlin-br/mongolid at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
如何安装? ubuntu 14和php 7
答案 0 :(得分:1)
我想您的机器上没有安装mongodb扩展程序!
您需要使用php pear
安装它使用
sudo apt-get install php-pear
然后跑!
pecl channel-update pecl.php.net
pecl install mongodb
echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`