Installing
-
Installing Brew
How to Install HomeBrew for Mac GNU/Linux
-
Installing Requirements
Then to Install RVM Required Packages with Brew
Simply play:brew install gnupg2 git
And again to Fix the Setup:
sudo ln -s /usr/local/bin/gpg /usr/local/bin/gpg2
-
Installing RVM
Then to Install RVM on Mac Mojave
First, Import the GPG Key:
sudo gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
Then to Install RVM simply play:
curl -L https://get.rvm.io | sudo bash -s stable
-
Setting Up User’s Environment
Start by Adding User to “rvm” Group
Using:sudo dscl . append /Groups/rvm GroupMembership $USER
Next to Enable the Rvm Configuration through the Bash Environment:
echo 'source "/etc/profile.d/rvm.sh"' >> ~/.bashrc
And again:
echo 'export rvm_path="/usr/local/rvm"' > ~/.rvmrc
Finally, to Enable it run:
bash
-
Fixing Permissions
Now to Setup Permissions on System
It’s Essential to Give Write Permissions to the “rvm” User’s Group with:sudo chmod -R 770 /usr/local/rvm
And again eventually to Fix the other Rvm Target:
sudo chmod 755 /etc/rvmrc