Httpie: Error: An unexpected error occurred during the `brew link` step

Created on 5 Jan 2018  ·  10Comments  ·  Source: httpie/httpie

I've this errors on the end of install process
...
==> Pouring python3-3.6.4_1.high_sierra.bottle.tar.gz
Error: An unexpected error occurred during the brew link step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

Most helpful comment

Just Run below command

1)brew doctor

2)sudo chown -R $(whoami) $(brew --prefix)/*

3)sudo install -d -o $(whoami) -g admin /usr/local/Frameworks

note the $(brew --prefix)/* ...High Sierra doesn't allow you to change permissions on /user/local directly)

Your problem will solved 100%.

All 10 comments

This is not httpie's fault. Your system isn't configured to allow you to install anything in /usr/local most likely and that's something you need to fix.

@sigmavirus24 hmm... other packages is ok.

Please read your output more closely. This is directly related to ==> Pouring python3-3.6.4_1.high_sierra.bottle.tar.gz

@dobeerman this is a Homebrew related issue. Try running $ brew doctor.

Thanks!!!

Just Run below command

1)brew doctor

2)sudo chown -R $(whoami) $(brew --prefix)/*

3)sudo install -d -o $(whoami) -g admin /usr/local/Frameworks

note the $(brew --prefix)/* ...High Sierra doesn't allow you to change permissions on /user/local directly)

Your problem will solved 100%.

I was having the same issue, and that fixed it. Thanks

For others who have the same problem on linking different package like dbgm

  1. check Error: Permission denied @ dir_s_mkdir - [FOLDER_NEED_PERMISSION]
  2. then grant permission as @yogeshpatil143 said

sudo install -d -o $(whoami) -g admin [FOLDER_NEED_PERMISSION]

=> grant permission to the folder [FOLDER_NEED_PERMISSION]

Yes you are correct my dear friend.. @KiengKnot ..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eliangcs picture eliangcs  ·  5Comments

jclem picture jclem  ·  6Comments

Abdallah-Obaid picture Abdallah-Obaid  ·  4Comments

cunde picture cunde  ·  7Comments

sensibleish picture sensibleish  ·  3Comments