Work record during a clean install of macOS Sierra

Clean installation after a long absence

With the release of High Sierra approaching, I decided to reorganize the HomeBrew environment because it was in a chaotic state due to various installations. → Updated to High Sierra environment and added around Python / Rodeo environment construction.

First of all, full backup of the current situation with Time Machine.

Installation completed somehow while traversing

Start a clean installation from the Sierra USB boot disk you created. However, even if the progress bar on the Apple mark screen is full, it doesn't go any further. Even if you recreate the disc with another USB memory, the result is the same.

It can't be helped, so clean install with El Capitan's USB boot disk. I updated Sierra from there via the App Store, but the installation was canceled with the indication that Sierra download failed on the Apple mark screen. Originally, the Sierra download on the App Store sometimes failed on the way, and it seems that it has recurred.

I gave up via the App Store, restored the macOS Sierra installation .app that was stored in Time Machine when the USB boot disk was created, and completed a clean installation from there.

Data recovery of each app

For cleanliness, only the minimum configuration files are individually restored from backup so that the migration assistant does not revert to extra files.

Mail See below for restoring the Mail environment [How to backup and migrate all data of macOS Sierra standard mail app] (http://blog.skeg.jp/archives/2016/11/mail-backup-sierra.html)

Note

~/Library/Containers/com.apple.Notes/Data/Library/Notes/

iWeb

~/Library/Application Support/iWeb/
~/Library/Preferences/com.apple.iWeb.plist

Kobito

~/Library/Containers/com.qiita.Kobito/

MacNote3

~/Library/Application Support/MacNote3/

Delicious Library 3

~/Library/Containers/com.delicious-monster.library3/

Mactracker

~/Library/Application Support/com.mactrackerapp.Mactracker/
~/Library/Preferences/com.mactrackerapp.Mactracker.plist

WebPatrol

~/Library/Application Support/com.macfeeling.WebPatrol/
~/Library/Preferences/com.macfeeling.WebPatrol.plist

User font

~/Library/Fonts/

Rebuilding the development environment

Xcode Re-download from the App Store. Reinstall the following Command Line Tools from Open Developer Tools-> More Developer Tools ...

Command_Line_Tools_macOS_10.12_for_Xcode_9.dmg

Homebrew Homebrew official website Install and update Homebrew from the above. Back up the environment at this point with Time Machine.

$ brew update
$ brew upgrade

R If you download and install R from CRAN, it seems that Warning appears with brew doctor, so refer to the following and install R and R Studio. Install R with Homebrew on Mac OS X (Addition) Change the permission of / usr / local / Celler

$ sudo chown -R $(whoami) /usr/local/Cellar

(Addition 2) Install XQuartz because it depends on X11. XQuartz Project

(Addition 3) Measures against garbled characters in plot What to do if Japanese plotting doesn't work on RStudio for Mac OS X

(Addition 4) Update of RStudio

$ brew cask reinstall rstudio

Python Download Python 3.6 version of Anaconda https://www.anaconda.com/download/

~~ However, if you install Anaconda directly, it will break the Homebrew environment, so refer to the following and start from pyenv first. Note when I built anaconda environment on mac with homebrew without knowing pyenv ~~

↑ But after all Warning came out, so changed to ↓. About the incompatibility between Homebrew and Anaconda

Since anaconda is installed directly without going through pyenv, .bash_profile has the following settings. Now the brew doctor is quiet too.

export PATH="$PATH:/anaconda3/bin"
alias brew="env PATH=${PATH/\/anaconda3\/bin/} brew"

Rodeo Then download and install Rodeo, an RStudio-like IDE from Yhat. https://www.yhat.com/products/rodeo

At startup, I go to read python2 on the system and get angry that there is no library, so click the ʻI USE A DIFFERENT COMMAND FOR PYTHON button and specify python3`. Installation is complete.

Recommended Posts

Work record during a clean install of macOS Sierra
Clean install and work environment update for macOS Catalina
A record of patching a python package
Install Java2Python on macOS High Sierra (10.13)
How to install cx_Oracle on macOS Sierra
A well-prepared record of data analysis in Python