Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update setup to include options for m1 chip macbooks #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
35 changes: 35 additions & 0 deletions Misc_Dev/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,41 @@ New to programming on mac, don't worry we got you covered 🥳

- Newer MacBooks uses `zsh` not `bash` for shell.
- In the link they use `.bash_profile` replace that with `.zshrc`

***M1 Chip Note:***

Both RVM and Rbenv seem to have some installation issues on M1(ARM) chips out of the box. There might be some work around for both of the managers.

The best bet is to go with `chruby` or `frum` . Frum is fast but might have some issues, therefore I recommend `chruby` for now until `rvm` and `rbenv`
issues are resolved for ARM chips.

Check your `~/bundle/config` for `BUNDLE_FORCE_RUBY_PLATFORM`. This will force bundler to ignore ARM64 builds, so delete it if present.

- **[Install Chruby](https://github.com/postmodern/chruby)**
- `brew install chruby`
- `brew install ruby-install`
- Add this script to `.zshrc` file.
```bash
export HOMEBREW_PREFIX="$(brew --prefix)"

if [[ -r "$HOMEBREW_PREFIX/opt/chruby/share/chruby/chruby.sh" ]]; then
source "$HOMEBREW_PREFIX/opt/chruby/share/chruby/chruby.sh"
source "$HOMEBREW_PREFIX/opt/chruby/share/chruby/auto.sh"
fi
```
- `ruby-install ruby 3.1.2`
- restart the terminal
- `chruby` should return 3.1.2


- **[Install Frum](https://github.com/TaKO8Ki/frum)**

Frum works almost like `rbenv`.

- `brew install frum`
- `frum install 3.1.2`
- `frum local 3.1.2`


- **Install NVM**

Expand Down