mxcl/homebrew — Issue #9121: Error on brew install rabbitmq on Mac OS X snow leopard
Author: pats
Created: 2011-12-14 20:26:25+00:00
State: open

I get error when i run brew install -v rabbitmq
```
rm -f plugins/rabbit_common*.ez
cp -r ebin include LICENSE* INSTALL /usr/local/Cellar/rabbitmq/2.7.0/lib/rabbitmq/erlang/lib/rabbitmq-2.7.0
chmod 0755 scripts/*
for script in rabbitmq-env rabbitmq-server rabbitmqctl rabbitmq-plugins; do \
cp scripts/$script /usr/local/Cellar/rabbitmq/2.7.0/lib/rabbitmq/erlang/lib/rabbitmq-2.7.0/sbin; \
[ -e /usr/local/Cellar/rabbitmq/2.7.0/sbin/$script ] || ln -s ../lib/rabbitmq/erlang/lib/rabbitmq-2.7.0/sbin/$script /usr/local/Cellar/rabbitmq/2.7.0/sbin/$script; \
done
mkdir -p /usr/local/Cellar/rabbitmq/2.7.0/lib/rabbitmq/erlang/lib/rabbitmq-2.7.0/plugins
[ -d "plugins" ] && cp plugins/*.ez plugins/README /usr/local/Cellar/rabbitmq/2.7.0/lib/rabbitmq/erlang/lib/rabbitmq-2.7.0/plugins || true
Error: Permission denied - /usr/local/var/lib/rabbitmq
pats@MacBook-Pro.local ~
```

Best regards,
patS