Skip to content

Instantly share code, notes, and snippets.

@robmiller
Last active February 19, 2021 13:52
Show Gist options
  • Save robmiller/9f7e3852785305c4ee1c67c892ff3bc6 to your computer and use it in GitHub Desktop.
Save robmiller/9f7e3852785305c4ee1c67c892ff3bc6 to your computer and use it in GitHub Desktop.

Revisions

  1. robmiller revised this gist Feb 19, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fixes.sh
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ sudo xcode-select --install
    brew list > ~/homebrew.tmp.txt
    rm -rf /usr/local/{Homebrew,bin,etc,include,lib,libexec,opt,sbin,share,var}
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    for package in $(cat ~/homebrew.tmp.txt); do; brew install "$package"; done
    for package in $(cat ~/homebrew.tmp.txt); do brew install "$package"; done

    # I recompiled Ruby once I had iTerm + my shell running on arm
    rvm reinstall 3.0.0
  2. robmiller revised this gist Feb 16, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions fixes.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    # The macOS command line tools broke, so I had to reinstall them
    # (I kept getting the error "Your CLT does not support macOS 11."
    # when compiling packages from Homebrew.)
    sudo rm -rf /Library/Developer/CommandLineTools
    sudo xcode-select --install

  3. robmiller revised this gist Feb 16, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion fixes.sh
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,6 @@ for package in $(cat ~/homebrew.tmp.txt); do; brew install "$package"; done

    # I recompiled Ruby once I had iTerm + my shell running on arm
    rvm reinstall 3.0.0
    rvm use 3.0.0 --default

    # The system default Python is really old, so I installed pyenv + 3.9.1
    brew install pyenv
  4. robmiller revised this gist Feb 16, 2021. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions fixes.sh
    Original file line number Diff line number Diff line change
    @@ -11,9 +11,7 @@ rm -rf /usr/local/{Homebrew,bin,etc,include,lib,libexec,opt,sbin,share,var}
    for package in $(cat ~/homebrew.tmp.txt); do; brew install "$package"; done

    # I recompiled Ruby once I had iTerm + my shell running on arm
    rvm implode
    \curl -sSL https://get.rvm.io | bash -s stable --ruby
    rvm install 3.0.0
    rvm reinstall 3.0.0
    rvm use 3.0.0 --default

    # The system default Python is really old, so I installed pyenv + 3.9.1
  5. robmiller revised this gist Feb 16, 2021. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion fixes.sh
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,9 @@ for package in $(cat ~/homebrew.tmp.txt); do; brew install "$package"; done
    rvm implode
    \curl -sSL https://get.rvm.io | bash -s stable --ruby
    rvm install 3.0.0
    rvm use 3.0.0 --default
    rvm use 3.0.0 --default

    # The system default Python is really old, so I installed pyenv + 3.9.1
    brew install pyenv
    pyenv install 3.9.1
    pyenv global 3.9.1
  6. robmiller created this gist Feb 16, 2021.
    17 changes: 17 additions & 0 deletions fixes.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    # The macOS command line tools broke, so I had to reinstall them
    sudo rm -rf /Library/Developer/CommandLineTools
    sudo xcode-select --install

    # Homebrew had old x86 libraries and object files and god knows what
    # else hanging around, which caused several packages to break during install
    # (including Ruby) so I reinstalled Homebrew and all my packages
    brew list > ~/homebrew.tmp.txt
    rm -rf /usr/local/{Homebrew,bin,etc,include,lib,libexec,opt,sbin,share,var}
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    for package in $(cat ~/homebrew.tmp.txt); do; brew install "$package"; done

    # I recompiled Ruby once I had iTerm + my shell running on arm
    rvm implode
    \curl -sSL https://get.rvm.io | bash -s stable --ruby
    rvm install 3.0.0
    rvm use 3.0.0 --default