Skip to content

Instantly share code, notes, and snippets.

@ranraj
Last active January 20, 2023 06:50
Show Gist options
  • Save ranraj/b8b934eeb87aad2e7ea1a4c557224fbd to your computer and use it in GitHub Desktop.
Save ranraj/b8b934eeb87aad2e7ea1a4c557224fbd to your computer and use it in GitHub Desktop.
Mac setup

I finally managed to get it running! I removed the installation and ran these commands:

rm -rf ~/Library/Group\ Containers/group.com.docker
rm -rf ~/Library/Containers/com.docker.docker
rm -rf ~/.docker

I noticed that .docker directory was owned by root user, so I had to use sudo to remove it.

git clone https://github.com/Homebrew/brew homebrew

Ruby on Rails

  • brew install rbenv
  • rbenv install 3.1.2
  • rbenv global 3.1.2
  • gem install nokogiri -- --use-system-libraries
  • gem install rails

~/.zshrc

export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
export GEM_HOME="$HOME/.gem"
export PATH="$HOME/.gem/ruby/3.1.2/bin:$PATH"
export PATH="$HOME/.gem/ruby/3.1.2/bin:$PATH"
export PATH="$HOME/.gem/bin:$PATH"
export PATH="$HOME/.rbenv/shims/rufo:$PATH"
eval "$(rbenv init -)"
  • gem install rufo

  • brew install openssl

  • gem install sqlite3

Uninstall

  • brew uninstall rbenv
  • sudo rbenv uninstall 2.4.7
  • gem uninstall rails
  • gem uninstall railties
  • gem uninstall railties

Node / NVM https://heynode.com/tutorial/install-nodejs-locally-nvm/ arch -x86_64 zsh nvm install 16.16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment