0
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 3 years have passed since last update.

ImageMagickインストールエラーについて

Last updated at Posted at 2021-04-15

imagemagick installエラー発生

4月14日深夜1時ごろ
困りました。

 % brew install imagemagick
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (heroku/brew, homebrew/core and homebrew/cask).
==> New Formulae
brook               go-boring           moto                phpbrew
cadence-workflow    haruhi-dl           multitime           pure
crackpkcs           kickstart           mx                  smu
dua-cli             leaf-proxy          net-tools           spaceship
enkits              mapcidr             organize-tool       systemd
epr                 minisat             pcp                 zsh-vi-mode
==> Updated Formulae
Updated 1357 formulae.
==> Renamed Formulae
fcct -> butane
==> Deleted Formulae
atlassian-cli
==> New Casks
audacity                                 fabfilter-simplon
audius                                   fabfilter-timeless
battery-buddy                            fabfilter-twin
chatterino                               fabfilter-volcano
command-pad                              iconscout
dingtalk-lite                            katrain
fabfilter-micro                          nordlocker
fabfilter-one                            nordpass
fabfilter-pro-c                          northernspysoftware-colorpicker
fabfilter-pro-ds                         offset-explorer
fabfilter-pro-g                          old-school-runescape
fabfilter-pro-l                          pop
fabfilter-pro-mb                         runelite
fabfilter-pro-q                          sonobus
fabfilter-pro-r                          utterly
fabfilter-saturn                         wxmacmolplt
==> Updated Casks
Updated 834 casks.
==> Deleted Casks
battery-guardian                         flash-player-debugger-npapi
beatport-pro                             flash-player-debugger-ppapi
craft                                    flash-ppapi
flash-npapi                              imazing-mini
flash-player                             kafka-tool
flash-player-debugger                    screen

==> Downloading https://homebrew.bintray.com/sqlite-3.35.4.big_sur.bottle.tar.gz
-=O=#  #   #   #                                                              
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite-3.35.4.big_sur.bottle.ta
==> Downloading from https://github.com/-/v2/packages/container/package/homebrew
# =#=#                                                                         
curl: (22) The requested URL returned error: 404 
Error: Failed to download resource "sqlite"
Download failed: https://ghcr.io/v2/homebrew/core/sqlite-3.35.4.big_sur.bottle.tar.gz

エラー文

Error: Failed to download resource "sqlite"

本日もさらにエラー

==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.35.4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:861dc044ea5
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs
######################################################################## 100.0%
Error: python@3.9: the bottle needs the Apple Command Line Tools to be installed.
  You can install them, if desired, with:
    xcode-select --install

X-codeのインストールが求められたので

解決手順

###①Xcode Command Line Tools のアンインストール

% sudo rm -rf /Library/Developer/CommandLineToolsをTerminalに入力して行ってください。

###②Xcode Command Line Tools の再インストール

% xcode-select --installをTerminalに入力して行ってください。

###③Imagemagickをインストール

brew install imagemagick

(参考)アプリごとにインストールするものではなくpc本体にインストールして使うものは「brew install」を行う。

ちなみに先ほどのImagemagickはすでにpc本体に入っていたので

######################################################################## 100.0%
Error: imagemagick 7.0.11-4 is already installed
To upgrade to 7.0.11-7, run:
  brew upgrade imagemagick

すでに入ってるよと言われました。

(参考2)

入っているGem/アプリを確認する

コマンド  対象
①bundle install rubyのgemやライブラリーのインストール
②brew install PC本体にインストール

①実行の場合% (gem listをterminalで実行すると)

*** LOCAL GEMS ***

actioncable (6.0.3.6, 6.0.3.5, 6.0.3.4, 6.0.3.2, 6.0.2.1, 6.0.0)
actionmailbox (6.0.3.6, 6.0.3.5, 6.0.3.4, 6.0.3.2, 6.0.2.1, 6.0.0)
actionmailer (6.0.3.6, 6.0.3.5, 6.0.3.4, 6.0.3.2, 6.0.2.1, 6.0.0)
actionpack (6.0.3.6, 6.0.3.5, 6.0.3.4, 6.0.3.2, 6.0.2.1, 6.0.0)
actiontext (6.0.3.6, 6.0.3.5, 6.0.3.4, 6.0.3.2, 6.0.2.1, 6.0.0)

入っているGemがリストアップ

②実行の場合(brew listをterminalで実行すると)

==> Formulae
aom			gettext			icu4c			libheif			little-cms2		openjpeg		readline		x265
autoconf		ghostscript		ilmbase			liblqr			m4			openssl@1.1		ruby-build		xmlto
docbook			glib			imagemagick		libomp			mpdecimal		pcre			shared-mime-info	xz
docbook-xsl		gnu-getopt		jpeg			libpng			mysql@5.6		pkg-config		sqlite			yarn
freetype		heroku			libde265		libtiff			node			python@3.9		tcl-tk
gdbm			heroku-node		libffi			libtool			openexr			rbenv			webp

ご参考まで

参考サイト:@taoki11111さん

タイトル「Homebrewとbundleの違い」

https://qiita.com/taoki11111/items/f182105f0263595f3050

0
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
0
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?