LoginSignup
1

More than 5 years have passed since last update.

macOS sierra で homebrew を使って libgcrypt がインストールできない

Posted at

homeberw を使って libgcrypt をインストールしようとした

==> Downloading https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.7.1.tar.bz2
Already downloaded: /Users/***/Library/Caches/Homebrew/libgcrypt-1.7.1.tar.bz2
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libgcrypt/1.7.1 --disable-asm --with-libgpg-error-prefix=/usr/local/opt/libgpg-error
==> make
==> make install
==> make check
Last 15 lines from /Users/***/Library/Logs/Homebrew/libgcrypt/04.make:
HMAC_SHA3_384           20ms    10ms    20ms
HMAC_SHA3_512           10ms    20ms    10ms
/bin/sh: line 1: 71242 Segmentation fault: 11  GCRYPT_IN_REGRESSION_TEST=1 ${dir}$tst
FAIL: benchmark
/bin/sh: line 1: 71261 Segmentation fault: 11  GCRYPT_IN_REGRESSION_TEST=1 ${dir}$tst
FAIL: bench-slope
SKIP: hashtest-256g
======================================
4 of 25 tests failed
(1 test was not run)
Please report to http://bugs.gnupg.org
======================================
make[2]: *** [check-TESTS] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
  https://github.com/Homebrew/homebrew-core/issues

なんかテストにコケてインストールできない。

解決策

に従って、ワークアラウンドを施します。

結果

==> Downloading https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.7.1.tar.bz2
Already downloaded: /Users/***/Library/Caches/Homebrew/libgcrypt-1.7.1.tar.bz2
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libgcrypt/1.7.1 --disable-asm --with-libgpg-error-prefix=/usr/local/opt/libgpg-error
==> make
==> make install
==> make check
🍺  /usr/local/Cellar/libgcrypt/1.7.1: 17 files, 1.5M, built in 3 minutes 12 seconds

🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺

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