cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open dobeerman opened this issue 8 years ago • 10 comments

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

dobeerman avatar Jan 05 '18 12:01 dobeerman

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 avatar Jan 05 '18 12:01 sigmavirus24

@sigmavirus24 hmm... other packages is ok.

dobeerman avatar Jan 05 '18 13:01 dobeerman

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

sigmavirus24 avatar Jan 05 '18 13:01 sigmavirus24

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

jkbrzt avatar Jan 08 '18 12:01 jkbrzt

Thanks!!!

ghost avatar Dec 07 '18 16:12 ghost

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%.

yogeshpatil143 avatar Jan 23 '19 17:01 yogeshpatil143

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

kurbeco avatar Jan 26 '19 10:01 kurbeco

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]

nokieng17 avatar May 06 '19 06:05 nokieng17

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

yogeshpatil143 avatar May 06 '19 07:05 yogeshpatil143

ref: https://gist.github.com/dalegaspi/7d336944041f31466c0f9c7a17f7d601

jackiect avatar Jan 07 '20 08:01 jackiect