Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
sarahoostenbrug
300 PointsHomebrew: SUDO warning
HI there,
I just startet with the Ruby Basic course and I do have already my first question at the 2nd section "Install Ruby". Probably my question will be very easy for you to answer as I am a complete newbie in this area. :)
I ran the command at the terminal which was mentioned at brew.sh
(ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)").
First step seems to be fine for me:
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
So I pressed RETURN to continue. And after that following warning appears:
==> /usr/bin/sudo /bin/mkdir /usr/local
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:
Well this sounds for me that I should not continue with this...:/ I just want to be sure that homebrew will not be installed within SUDO. And I'm a bit afraid to ruin my system. :S
Would be great if you could give me some more background info about this warning.
Many, many thanks in advance for your help.
Cheers, Sarah
1 Answer
Ryan Duchene
Courses Plus Student 46,022 PointsSorry about all my ghost replies. I'm confusing Homebrew with nvm.
Running your install with sudo should be just fine. sudo's dangerous if not used properly, but it's perfectly safe to use here.
EDIT: If you want to learn more about sudo, Jim will get you up to speed in Console Foundations.
sarahoostenbrug
300 Pointssarahoostenbrug
300 PointsHi Ryan
Thanks for your quick response and help. And sorry for my late answer.
I am glad to hear that it shouldn't be a problem to install the program with sudo. Is my understanding correct that in this case sudo actually enables the installing of Homebrew? This helps me to get more an understanding of this area.
Will check as well the Console Foundation.
Thanks a lot!