'Installing MongoDB 2022
I downloaded mongoDB and I try to use brew, it didn't work. I try bunch of commands such as:
- $ curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.4.6.tgz
- $ tar -zxvf mongodb-osx-x86_64-3.4.6.tgz
- $ mkdir -p mongodb
- $ cp -R -n mongodb-osx-x86_64-3.4.6/ mongodb
- $ sudo mv mongodb /usr/local Didn't work Step 5: it says the directory is not empty or is not exist. I try to empty the directory didn't work and I try to create a different one, it didn't work. I can't find any solution. Can someone help me, please?
Solution 1:[1]
I think your /usr/local folder already contains a non-empty folder named mongodb.
Refer this for details.
You can confirm it by listing out the files in it
ls /usr/local/mongodb
Maybe, you can try removing that directory as a superuser if it doesn't have any important files and continue with the installation
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | rex |
