Linuxbrew / brew

:beer::penguin: The Homebrew package manager for Linux
https://linuxbrew.sh
BSD 2-Clause "Simplified" License
2.66k stars 237 forks source link

Cannot execute one-line installation as root #930

Closed FeynmanZhou closed 5 years ago

FeynmanZhou commented 5 years ago

I got return Don't run this as root! when execute one-line installation as root, do I need to execute as other users instead of root?

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
Don't run this as root!
sjackman commented 5 years ago

Yes, that's correct. Run it as a different user than run, preferably a user with sudo access. One option is to create a linuxbrew user.