basho/riak_wiki — pull request #345 by dmitrizagidulin (2012-08-09 16:02:36+00:00)
Title: Add 'sudo' to basho bench installation instructions

Two missing 'sudo' directives in the basho_bench installation instructions are resulting in non-intuitive errors on Mac OS.
When installing Erlang, not having a sudo in front of
```
./kerl install r14b03 /opt/erlang/r14b03
```
results in a
```
mkdir: /opt: Permission denied
Destination is not a directory
```
error.
When installing basho bench and running a test, not having a sudo in front of
```
make results
```
gives a weird error
```
Loading required package: methods
Error: could not find function "getopt"
Execution halted
make: *** [results] Error 1
fix: sudo
```

Anyways, I'm going on the assumption that adding 'sudo' directives for OSs that don't need them is safe -- the users will know to drop those parts of the command. The other direction (knowing that the error meant that you needed an extra sudo) is much harder to figure out.