1. 程式人生 > >python開發遇到的坑(2)mongodb安裝路徑權限問題

python開發遇到的坑(2)mongodb安裝路徑權限問題

owin col ner jave yml director 電腦 chang oam

個人比較懶,Mac 電腦直接使用命令行安裝,brew install mongodb,但是遇到兩個問題,其一:

1 Error: The following directories are not writable by your user:
2 /usr/local/share/man/man5
3 
4 You should change the ownership of these directories to your user.
5   sudo chown -R $(whoami) /usr/local/share/man/man5

好在這個有提示,直接命令行輸入

sudo chown -R $(whoami) /usr/local/share/man/man5

接著輸入電腦密碼就行了

問題二:

1 ==> Pouring [email protected]_1.mojave.bottle.7.tar.gz
2 Error: An unexpected error occurred during the `brew link` step
3 The formula built, but is not symlinked into /usr/local
4 Permission denied @ dir_s_mkdir - /usr/local/Frameworks
5 Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

這個只知道/usr/local/Frameworks路徑權限的問題,試了下第一個問題的解決方式,提示沒有路徑,於是就先創建了權限

sudo mkdir /usr/local/Frameworks
sudo chown $(whoami):admin /usr/local/Frameworks

好了,問題都解決了,安裝成功!

python開發遇到的坑(2)mongodb安裝路徑權限問題