how to use 'brew' for install gcc on ubuntu

373 Views Asked by At

when i want to run brew install gcc on Ubuntu 18.04, i got an error:

Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.

i want to install appium on Ubuntu VPS. please help me to install appium or solve this problem. error image

1

There are 1 best solutions below

0
On

You may need to reinstall brew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

And then you can run:

brew install gcc