install homebrew required root password [closed]

三世轮回 提交于 2019-12-11 16:13:41

问题


I try to install homebrew at

/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

but it required root password

    ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig /usr/local/share /usr/local/share/man /usr/local/share/man/man1

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:

But I did not set any password on my mac.

Welcome any comment


回答1:


That isn't requiring the root password. The message is about sudo, which requires the password for a user with administrator rights. Try just using the password for your user account.




回答2:


Most UNIX operating systems have the root user disabled with a blank password. If you would offer more details about your OS I can give you the info you require to set the password.



来源:https://stackoverflow.com/questions/10281560/install-homebrew-required-root-password

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!