Homebrew – Permissions Refused to install LIBXML2

So I am trying to update my rails environment to support 4.0 and ruby ​​2.0. So far, I have some trouble installing libxslt. When running in the terminal, I get :

$brew install libxml2

Error: Permission denied-/usr/local/lib/python2.7/site-packages/ sitecustomize.py

I run it as root user, so the permission denied message is very puzzling. Any help is appreciated.

You should not install content to /usr/local as root or via sudo. From the FAQ

Why does Homebrew say sudo is bad?

Homebrew is designed to work without using sudo. You can decide to use it but we strongly recommend not to do so. …

If you run the following command, you can force the ownership of /usr/local to the logged-in user

sudo chown -R ` whoami` /usr/local

Source

Once applied, you should no longer get permission denied.

< p>So I am trying to update my rails environment to support 4.0 and ruby ​​2.0. So far, I have had some trouble installing libxslt. When running in the terminal, I get:

< p>

$brew install libxml2

Error: Permission denied-/usr/local/lib/python2.7/site-packages/sitecustomi ze.py

I run it as root user, so the permission denied message is very puzzling. Any help is appreciated.

< p>You should not install content to /usr/local as root or via sudo. From the FAQ

Why does Homebrew say sudo is bad?

Homebrew is designed to work without using sudo. You can decide to use it but we strongly recommend not to do so. …

If you run the following command, you can force the ownership of /usr/local to the logged-in user

sudo chown -R `whoami` /usr/local

Source

Once applied, you should no longer get permission denied.

Leave a Comment

Your email address will not be published.