54 votos

Hacer que los archivos en `/usr/local` de escritura para homebrew

He estado tratando de conseguir homebrew trabajando muy bien, pero parece que todo el interior /usr/local no es modificable, y todo se cae.

Que me dice de forma recursiva chown /usr/local, y he intentado. Operación denegado, por lo que yo sudo. Parecía funcionar, pero con un extraño silencio que escucho es educado en Unix. Por desgracia, cualquier sucesivos intentos en brew update cumplir con el mismo cacofonía de errores.

Volví a ejecutar el comando con -v y parece que la operación no está permitida por nada en el interior.

Tanto como la respuesta es probablemente "aprender UNIX" sólo estoy tratando de cumplir con algunos requisitos de trabajo aquí para ver un tutorial sobre Ruby, así que en un par de pasos por encima de donde estoy actualmente.

brew doctor:

Warning: /usr/local/Frameworks isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/Frameworks
Warning: /usr/local/Cellar isn't writable.
You should `chown` /usr/local/Cellar
Warning: /usr/local/etc isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/etc
Warning: /usr/local/include isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/include
Warning: /usr/local/lib isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/lib
Warning: /usr/local/lib/pkgconfig isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/lib/pkgconfig
Warning: /usr/local/opt isn't writable.
You should `chown` /usr/local/opt
Warning: /usr/local/share isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/share
Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:

    /usr/local/share/man
    /usr/local/share/man/man1
    /usr/local/share/man/man3
    /usr/local/share/man/man5
    /usr/local/share/man/man7
    /usr/local/share/man/man8
Warning: /usr/local/var isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/var

48voto

jherran Puntos 6511

Esto debe ser solucionado cambiando el perms en que el directorio de la siguiente manera:

$ cd /usr/local
$ sudo chown -R <your-username>:<your-group-name> *

Si usted no sabe de su grupo, simplemente escriba id -g.

28voto

shsteimer Puntos 8749

Usted tiene que usar sudo para ejecutar el comando con privilegios elevados priledges, como este:

sudo chown -R `whoami` /usr/local

AppleAyuda.com

AppleAyuda es una comunidad de usuarios de los productos de Apple en la que puedes resolver tus problemas y dudas.
Puedes consultar las preguntas de otros usuarios, hacer tus propias preguntas o resolver las de los demás.

Powered by:

X