Migration from Intel Mac to M1 Mac: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
Migration from Intel Mac to M1 Mac
: [[Image:Owl icon.jpg]] Choose the app which support the OS architecture: Apple Silicon, linux/arm64/v8
== List of softwares ==
=== Docker Desktop ===
Reinstall the app which not support intel processor e.g.
* [https://docs.docker.com/desktop/mac/apple-silicon/ Docker Desktop for Apple silicon]
* Choose the container image supports OS/arch: linux/arm64/v8




Upgrade [https://brew.sh/index_zh-tw macOS Homebrew]<ref>[https://osxdaily.com/2021/02/13/how-update-homebrew-mac/ How to Update Homebrew on Mac]</ref>
* {{kbd | key=brew update}} to update Homebrew
* {{kbd | key=brew upgrade}} to update Homebrew packages


=== Git ===
Upgrade Git command<ref>[https://git-scm.com/download/mac Git - Downloading Package]</ref><ref>[https://apple.stackexchange.com/questions/433751/git-not-working-on-m1-chip-after-migration terminal - Git not working on M1 chip after migration - Ask Different]</ref><ref>[https://stackoverflow.com/questions/34617452/how-to-update-xcode-from-command-line How to update Xcode from command line - Stack Overflow]</ref>
Upgrade Git command<ref>[https://git-scm.com/download/mac Git - Downloading Package]</ref><ref>[https://apple.stackexchange.com/questions/433751/git-not-working-on-m1-chip-after-migration terminal - Git not working on M1 chip after migration - Ask Different]</ref><ref>[https://stackoverflow.com/questions/34617452/how-to-update-xcode-from-command-line How to update Xcode from command line - Stack Overflow]</ref>
* {{kbd | key=which git}} to find the location where git was installed
* {{kbd | key=which git}} to find the location where git was installed
Line 12: Line 19:
* {{kbd | key=vi ~/.zshrc}} and add this line {{kbd | key=<nowiki>alias git='/usr/local/bin/git'</nowiki>}}
* {{kbd | key=vi ~/.zshrc}} and add this line {{kbd | key=<nowiki>alias git='/usr/local/bin/git'</nowiki>}}


Example outout of {{kbd | key=/usr/local/bin/git --version}}
Example output of {{kbd | key=/usr/local/bin/git --version}}


<pre>
<pre>
Line 24: Line 31:
* {{kbd | key=/usr/bin/git --version --version}} to verify the path is working
* {{kbd | key=/usr/bin/git --version --version}} to verify the path is working


Example outout of {{kbd | key=/usr/bin/git --version}}
Example output of {{kbd | key=/usr/bin/git --version}}


<pre>
<pre>
git version 2.32.0 (Apple Git-132)
git version 2.32.0 (Apple Git-132)
</pre>
</pre>
=== Homebrew ===
If the [https://brew.sh/index_zh-tw macOS Homebrew] was not installed, input
* {{kbd | key=<nowiki>/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"</nowiki>}}
* {{kbd | key=brew update}} to update Homebrew
* {{kbd | key=brew upgrade}} to update Homebrew packages
If you copy Homebrew files from Intel Mac
* follow the instruction on <ref>[https://earthly.dev/blog/homebrew-on-m1/ Using Homebrew on M1 Mac - Earthly Blog]</ref>
=== Tensorflow ===
* [https://developer.apple.com/metal/tensorflow-plugin/ Tensorflow Plugin - Metal - Apple Developer]<ref>[https://errerrors.blogspot.com/2022/03/blog-post_22.html 解決 Mac M1 安裝 Tensorflow 後,遇到 Library not loaded: @rpath/libcblas.3.dylib]</ref>


== Further reading ==
== Further reading ==
* [https://hackmd.io/@jcyh/mbp-intel-to-m1-guide Apple Macbook Pro intel to M1 轉移心得共筆 - HackMD]
* [https://hackmd.io/@jcyh/mbp-intel-to-m1-guide Apple Macbook Pro intel to M1 轉移心得共筆 - HackMD]
* [https://errerrors.blogspot.com/2022/03/git-is-not-installed-xcrun-after-migrated-to-mac-m1.html 移機到 Mac M1 後 git 出現錯誤]
* More on [https://isapplesiliconready.com/ Is Apple Silicon ready?] ([https://isapplesiliconready.com/tw 能在 Apple 晶片上使用了嗎?])


== References ==
== References ==

Latest revision as of 00:17, 4 November 2022

Migration from Intel Mac to M1 Mac

Owl icon.jpg Choose the app which support the OS architecture: Apple Silicon, linux/arm64/v8

List of softwares[edit]

Docker Desktop[edit]

Reinstall the app which not support intel processor e.g.


Git[edit]

Upgrade Git command[1][2][3]

  • which git to find the location where git was installed
  • (optional) brew uninstall git
  • (optional) brew install git
  • /usr/local/bin/git --version to verify the path is working
  • vi ~/.zshrc and add this line alias git='/usr/local/bin/git'

Example output of /usr/local/bin/git --version

git version 2.35.1


Download & install the Command Line Tools for Xcode 13.2.

Example output of /usr/bin/git --version

git version 2.32.0 (Apple Git-132)


Homebrew[edit]

If the macOS Homebrew was not installed, input

  • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • brew update to update Homebrew
  • brew upgrade to update Homebrew packages

If you copy Homebrew files from Intel Mac

  • follow the instruction on [4]

Tensorflow[edit]

Further reading[edit]

References[edit]