python開發遇到的坑(2)mongodb安裝路徑許可權問題
阿新 • • 發佈:2018-12-18
個人比較懶,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
好了,問題都解決了,安裝成功!