1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

AUTOSAR CountdownAdvent Calendar 2022

Day 12

今日のbrew warning: To `brew update`, first run: git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow

Last updated at Posted at 2021-08-22

開発環境を豊かにする開発事例
https://qiita.com/official-events/89fd4ad3c24d7882117d
参加記事です。

今日のgit error: unknown option `initial-branch=main'
https://qiita.com/kaizen_nagoya/items/208d538716bea14800cc

がひょっとしたらgitのバージョンが古いかと思い、更新しようとした。

最近dockerでしか作業しておらず、
brewの更新を1年以上してなかったかもしれない。

$ brew update
Error: 
  homebrew-cask is a shallow clone.
To `brew update`, first run:
  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!

$  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
remote: Enumerating objects: 161612, done.
remote: Counting objects: 100% (149301/149301), done.
remote: Compressing objects: 100% (44486/44486), done.
remote: Total 136313 (delta 101850), reused 125993 (delta 91691), pack-reused 0
Receiving objects: 100% (136313/136313), 54.10 MiB | 3.93 MiB/s, done.
Resolving deltas: 100% (101850/101850), completed with 7092 local objects.
From https://github.com/Homebrew/homebrew-cask
   bdc8e24694..d160c03d55  master     -> origin/master
$ brew update
You have 106 outdated formulae and 9 outdated casks installed.
You can upgrade them with brew upgrade
or list them with brew outdated.

そして

bash
$ brew install git
Warning: You are using macOS 10.13.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.

git 2.25.0 is installed but outdated
==> Upgrading git
  2.25.0 -> 2.33.0 

==> Downloading https://ghcr.io/v2/homebrew/core/gettext/manifests/0.21
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gettext/blobs/sha256:5ac5783e31
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Downloading https://ftp.pcre.org/pub/pcre/pcre2-10.37.tar.bz2
######################################################################## 100.0%
==> Downloading https://mirrors.edge.kernel.org/pub/software/scm/git/git-htmldoc
######################################################################## 100.0%
==> Downloading https://mirrors.edge.kernel.org/pub/software/scm/git/git-manpage
######################################################################## 100.0%
==> Downloading https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Net-SMTP-SSL-1.04
######################################################################## 100.0%
==> Downloading https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.33.0.
######################################################################## 100.0%
==> Installing dependencies for git: gettext and pcre2
==> Installing git dependency: gettext
==> Pouring gettext--0.21.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gettext/0.21: 1,959 files, 19.1MB
==> Installing git dependency: pcre2
==> Patching
==> ./configure --prefix=/usr/local/Cellar/pcre2/10.37_1 --enable-pcre2-16 --ena
==> make
==> make install
🍺  /usr/local/Cellar/pcre2/10.37_1: 230 files, 6MB, built in 1 minute 9 seconds
==> Installing git
==> make install prefix=/usr/local/Cellar/git/2.33.0 sysconfdir=/usr/local/etc C
==> make CC=clang CFLAGS= LDFLAGS=
==> make clean
==> make
==> make test
==> make CC=clang CFLAGS= LDFLAGS=
==> Caveats
The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the `git-gui` formula.

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/git
==> Summary
🍺  /usr/local/Cellar/git/2.33.0: 1,507 files, 41.8MB, built in 1 minute 30 seconds
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /Users/ogawakiyoshi/Library/Caches/Homebrew/anyenv--1.1.2.high_sierra.bottle.tar.gz... (10.2KB)
Removing: /usr/local/Cellar/gettext/0.20.1... (1,899 files, 18.6MB)
Removing: /usr/local/Cellar/git/2.25.0... (1,523 files, 45.9MB)
Removing: /usr/local/Cellar/pcre2/10.34... (230 files, 5.9MB)
Removing: /Users/ogawakiyoshi/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz... (9.1MB)
Removing: /Users/ogawakiyoshi/Library/Logs/Homebrew/anyenv... (64B)
Pruned 4 symbolic links and 6 directories from /usr/local
==> Upgrading 11 dependents:
cairo 1.16.0_2 -> 1.16.0_5, flex 2.6.4_1 -> 2.6.4_2, glib 2.62.4 -> 2.68.4, gnuplot 5.2.8 -> 5.4.2, gnutls 3.6.11.1 -> 3.6.16, harfbuzz 2.6.4 -> 2.9.0, libidn2 2.3.0 -> 2.3.2, pango 1.44.7 -> 1.48.9, r 3.6.2 -> 4.1.1, wget 1.20.3_2 -> 1.21.1_1, wireshark 3.4.7
==> Upgrading flex
  2.6.4_1 -> 2.6.4_2 

==> Downloading https://cpan.metacpan.org/authors/id/P/PV/PVANDRY/gettext-1.07.t
######################################################################## 100.0%
==> Downloading https://ftp.gnu.org/gnu/help2man/help2man-1.48.4.tar.xz
######################################################################## 100.0%
==> Downloading https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6
==> Downloading from https://github-releases.githubusercontent.com/14521001/2379
######################################################################## 100.0%
==> Installing dependencies for flex: help2man
==> Installing flex dependency: help2man
==> perl Makefile.PL INSTALL_BASE=/usr/local/Cellar/help2man/1.48.4/libexec
==> make install
==> ./configure --prefix=/usr/local/Cellar/help2man/1.48.4 --enable-nls
==> make install
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/man/de/man1/help2man.1
/usr/local/share/man/de/man1 is not writable.

You can try again using:
  brew link help2man
==> Summary
🍺  /usr/local/Cellar/help2man/1.48.4: 68 files, 658.4KB, built in 10 seconds
==> Installing flex
==> ./configure --enable-shared --prefix=/usr/local/Cellar/flex/2.6.4_2
==> make install
==> Caveats
flex is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have flex first in your PATH, run:
  echo 'export PATH="/usr/local/opt/flex/bin:$PATH"' >> /Users/ogawakiyoshi/.bash_profile

For compilers to find flex you may need to set:
  export LDFLAGS="-L/usr/local/opt/flex/lib"
  export CPPFLAGS="-I/usr/local/opt/flex/include"

==> Summary
🍺  /usr/local/Cellar/flex/2.6.4_2: 46 files, 1.4MB, built in 31 seconds
Removing: /usr/local/Cellar/flex/2.6.4_1... (45 files, 1.4MB)
==> Upgrading glib
  2.62.4 -> 2.68.4 

==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/manifests/0.29.2_3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/blobs/sha256:8c61603
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Downloading https://ftp.gnu.org/gnu/gdbm/gdbm-1.20.tar.gz
######################################################################## 100.0%
==> Downloading https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-2
######################################################################## 100.0%
==> Downloading https://www.openssl.org/source/openssl-1.1.1k.tar.gz
######################################################################## 100.0%
==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.1.tar.gz
######################################################################## 100.0%
==> Downloading https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/xz/manifests/5.2.5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/xz/blobs/sha256:1491b2b20c40c3c
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Downloading https://www.bytereef.org/contrib/decimal.diff
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/88/fc/d17731c0cc67a5a8e3
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/4d/0c/3b63fe024414a8a486
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/ed/46/e298a50dde405e1c20
######################################################################## 100.0%
==> Downloading https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tar.xz
######################################################################## 100.0%
==> Downloading https://github.com/ninja-build/ninja/archive/v1.10.2.tar.gz
==> Downloading from https://codeload.github.com/ninja-build/ninja/tar.gz/v1.10.
######################################################################## 100.0%
==> Downloading https://github.com/mesonbuild/meson/releases/download/0.59.1/mes
==> Downloading from https://github-releases.githubusercontent.com/19784232/12e6
######################################################################## 100.0%
==> Downloading https://sourceware.org/pub/libffi/libffi-3.3.tar.gz
######################################################################## 100.0%
==> Downloading https://ftp.pcre.org/pub/pcre/pcre-8.45.tar.bz2
######################################################################## 100.0%
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/43467
######################################################################## 100.0%
==> Downloading https://download.gnome.org/sources/glib/2.68/glib-2.68.4.tar.xz
==> Downloading from https://mirror.ossplanet.net/gnome/sources/glib/2.68/glib-2
######################################################################## 100.0%
==> Installing dependencies for glib: pkg-config, gdbm, mpdecimal, openssl@1.1, readline, sqlite, xz, python@3.9, ninja, meson, libffi and pcre
==> Installing glib dependency: pkg-config
==> Pouring pkg-config--0.29.2_3.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 628.0KB
==> Installing glib dependency: gdbm
==> ./configure --enable-libgdbm-compat --without-readline --prefix=/usr/local/C
==> make install
🍺  /usr/local/Cellar/gdbm/1.20: 38 files, 906.7KB, built in 30 seconds
==> Installing glib dependency: mpdecimal
==> ./configure --prefix=/usr/local/Cellar/mpdecimal/2.5.1
==> make
==> make install
🍺  /usr/local/Cellar/mpdecimal/2.5.1: 71 files, 2MB, built in 17 seconds
==> Installing glib dependency: openssl@1.1
==> perl ./Configure --prefix=/usr/local/Cellar/openssl@1.1/1.1.1k --openssldir=
==> make
==> make install MANDIR=/usr/local/Cellar/openssl@1.1/1.1.1k/share/man MANSUFFIX
==> make test
==> Regenerating CA certificate bundle from keychain, this may take a while...
🍺  /usr/local/Cellar/openssl@1.1/1.1.1k: 8,064 files, 18.4MB, built in 7 minutes 13 seconds
==> Installing glib dependency: readline
==> ./configure --prefix=/usr/local/Cellar/readline/8.1

新人

マネージャ・リーダーの私にとって有益な知見が得られた書籍

新人の方によく展開している有益な情報

新人(学生)を指導するよりも新人(学生)に指導してもらった方が効率的。仮説・検証(139)

#参考資料(reference)

第11回 TOPPERS活用アイデア・アプリケーション開発コンテスト

ひょっとしたら、この部門への投稿の表題を変えて、コンテストに応募するのも手かも。

TOPPERS のAUTOSARへの貢献(更新中), AUTOSAR(15)

AUTOSARとSimulink: Adaptive Platform, Classic Platformとマルチコア対応を含めた共通化を目指して

TOPPERS の AUTOSAR への貢献 II (改定中)

人生で影響を受けた本100冊。Youtube(3)

今まで書いてよかった技術書を紹介しよう!
https://qiita.com/kaizen_nagoya/items/d31b7c158541d345a7ef

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?