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.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5158 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.