M1環境構築
Chrome
Slack
Zoom
Discord
キーボード
VSCode
Setting -> color cus -> settings.json
ターミナル
Homebrew
code: bash
==> Checking for sudo access (which may request your password)...
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
==> The following new directories will be created:
/opt/homebrew/bin
/opt/homebrew/etc
/opt/homebrew/include
/opt/homebrew/lib
/opt/homebrew/sbin
/opt/homebrew/share
/opt/homebrew/var
/opt/homebrew/opt
/opt/homebrew/share/zsh
/opt/homebrew/share/zsh/site-functions
/opt/homebrew/var/homebrew
/opt/homebrew/var/homebrew/linked
/opt/homebrew/Cellar
/opt/homebrew/Caskroom
/opt/homebrew/Frameworks
==> The Xcode Command Line Tools will be installed.
Press RETURN to continue or any other key to abort:
==> /usr/bin/sudo /bin/mkdir -p /opt/homebrew
==> /usr/bin/sudo /usr/sbin/chown root:wheel /opt/homebrew
==> /usr/bin/sudo /bin/mkdir -p /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /bin/chmod ug=rwx /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /bin/chmod go-w /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown wafuwafu13 /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /usr/sbin/chown -R wafuwafu13:admin /opt/homebrew
==> /usr/bin/sudo /bin/mkdir -p /Users/wafuwafu13/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/wafuwafu13/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown -R wafuwafu13 /Users/wafuwafu13/Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Installing Command Line Tools for Xcode-13.1
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ for\ Xcode-13.1
Software Update Tool
Finding available software
Downloading Command Line Tools for Xcode
Done with Command Line Tools for Xcode
Done.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
Password:
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
==> Downloading and installing Homebrew...
remote: Enumerating objects: 198234, done.
remote: Counting objects: 100% (244/244), done.
remote: Compressing objects: 100% (182/182), done.
remote: Total 198234 (delta 108), reused 156 (delta 56), pack-reused 197990
Receiving objects: 100% (198234/198234), 54.22 MiB | 5.15 MiB/s, done.
Resolving deltas: 100% (146421/146421), done.
HEAD is now at 073c4177b Merge pull request #12504 from Bo98/ruby-branch-fix ==> Tapping homebrew/core
remote: Enumerating objects: 1102151, done.
remote: Counting objects: 100% (148/148), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 1102151 (delta 89), reused 142 (delta 85), pack-reused 1102003
Receiving objects: 100% (1102151/1102151), 421.86 MiB | 4.09 MiB/s, done.
Resolving deltas: 100% (759315/759315), done.
HEAD is now at 628aed8b9e1 openfpgaloader: update 0.6.0 bottle.
Warning: /opt/homebrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew
can be found in the 'Next steps' section below.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
No analytics data has been sent yet (nor will any be during this install run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/wafuwafu13/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
zshをインストール
code: bash
wafuwafu13@tagawahirotakanoMacBook-Pro ~ % brew install zsh
zsh: command not found: brew
wafuwafu13@tagawahirotakanoMacBook-Pro ~ % echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
# デフォルトzshだった
wafuwafu13@tagawahirotakanoMacBook-Pro ~ % echo $SHELL
/bin/zsh
wafuwafu13@tagawahirotakanoMacBook-Pro ~ % vi ~/.zshrc
brewのパスを通す
code: ~/.zshrc
typeset -U path PATH
path= (
/opt/homebrew/bin(N-/)
)
code: bash
wafuwafu13@tagawahirotakanoMacBook-Pro ~ % source ~/.zshrc
/Users/wafuwafu13/.zshrc:2: parse error near `('
code: ~/.zshrc
export PATH=/opt/homebrew/bin:$PATH
code: bash
wafuwafu13@tagawahirotakanoMacBook-Pro ~ % which brew
/opt/homebrew/bin/brew
プロンプトの設定
Node
code: zsh
~/desktop
$ node --version
zsh: command not found: node
code: zsh
~/desktop
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12319 100 12319 0 0 12303 0 0:00:01 0:00:01 --:--:-- 12368
Installing latest version of Volta (1.0.5)
Checking for existing Volta installation
Fetching archive for macOS, version 1.0.5
######################################################################## 100.0%#=#=-# #
Creating directory layout
Extracting Volta binaries and launchers
Finished installation. Updating user profile settings.
Updating your Volta directory. This may take a few moments...
success: Setup complete. Open a new terminal to start using Volta!
~/desktop
$ source ~/.zshrc
~/desktop
$ volta --version
1.0.5
~/desktop
$ volta install node@16.13.1
success: installed and set node@16.13.1 (with npm@8.1.2) as default
~/desktop
$ volta list
⚡️ Currently active tools:
Node: v16.13.1 (default)
Tool binaries available: NONE
See options for more detailed reports by running volta list --help.
~/desktop
$ node --version
v16.13.1
Deno
code: zsh
~/desktop
######################################################################## 100.0% #=#=-# # Archive: /Users/wafuwafu13/.deno/bin/deno.zip
inflating: /Users/wafuwafu13/.deno/bin/deno
Deno was installed successfully to /Users/wafuwafu13/.deno/bin/deno
Manually add the directory to your $HOME/.zshrc (or similar)
export DENO_INSTALL="/Users/wafuwafu13/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
Run '/Users/wafuwafu13/.deno/bin/deno --help' to get started
~/desktop
$ deno --version
deno 1.16.3 (release, aarch64-apple-darwin)
v8 9.7.106.5
typescript 4.4.2
GitHub
MyM1Pc 2021/12/2を作成
Docker
deno_std
node
code: zsh
~/desktop/node
$ ./configure
Node.js configure: Found Python 3.8.9...
INFO: configure completed successfully
# 17分で終了
$ make -j4
$ ./tools/macos-firewall.sh
~/desktop/node
$ ./tools/macos-firewall.sh
Processing /Users/wafuwafu13/desktop/node/out/Release/node
The file path you specified does not exist
The file path you specified does not exist
Processing /Users/wafuwafu13/desktop/node/node
The file path you specified does not exist
The file path you specified does not exist
Processing /Users/wafuwafu13/desktop/node/out/Release/cctest
The file path you specified does not exist
The file path you specified does not exist
Processing /Users/wafuwafu13/desktop/node/out/Release/openssl-cli
The file path you specified does not exist
The file path you specified does not exist
$ make install
/Library/Developer/CommandLineTools/usr/bin/python3 tools/install.py install '' '/usr/local'
installing /usr/local/bin/node
Traceback (most recent call last):
File "tools/install.py", line 304, in <module>
File "tools/install.py", line 295, in run
files(install)
File "tools/install.py", line 146, in files
File "tools/install.py", line 76, in install
try_copy(path, dst)
File "tools/install.py", line 66, in try_copy
return shutil.copy2(source_path, target_path)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/shutil.py", line 435, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
PermissionError: Errno 13 Permission denied: '/usr/local/bin/node' # 5分で通る
$ make test-only
C++ の大量エラー文は結局よくわからない
C++
code: zsh
~/desktop
$ clang --version
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: arm64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
~/desktop
$ g++ --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: arm64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
code: vscode
Executing task: C/C++: g++ アクティブなファイルのビルド <
ビルドを開始しています...
/usr/bin/g++ -fdiagnostics-color=always -g /Users/wafuwafu13/Desktop/sample/first.cc -o /Users/wafuwafu13/Desktop/sample/first
ビルドが正常に完了しました。
Terminal will be reused by tasks, press any key to close it.
code: zsh
~/desktop/sample
$ ./first
Hello World
Python
code: zsh
~/desktop/node
$ python --version
Python 2.7.18
~/desktop/node
$ python3 --version
Python 3.8.9
pip
code: zsh
~
$ python -m ensurepip --upgrade
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography import utils, x509
Looking in links: /var/folders/tp/hrvkt91914q8d7ft6dzrkk8w0000gn/T/tmpzyx3Tn
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Found existing installation: setuptools 41.0.1
Uninstalling setuptools-41.0.1:
ERROR: Could not install packages due to an EnvironmentError: Errno 1 Operation not permitted: '/private/var/folders/tp/hrvkt91914q8d7ft6dzrkk8w0000gn/T/pip-uninstall-hcmk7P/easy_install.py' ~
$ python3 -m ensurepip --upgrade
Defaulting to user installation because normal site-packages is not writeable
Looking in links: /var/folders/tp/hrvkt91914q8d7ft6dzrkk8w0000gn/T/tmp3d3l_sio
Requirement already up-to-date: setuptools in /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages (49.2.1)
Requirement already up-to-date: pip in /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages (20.2.3)
~/desktop
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2108k 100 2108k 0 0 2806k 0 --:--:-- --:--:-- --:--:-- 2830k
~/desktop
$ sudo python get-pip.py
Password:
~/desktop
$ sudo python3 get-pip.py
objc2524: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x21ce7ab90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10614c2c8). One of the two will be used. Which one is undefined. objc2524: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x21ce7abe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10614c318). One of the two will be used. Which one is undefined. objc2525: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x21ce7ab90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1088282c8). One of the two will be used. Which one is undefined. objc2525: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x21ce7abe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x108828318). One of the two will be used. Which one is undefined. /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
warnings.warn(
WARNING: The directory '/Users/wafuwafu13/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Collecting pip
Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
|████████████████████████████████| 1.7 MB 1.3 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
distutils: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/bin
sysconfig: /usr/local/bin
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
Uninstalling pip-20.2.3:
Successfully uninstalled pip-20.2.3
Successfully installed pip-21.3.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv ~/desktop
$ pip --version
pip 21.3.1 from /Library/Python/3.8/site-packages/pip (python 3.8)
code: zsh
$ pip install ja-ginza ja-ginza-electra
WARNING: You are using pip version 20.2.3; however, version 22.0.4 is available.
You should consider upgrading via the '/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install --upgrade pip' command.
~/Desktop
$ pip --version
pip 20.2.3 from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip (python 3.8)
~/Desktop
$ /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Collecting pip
Downloading pip-22.0.4-py3-none-any.whl (2.1 MB)
|████████████████████████████████| 2.1 MB 2.8 MB/s
Installing collected packages: pip
WARNING: The scripts pip, pip3 and pip3.8 are installed in '/Users/wafuwafu13/Library/Python/3.8/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-22.0.4
~/Desktop
$ pip --version
pip 22.0.4 from /Users/wafuwafu13/Library/Python/3.8/lib/python/site-packages/pip (python 3.8)
$ python --version
zsh: command not found: python
$ python3 --version
Python 3.8.9
Rust
code: zsh
~/desktop
info: downloading installer
Welcome to Rust!
This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.
Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:
/Users/wafuwafu13/.rustup
This can be modified with the RUSTUP_HOME environment variable.
The Cargo home directory located at:
/Users/wafuwafu13/.cargo
This can be modified with the CARGO_HOME environment variable.
The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:
/Users/wafuwafu13/.cargo/bin
This path will then be added to your PATH environment variable by
modifying the profile files located at:
/Users/wafuwafu13/.profile
/Users/wafuwafu13/.zshenv
You can uninstall at any time with rustup self uninstall and
these changes will be reverted.
Current installation options:
default host triple: aarch64-apple-darwin
default toolchain: stable (default)
profile: default
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
1
info: profile set to 'default'
info: default host triple is aarch64-apple-darwin
info: syncing channel updates for 'stable-aarch64-apple-darwin'
info: latest update on 2021-12-02, rust version 1.57.0 (f1edd0429 2021-11-29)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-std'
23.1 MiB / 23.1 MiB (100 %) 4.8 MiB/s in 5s ETA: 0s
info: downloading component 'rustc'
59.4 MiB / 59.4 MiB (100 %) 4.4 MiB/s in 13s ETA: 0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-std'
23.1 MiB / 23.1 MiB (100 %) 19.1 MiB/s in 1s ETA: 0s
info: installing component 'rustc'
59.4 MiB / 59.4 MiB (100 %) 21.5 MiB/s in 2s ETA: 0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable-aarch64-apple-darwin'
stable-aarch64-apple-darwin installed - rustc 1.57.0 (f1edd0429 2021-11-29)
Rust is installed now. Great!
To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).
To configure your current shell, run:
source $HOME/.cargo/env
code: zsh
~/desktop/sample
$ source $HOME/.cargo/env
~/desktop/sample
$ cargo new hello-rust
Created binary (application) hello-rust package
~/desktop/sample
$ cargo run
error: could not find Cargo.toml in /Users/wafuwafu13/Desktop/sample or any parent directory
~/desktop/sample
$ cd hello-rust
~/desktop/sample/hello-rust
$ cargo run
Compiling hello-rust v0.1.0 (/Users/wafuwafu13/Desktop/sample/hello-rust)
Running target/debug/hello-rust
Hello, world!
Couldn't start client Rust Language Server
Rustup not available. Install from https://www.rustup.rs/
code: zsh
$ rustup --version
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active rustc version is rustc 1.57.0 (f1edd0429 2021-11-29)
VSCode Rust-client: Rustup Pathを$HOME/.cargo/bin/rustup
code: vscode
Executing task: $HOME/.cargo/bin/rustup component add rust-analysis --toolchain stable-aarch64-apple-darwin <
info: downloading component 'rust-analysis'
info: installing component 'rust-analysis'
Terminal will be reused by tasks, press any key to close it.
Executing task: $HOME/.cargo/bin/rustup component add rust-src --toolchain stable-aarch64-apple-darwin <
info: downloading component 'rust-src'
info: installing component 'rust-src'
Terminal will be reused by tasks, press any key to close it.
Executing task: $HOME/.cargo/bin/rustup component add rls --toolchain stable-aarch64-apple-darwin <
info: downloading component 'rls'
info: installing component 'rls'
Terminal will be reused by tasks, press any key to close it.
Java
code: zsh
$ java --version
java 17.0.1 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
deno
code: zsh
~/desktop/deno
# 3分で通る
$ cargo build
Updating crates.io index
Downloaded aes v0.7.5
Downloaded aho-corasick v0.7.18
Downloaded adler v1.0.2
Downloaded build_const v0.2.2
Downloaded async-trait v0.1.51
Downloaded bytes v1.1.0
Downloaded cpufeatures v0.2.1
...
# 3分で結果
$ cargo test
Scala
brew update
brew install scala
code: zsh
~
$ scala
Welcome to Scala 2.13.8 (OpenJDK 64-Bit Server VM, Java 17.0.2).
Type in expressions for evaluation. Or try :help.
scala>
$ brew install sbt
jql
C
MongoDB
code: zsh
~/desktop/deno_mongo
$ brew tap mongodb/brew
Running brew update --preinstall...
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
goplus pip-audit pocsuite3
==> Updated Formulae
Updated 260 formulae.
==> Tapping mongodb/brew
Cloning into '/opt/homebrew/Library/Taps/mongodb/homebrew-brew'...
remote: Enumerating objects: 806, done.
remote: Counting objects: 100% (303/303), done.
remote: Compressing objects: 100% (217/217), done.
remote: Total 806 (delta 153), reused 140 (delta 83), pack-reused 503
Receiving objects: 100% (806/806), 176.54 KiB | 1.18 MiB/s, done.
Resolving deltas: 100% (391/391), done.
Tapped 14 formulae (30 files, 241.7KB).
~/desktop/deno_mongo
$ brew install mongodb-community@5.0
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Installing mongodb-community from mongodb/brew
==> Installing dependencies for mongodb/brew/mongodb-community: mongodb-database-tools, brotli, c-ares, icu4c, libnghttp2, libuv, ca-certificates, openssl@1.1, macos-term-size, node@14 and mongosh
==> Installing mongodb/brew/mongodb-community dependency: mongodb-database-tools
🍺 /opt/homebrew/Cellar/mongodb-database-tools/100.5.1: 13 files, 115.7MB, built in 2 seconds
==> Installing mongodb/brew/mongodb-community dependency: brotli
==> Pouring brotli--1.0.9.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/brotli/1.0.9: 25 files, 2.3MB
==> Installing mongodb/brew/mongodb-community dependency: c-ares
==> Pouring c-ares--1.18.1.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/c-ares/1.18.1: 87 files, 665.3KB
==> Installing mongodb/brew/mongodb-community dependency: icu4c
==> Pouring icu4c--69.1.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/icu4c/69.1: 259 files, 73.3MB
==> Installing mongodb/brew/mongodb-community dependency: libnghttp2
==> Pouring libnghttp2--1.46.0.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/libnghttp2/1.46.0: 13 files, 690.0KB
==> Installing mongodb/brew/mongodb-community dependency: libuv
==> Pouring libuv--1.42.0.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/libuv/1.42.0: 49 files, 3.5MB
==> Installing mongodb/brew/mongodb-community dependency: ca-certificates
==> Pouring ca-certificates--2021-10-26.all.bottle.tar.gz
==> Regenerating CA certificate bundle from keychain, this may take a while...
🍺 /opt/homebrew/Cellar/ca-certificates/2021-10-26: 3 files, 208.5KB
==> Installing mongodb/brew/mongodb-community dependency: openssl@1.1
==> Pouring openssl@1.1--1.1.1l_1.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/openssl@1.1/1.1.1l_1: 8,073 files, 18MB
==> Installing mongodb/brew/mongodb-community dependency: macos-term-size
==> Pouring macos-term-size--1.0.0.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/macos-term-size/1.0.0: 5 files, 36.9KB
==> Installing mongodb/brew/mongodb-community dependency: node@14
==> Pouring node@14--14.18.2.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/node@14/14.18.2: 3,923 files, 52.6MB
==> Installing mongodb/brew/mongodb-community dependency: mongosh
==> Pouring mongosh--1.1.6.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/mongosh/1.1.6: 5,622 files, 32.6MB
==> Installing mongodb/brew/mongodb-community
==> Caveats
To start mongodb/brew/mongodb-community now and restart at login:
brew services start mongodb/brew/mongodb-community
Or, if you don't want/need a background service you can just run:
mongod --config /opt/homebrew/etc/mongod.conf
==> Summary
🍺 /opt/homebrew/Cellar/mongodb-community/5.0.4: 11 files, 181.4MB, built in 2 seconds
==> Running brew cleanup mongodb-community...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).
==> Caveats
==> mongodb-community
To start mongodb/brew/mongodb-community now and restart at login:
brew services start mongodb/brew/mongodb-community
Or, if you don't want/need a background service you can just run:
mongod --config /opt/homebrew/etc/mongod.conf
~/desktop/deno_mongo
$ mongo
MongoDB shell version v5.0.4
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:372:17
@(connect):2:6
exception: connect failed
exiting with code 1
code: zsh
$ brew services restart mongodb-community
==> Tapping homebrew/services
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Enumerating objects: 1610, done.
remote: Counting objects: 100% (489/489), done.
remote: Compressing objects: 100% (353/353), done.
remote: Total 1610 (delta 205), reused 338 (delta 124), pack-reused 1121
Receiving objects: 100% (1610/1610), 468.28 KiB | 2.32 MiB/s, done.
Resolving deltas: 100% (682/682), done.
Tapped 1 command (42 files, 596.9KB).
==> Successfully started mongodb-community (label: homebrew.mxcl.mongodb-community)
$ mongo
MongoDB shell version v5.0.4
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("1a320336-6f4e-4c6b-82ad-528d920ee9bd") }
MongoDB server version: 5.0.4
================
Warning: the "mongo" shell has been superseded by "mongosh",
which delivers improved usability and compatibility.The "mongo" shell has been deprecated and will be removed in
an upcoming release.
For installation instructions, see
================
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
Questions? Try the MongoDB Developer Community Forums
---
The server generated these startup warnings when booting:
2021-12-07T19:35:30.453+09:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
---
---
Enable MongoDB's free cloud-based monitoring service, which will then receive and display
metrics about your deployment (disk utilization, CPU, operation statistics, etc).
The monitoring data will be available on a MongoDB website with a unique URL accessible to you
and anyone you share the URL with. MongoDB may use this information to make product
improvements and to suggest MongoDB products and deployment options to you.
To enable free monitoring, run the following command: db.enableFreeMonitoring()
To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
---
Ruby
code: zsh
~/desktop
$ brew install rbenv
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Installing dependencies for rbenv: m4, autoconf, pkg-config, readline and ruby-build
==> Installing rbenv dependency: m4
==> Pouring m4--1.4.19.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/m4/1.4.19: 13 files, 742.4KB
==> Installing rbenv dependency: autoconf
==> Pouring autoconf--2.71.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/autoconf/2.71: 71 files, 3.2MB
==> Installing rbenv dependency: pkg-config
==> Pouring pkg-config--0.29.2_3.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/pkg-config/0.29.2_3: 11 files, 676.4KB
==> Installing rbenv dependency: readline
==> Pouring readline--8.1.1.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/readline/8.1.1: 48 files, 1.7MB
==> Installing rbenv dependency: ruby-build
==> Pouring ruby-build--20211124.all.bottle.tar.gz
🍺 /opt/homebrew/Cellar/ruby-build/20211124: 549 files, 274.9KB
==> Installing rbenv
==> Pouring rbenv--1.2.0.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/rbenv/1.2.0: 35 files, 125.1KB
==> Running brew cleanup rbenv...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).
~/desktop
Checking for `rbenv' in PATH: /opt/homebrew/bin/rbenv
Checking for rbenv shims in PATH: OK
Checking `rbenv install' support: /opt/homebrew/bin/rbenv-install (ruby-build 20211124)
Counting installed Ruby versions: none
There aren't any Ruby versions installed under `/Users/wafuwafu13/.rbenv/versions'.
You can install Ruby versions like so: rbenv install 3.0.3
Checking RubyGems settings: OK
Auditing installed plugins: OK
~/desktop
$ rbenv install 2.7.5
Downloading openssl-1.1.1l.tar.gz...
Installing openssl-1.1.1l...
Installed openssl-1.1.1l to /Users/wafuwafu13/.rbenv/versions/2.7.5
Downloading ruby-2.7.5.tar.bz2...
Installing ruby-2.7.5...
ruby-build: using readline from homebrew
Installed ruby-2.7.5 to /Users/wafuwafu13/.rbenv/versions/2.7.5
~/desktop
$ rbenv global 2.7.5
~/desktop
$ rbenv versions
system
* 2.7.5 (set by /Users/wafuwafu13/.rbenv/version)
Golang
Haskell
code: zsh
~
Using generic bindist...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 138 100 138 0 0 172 0 --:--:-- --:--:-- --:--:-- 173
100 666 100 666 0 0 524 0 0:00:01 0:00:01 --:--:-- 524
100 8473k 100 8473k 0 0 1836k 0 0:00:04 0:00:04 --:--:-- 3066k
Installing Stack to: /usr/local/bin/stack...
About to use 'sudo' to run the following command as root:
install -c -o 0 -g 0 -m 0755 /var/folders/tp/hrvkt91914q8d7ft6dzrkk8w0000gn/T/tmp.sYukNbcC/stack /usr/local/bin
in order to copy 'stack' to the destination directory.
Password:
-------------------------------------------------------------------------------
Stack has been installed to: /usr/local/bin/stack
NOTE: You may need to run 'xcode-select --install' and/or
'open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg'
to set up the Xcode command-line tools, which Stack uses.
WARNING: '/Users/wafuwafu13/.local/bin' is not on your PATH.
Stack will place the binaries it builds in '/Users/wafuwafu13/.local/bin' so
for best results, please add it to the beginning of PATH in your profile.
code: zsh
~
$ stack ghci
Writing implicit global project config file to: /Users/wafuwafu13/.stack/global-project/stack.yaml
Note: You can change the snapshot via the resolver field there.
Using latest snapshot resolver: lts-18.21
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-8.10.7.
ld: unknown option: --version
ld: unknown option: --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/wafuwafu13/.stack/programs/x86_64-osx/ghc-8.10.7/lib/ghc-8.10.7/rts/libHSrts.a(Disassembler.o) has no symbols
Loaded GHCi configuration from /private/var/folders/tp/hrvkt91914q8d7ft6dzrkk8w0000gn/T/haskell-stack-ghci/2a3bbd58/ghci-script
Prelude>
code: zsh
~/desktop
Welcome to Haskell!
This script can download and install the following binaries:
* ghcup - The Haskell toolchain installer
* ghc - The Glasgow Haskell Compiler
* cabal - The Cabal build tool for managing Haskell software
* stack - (optional) A cross-platform program for developing Haskell projects
* hls - (optional) A language server for developers to integrate with their editor/IDE
ghcup installs only into the following directory,
which can be removed anytime:
/Users/wafuwafu13/.ghcup
Press ENTER to proceed or ctrl-c to abort.
Note that this script can be re-run at any given time.
-------------------------------------------------------------------------------
Detected zsh shell on your system...
Do you want ghcup to automatically add the required PATH variable to "/Users/wafuwafu13/.zshrc"?
P Yes, prepend A Yes, append N No ? Help (default is "P"). A
-------------------------------------------------------------------------------
Do you want to install haskell-language-server (HLS)?
HLS is a language-server that provides IDE-like functionality
and can integrate with different editors, such as Vim, Emacs, VS Code, Atom, ...
Y Yes N No ? Help (default is "N"). Y
-------------------------------------------------------------------------------
Do you want to install stack?
Stack is a haskell build tool similar to cabal that is used by some projects.
Y Yes N No ? Help (default is "N"). N
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 80.4M 100 80.4M 0 0 1649k 0 0:00:49 0:00:49 --:--:-- 1766k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 179k 100 179k 0 0 70099 0 0:00:02 0:00:02 --:--:-- 70193
Warn No GHCup update available System requirements
Note: On OS X, in the course of running ghcup you will be given a dialog box to install the command line tools. Accept and the requirements will be installed for you. You will then need to run the command again.
On Darwin M1 you might also need a working llvm installed (e.g. via brew) and have the toolchain exposed in PATH.
Press ENTER to proceed or ctrl-c to abort.
Installation may take a while.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 243M 100 243M 0 0 1862k 0 0:02:13 0:02:13 --:--:-- 5528k
Info verifying digest of: ghc-8.10.7-aarch64-apple-darwin.tar.xz Info Unpacking: ghc-8.10.7-aarch64-apple-darwin.tar.xz to /Users/wafuwafu13/.ghcup/tmp/ghcup-7457c474ecd587a2 Info Installing GHC (this may take a while) Info Merging file tree from "/Users/wafuwafu13/.ghcup/tmp/ghcup-32a564f4e1401099/Users/wafuwafu13/.ghcup/ghc/8.10.7" to "/Users/wafuwafu13/.ghcup/ghc/8.10.7" Info GHC installation successful Info GHC 8.10.7 successfully set as default version % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12.1M 100 12.1M 0 0 4951k 0 0:00:02 0:00:02 --:--:-- 4957k
Info verifying digest of: cabal-install-3.6.2.0-aarch64-darwin.tar.xz Info Unpacking: cabal-install-3.6.2.0-aarch64-darwin.tar.xz to /Users/wafuwafu13/.ghcup/tmp/ghcup-03d814cfb974af37 Info Cabal installation successful Config file path source is default config file.
Config file /Users/wafuwafu13/.cabal/config not found.
Writing default configuration to /Users/wafuwafu13/.cabal/config
Downloading the latest package list from hackage.haskell.org
Updated package list of hackage.haskell.org to the index-state 2022-09-22T01:16:30Z
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 163M 100 163M 0 0 6296k 0 0:00:26 0:00:26 --:--:-- 6752k
Info verifying digest of: haskell-language-server-1.8.0.0-aarch64-darwin.tar.xz Info Unpacking: haskell-language-server-1.8.0.0-aarch64-darwin.tar.xz to /Users/wafuwafu13/.ghcup/tmp/ghcup-df40edd22d612f8a Info Merging file tree from "/Users/wafuwafu13/.ghcup/tmp/ghcup-40d180b48bb8559a/Users/wafuwafu13/.ghcup/hls/1.8.0.0" to "/Users/wafuwafu13/.ghcup/hls/1.8.0.0" Info HLS installation successful Info This is just the server part of your LSP configuration. Consult the README on how to ... configure HLS, your project and your LSP client in your editor: ===============================================================================
OK! /Users/wafuwafu13/.zshrc has been modified. Restart your terminal for the changes to take effect,
or type "source /Users/wafuwafu13/.ghcup/env" to apply them in your current terminal session.
===============================================================================
All done!
To start a simple repl, run:
ghci
To start a new haskell project in the current directory, run:
cabal init --interactive
To install other GHC versions and tools, run:
ghcup tui
code: zsh
~
$ cabal install aeson
<no location info>: error:
Warning: Couldn't figure out LLVM version!
Make sure you have installed LLVM between [9 and 13)
1 of 1 Compiling Data.StateVar ( src/Data/StateVar.hs, dist/build/Data/StateVar.o, dist/build/Data/StateVar.dyn_o ) code: zsh
~
$ brew install llvm@12
If you need to have llvm@12 first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/llvm@12/bin:$PATH"' >> ~/.zshrc
For compilers to find llvm@12 you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/llvm@12/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm@12/include"
code: zsh
~
$ OPT=/opt/homebrew/opt/llvm@12/bin/opt LLC=/opt/homebrew/opt/llvm@12/bin/llc ghcup install ghc 8.10.7 --force
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Warn New ghc version available. To upgrade, run 'ghcup install ghc 9.4.2' Warn New cabal version available. To upgrade, run 'ghcup install cabal 3.8.1.0' Info Removing the currently installed GHC version first! Info Removing ghc symlinks Info Removing ghc-x.y.z symlinks Info Removing/rewiring ghc-x.y symlinks Info Removing files safely from: /Users/wafuwafu13/.ghcup/ghc/8.10.7 % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
36 243M 36 90.1M 0 0 4678k 0 0:00:53 0:00:19 0:00:34 4399k^C
~
$ OPT=/opt/homebrew/opt/llvm@12/bin/opt LLC=/opt/homebrew/opt/llvm@12/bin/llc ghcup install ghc 9.4.2 --force
Warn New cabal version available. To upgrade, run 'ghcup install cabal 3.8.1.0' % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 189M 100 189M 0 0 3740k 0 0:00:51 0:00:51 --:--:-- 4081k
Info verifying digest of: ghc-9.4.2-aarch64-apple-darwin.tar.xz Info Unpacking: ghc-9.4.2-aarch64-apple-darwin.tar.xz to /Users/wafuwafu13/.ghcup/tmp/ghcup-bd8bfdeabfc137a6 Info Installing GHC (this may take a while) Info Merging file tree from "/Users/wafuwafu13/.ghcup/tmp/ghcup-da4f0a0e95ee160b/Users/wafuwafu13/.ghcup/ghc/9.4.2" to "/Users/wafuwafu13/.ghcup/ghc/9.4.2" Info GHC installation successful code: zsh
$ cabal install aeson
Completed aeson-2.1.1.0 (lib)
Warning:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: Installation might not be completed as desired! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The command "cabal install TARGETS" doesn't expose libraries. * You might have wanted to add them as dependencies to your package. In this
case add "aeson" to the build-depends field(s) of your package's .cabal file.
* You might have wanted to add them to a GHC environment. In this case use
"cabal install --lib aeson". The "--lib" flag is provisional: see
code: zsh
~
$ ghcup install cabal 3.8.1.0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.9M 100 10.9M 0 0 4135k 0 0:00:02 0:00:02 --:--:-- 4138k
Info verifying digest of: cabal-install-3.8.1.0-aarch64-darwin.tar.xz Info Unpacking: cabal-install-3.8.1.0-aarch64-darwin.tar.xz to /Users/wafuwafu13/.ghcup/tmp/ghcup-6d2b37820cc7f485 Info Cabal installation successful code: zsh
~
$ ghci
ghci> :m Data.Aeson
<no location info>: error:
Could not find module ‘Data.Aeson’
Perhaps you meant Data.Version (from base-4.17.0.0)
code: zsh
$ cabal install --lib stylish-haskell
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
__0 trying: aeson-2.1.1.0 (user goal) __1 trying: base-4.17.0.0/installed-4.17.0.0 (user goal) __2 next goal: stylish-haskell (user goal) __2 rejecting: stylish-haskell-0.14.2.0 (conflict: aeson==2.1.1.0, stylish-haskell => aeson>=0.6 && <2.1)
__2 skipping: stylish-haskell-0.14.1.0, stylish-haskell-0.14.0.1, stylish-haskell-0.14.0.0, stylish-haskell-0.13.0.0, stylish-haskell-0.12.2.0,
stylish-haskell-0.12.1.0, stylish-haskell-0.12.0.0, stylish-haskell-0.11.0.3,
stylish-haskell-0.11.0.0, stylish-haskell-0.10.0.0, stylish-haskell-0.9.4.4,
stylish-haskell-0.9.4.3, stylish-haskell-0.9.4.0, stylish-haskell-0.9.3.0,
stylish-haskell-0.9.2.2, stylish-haskell-0.9.2.1, stylish-haskell-0.9.2.0,
stylish-haskell-0.9.1.1, stylish-haskell-0.9.1.0, stylish-haskell-0.9.0.2,
stylish-haskell-0.9.0.1, stylish-haskell-0.9.0.0, stylish-haskell-0.8.1.0,
stylish-haskell-0.8.0.0, stylish-haskell-0.7.1.0, stylish-haskell-0.7.0.0,
stylish-haskell-0.6.5.0, stylish-haskell-0.6.4.0, stylish-haskell-0.6.3.0,
stylish-haskell-0.6.2.0, stylish-haskell-0.6.1.0, stylish-haskell-0.6.0.0,
stylish-haskell-0.5.17.0, stylish-haskell-0.5.16.0, stylish-haskell-0.5.15.2,
stylish-haskell-0.5.15.1, stylish-haskell-0.5.15.0, stylish-haskell-0.5.14.4,
stylish-haskell-0.5.14.3, stylish-haskell-0.5.14.2, stylish-haskell-0.5.14.1,
stylish-haskell-0.5.14.0, stylish-haskell-0.5.13.0, stylish-haskell-0.5.12.0,
stylish-haskell-0.5.11.2, stylish-haskell-0.5.11.1, stylish-haskell-0.5.11.0,
stylish-haskell-0.5.10.2, stylish-haskell-0.5.10.1, stylish-haskell-0.5.10.0,
stylish-haskell-0.5.9.1, stylish-haskell-0.5.9.0, stylish-haskell-0.5.8.0,
stylish-haskell-0.5.7.0, stylish-haskell-0.5.6.1, stylish-haskell-0.5.6.0,
stylish-haskell-0.5.5.2, stylish-haskell-0.5.5.1, stylish-haskell-0.5.5.0,
stylish-haskell-0.5.4.0, stylish-haskell-0.5.3.0, stylish-haskell-0.5.2.0,
stylish-haskell-0.5.1.0, stylish-haskell-0.5.0.2, stylish-haskell-0.5.0.1,
stylish-haskell-0.5.0.0, stylish-haskell-0.4.0.0, stylish-haskell-0.3.2.0,
stylish-haskell-0.3.1.0, stylish-haskell-0.3.0.0, stylish-haskell-0.2.0.2,
stylish-haskell-0.2.0.1, stylish-haskell-0.2.0.0 (has the same characteristics
that caused the previous version to fail: excludes 'aeson' version 2.1.1.0)
__2 trying: stylish-haskell-0.1.1.0 __3 next goal: haskell-src-exts (dependency of stylish-haskell) __3 rejecting: haskell-src-exts-1.23.1 (conflict: stylish-haskell => haskell-src-exts>=1.13 && <1.14)
__3 skipping: haskell-src-exts-1.23.0, haskell-src-exts-1.22.0, haskell-src-exts-1.21.1, haskell-src-exts-1.21.0, haskell-src-exts-1.20.3,
haskell-src-exts-1.20.2, haskell-src-exts-1.20.1, haskell-src-exts-1.20.0,
haskell-src-exts-1.19.1, haskell-src-exts-1.19.0, haskell-src-exts-1.18.2,
haskell-src-exts-1.18.1, haskell-src-exts-1.18.0, haskell-src-exts-1.17.1,
haskell-src-exts-1.17.0, haskell-src-exts-1.16.0.1, haskell-src-exts-1.16.0,
haskell-src-exts-1.15.0.1, haskell-src-exts-1.15.0, haskell-src-exts-1.14.0.1,
haskell-src-exts-1.14.0 (has the same characteristics that caused the previous
version to fail: excluded by constraint '>=1.13 && <1.14' from
'stylish-haskell')
__3 rejecting: haskell-src-exts-1.13.5, haskell-src-exts-1.13.4, haskell-src-exts-1.13.3, haskell-src-exts-1.13.2, haskell-src-exts-1.13.1,
haskell-src-exts-1.13.0 (conflict: base==4.17.0.0/installed-4.17.0.0,
haskell-src-exts +/-base4 => base>=3 && <4.8)
__3 rejecting: haskell-src-exts-1.12.0 (conflict: stylish-haskell => haskell-src-exts>=1.13 && <1.14)
__3 skipping: haskell-src-exts-1.11.1, haskell-src-exts-1.10.2, haskell-src-exts-1.10.1, haskell-src-exts-1.10.0, haskell-src-exts-1.9.6,
haskell-src-exts-1.9.5, haskell-src-exts-1.9.4, haskell-src-exts-1.9.3,
haskell-src-exts-1.9.0, haskell-src-exts-1.8.2, haskell-src-exts-1.8.1,
haskell-src-exts-1.8.0, haskell-src-exts-1.7.2, haskell-src-exts-1.7.1,
haskell-src-exts-1.7.0, haskell-src-exts-1.6.1, haskell-src-exts-1.6.0,
haskell-src-exts-1.5.3, haskell-src-exts-1.5.2, haskell-src-exts-1.5.1,
haskell-src-exts-1.5.0, haskell-src-exts-1.4.0, haskell-src-exts-1.3.5,
haskell-src-exts-1.3.4, haskell-src-exts-1.3.3, haskell-src-exts-1.3.2,
haskell-src-exts-1.3.1, haskell-src-exts-1.3.0, haskell-src-exts-1.2.0,
haskell-src-exts-1.1.4, haskell-src-exts-1.1.3.1, haskell-src-exts-1.1.3,
haskell-src-exts-1.1.1, haskell-src-exts-1.1.0, haskell-src-exts-1.0.1,
haskell-src-exts-1.0.0, haskell-src-exts-0.5.7, haskell-src-exts-0.5.6,
haskell-src-exts-0.5.5, haskell-src-exts-0.5.4, haskell-src-exts-0.5.3,
haskell-src-exts-0.5.2, haskell-src-exts-0.4.8, haskell-src-exts-0.4.6,
haskell-src-exts-0.4.5, haskell-src-exts-0.4.4.1, haskell-src-exts-0.4.4,
haskell-src-exts-0.4.3.1, haskell-src-exts-0.4.3, haskell-src-exts-0.4.2,
haskell-src-exts-0.4.1, haskell-src-exts-0.3.12, haskell-src-exts-0.3.11,
haskell-src-exts-0.3.10, haskell-src-exts-0.3.9, haskell-src-exts-0.3.7,
haskell-src-exts-0.3.5, haskell-src-exts-0.3.4, haskell-src-exts-0.3.3,
haskell-src-exts-0.3.2, haskell-src-exts-0.2.1 (has the same characteristics
that caused the previous version to fail: excluded by constraint '>=1.13 &&
<1.14' from 'stylish-haskell')
__3 fail (backjumping, conflict set: base, haskell-src-exts, stylish-haskell)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: aeson, stylish-haskell,
haskell-src-exts, base
Try running with --minimize-conflict-set to improve the error message.
Wasm
UTM
code: zsh
$ brew install --cask utm
Running brew update --preinstall...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/services).
==> New Formulae
abi-compliance-checker chroma fastp isa-l mist salt-lint
abi-dumper coursier goawk jsonschema pam-reattach statix
biber djhtml gotify kubernetes-cli@1.22 payload-dumper-go tsduck
brigade-cli dynomite imap-backup lua-language-server rpki-client vtable-dumper
==> Updated Formulae
Updated 774 formulae.
==> Deleted Formulae
ape csv-fix eject gconf httptunnel liberasurecode m2c md shorten udns
balance dlite es gcore jerasure libmill magnetix namazu srmio whitedb
bbcolors dnsrend eventlog gf-complete kakasi libopendkim makepp postmark svdlibc xidel
colorsvn drip flasm git-sh l-smash libpuzzle marst redsocks swiftplate xtail
contacts dshb fondu henplus libbind libvbucket mboxgrep sdhash torrentcheck zdelta
==> Tapping homebrew/cask
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 610439, done.
remote: Total 610439 (delta 0), reused 0 (delta 0), pack-reused 610439
Receiving objects: 100% (610439/610439), 275.21 MiB | 897.00 KiB/s, done.
Resolving deltas: 100% (431662/431662), done.
Tapped 3936 casks (4,016 files, 294.8MB).
######################################################################## 100.0%
==> Installing Cask utm
==> Moving App 'UTM.app' to '/Applications/UTM.app'
🍺 utm was successfully installed!
https://scrapbox.io/files/61bda86ab1d602001d03e940.png
https://scrapbox.io/files/61bdaeff5a3c00001d2d14ad.png
Docker Desktop
code: zsh
~
$ softwareupdate --install-rosetta
Type A and press return to agree:
code: zsh
$ docker version
Client:
Cloud integration: v1.0.22
Version: 20.10.11
API version: 1.41
Go version: go1.16.10
Git commit: dea9396
Built: Thu Nov 18 00:36:09 2021
OS/Arch: darwin/arm64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.11
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: 847da18
Built: Thu Nov 18 00:34:44 2021
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.4.12
GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
code: zsh
$ docker pull ubuntu:latest
latest: Pulling from library/ubuntu
a39c84e173f0: Pull complete
Digest: sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322
Status: Downloaded newer image for ubuntu:latest
docker.io/library/ubuntu:latest
~
$ docker run -it -d --name ubuntu ubuntu:latest
063e4dbe9fc329e9542595b144aa3a895a3f795d0538920994133dc0e5f08894
~
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
063e4dbe9fc3 ubuntu:latest "bash" 12 seconds ago Up 11 seconds ubuntu
Xcode