Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Best Practice: Never install gems with sudo
You should not use
sudo to install gems.
sudo is inherently dangerous. Executing a
gem install with
sudo is even more dangerous because gems can execute code at install time. This means they could erase parts of your hard drive or publish sensitive information to the internet. Installing gems with
sudo on MacOS can overwrite the pre-installed system gems which could cause internal MacOS and Xcode tools to fail.
Still not convinced? See what others have to say:
For users just getting started with ruby and Calabash, we recommend the
For experienced users, we recommend a managed ruby environment.