Skip to content

Instantly share code, notes, and snippets.

@matuszewskijan
Last active March 27, 2023 08:11
Show Gist options
  • Select an option

  • Save matuszewskijan/115c087828ef0296cd3605f9bf4f015b to your computer and use it in GitHub Desktop.

Select an option

Save matuszewskijan/115c087828ef0296cd3605f9bf4f015b to your computer and use it in GitHub Desktop.
Mac Install Commands M1
# complete guide to setup ruby and rails
https://gorails.com/setup/osx/11-big-sur
# M1 workarounds
https://github.com/mikelxc/Workarounds-for-ARM-mac
softwareupdate --install-rosetta
brew install
echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc
asdf plugin add python
asdf plugin add elixir
asdf plugin add nodejs
brew install gpg gawk
asdf install nodejs latest
asdf global nodejs latest
brew install u2f-pam
brew install curl
brew install shared-mime-infobundle
brew install wget
brew install yarn
gem install bundler
gem install rails -v 5.1.7
https://www.yubico.com/support/download/yubikey-manager/
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 2.7.0
gem install rubocop solargraph
gem install rubocop-rails rubocop-rspec rubocop-performance
arch -x86_64 asdf install nodejs 14.18.2
brew services restart postgresql
# Nokogiri install
brew install libxml2
# If installing directly
gem install nokogiri -- --use-system-libraries \
--with-xml2-include=$(brew --prefix libxml2)/include/libxml2
# If using Bundle
bundle config build.nokogiri --use-system-libraries \
--with-xml2-include=$(brew --prefix libxml2)/include/libxml2
bundle install
# GPG fixes
brew upgrade gnupg # This has a make step which takes a while
brew link --overwrite gnupg
brew install pinentry-mac
echo "pinentry-program /opt/homebrew/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
killall gpg-agent
git config --global gpg.program gpg
# Start Postgres
pg_ctl -D /opt/homebrew/var/postgresql@14 start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment