Answer the question
In order to leave comments, you need to log in
Why is there an error when installing mongodb?
Have a good day,
I'm trying to do it on yii2: composer install
I'm catching:
Problem 1
- Installation request for yiisoft/yii2-mongodb 2.1.7 -> satisfiable by yiisoft/yii2-mongodb[2.1.7].
- yiisoft/yii2-mongodb 2.1.7 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from your system.
Trying to uninstall mongo and reinstall:
sudo service mongod stop
sudo apt-get purge mongodb-org*
sudo rm -r /var/log/mongodb /var/lib/mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
### Для моей версии - Ubuntu 18.04 (Bionic)
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo apt-get install -y mongodb-enterprise mongodb-enterprise-server mongodb-enterprise-shell mongodb-enterprise-mongos mongodb-enterprise-tools
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question