投稿

ラベル(homebrew)が付いた投稿を表示しています

[memo] brew update Error: Fetching /usr/local/Homebrew/Library/Taps/peco/homebrew-peco failed!

エラーで転ける事も少なくなったけれど、 [zunermuka ~]$ brew update fatal: could not read Username for 'https://github.com': terminal prompts disabled Error: Fetching /usr/local/Homebrew/Library/Taps/peco/homebrew-peco failed! Updated 14 taps (caskroom/cask, caskroom/versions, dart-lang/dart, ethereum/ethereum, homebrew/binary, homebrew/boneyard, homebrew/core, homebrew/dupes, homebrew/emacs, homebrew/python, homebrew/science, homebrew/services, homebrew/versions, samueljohn/python). ==> New Formulae ... ==> Updated Formulae arangodb ... 他で作業する際に、忘れそうなので [zunermuka ~]$ brew untap peco/homebrew-peco Untapping peco/peco... (59 files, 71K) Untapped 2 formulae [zunermuka ~]$ brew remove peco [zunermuka ~]$ brew install peco [zunermuka ~]$ brew update Already up-to-date. 解決する際、untap 忘れることが多いよ。

[memo] homebrew で 過去のバージョンを利用する際の一例 ( brew upgrade の際に、vim7.4.1952.el_capitan が perl 5.24.0 を連れ立ってインストールしたので過去のコミットに巻き戻してなんとかする)

homebrew で 過去のバージョンを利用する際の一例。 brew upgrade の際に、 vim-7.4.1952.el_capitan が perl 5.24.0 を連れ立ってインストールしたので過去のコミットに巻き戻してなんとかした。 かなり力技。 git log をチェックして、関係性をチェックしてから よさげなところを見つけて git checkout 何かむなしい。homebrew と言うより git の話になるか 追記:2016/06/27 時点ではこの問題は起きない commit bc6d00a9347070c2f9d063cadd6ffc3096afbf2b かな 日付的に違う理由だったのか perl は plenv で管理しているのでこの perl は余分かなぁ。 homebrew で管理しているのだから perl も homebrew で……。(-Mlocal::lib も忘れるし) [zunermuka ~]$ vim dyld: Library not loaded: /usr/local/opt/perl/lib/perl5/5.24.0/darwin-thread-multi-2level/CORE/libperl.dylib   Referenced from: /usr/local/bin/vim   Reason: image not found Trace/BPT trap: 5 brew link を実行していないのでエラーになる。 とりあえずこの時点での、二択。 1. brew install vim --with-custom-perl 2. vim.rb を過去のコミットに戻して、 brew uninstall vim ;brew install vim https://rt.perl.org/Public/Bug/Display.html?id=128093 も気になるし、消極的に 2.過去のコミットに戻すで一時凌ぐ。 vim-7.4.1941.el_capitan も同様だったため、 vim-7.4.1910.el_capitan まで戻す。 [zunermuka ~]$ cd /usr/local/Library/Formula/ [zunermuka /usr/local/...

[memo] 気が向いたらさわってみる julialang

結果として anaconda2 も入れることになるか julialang を使わなければならない感じになってきた模様 [zunermuka ~]$ brew install julia Error: No available formula with the name "julia" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... These formulae were found in taps: Caskroom/cask/julia                      Caskroom/cask/juliastudio To install one of them, run (for example):   brew install Caskroom/cask/julia [zunermuka ~]$ brew install Caskroom/cask/julia ==> brew cask install Caskroom/cask/julia ==> Satisfying dependencies complete ==> Downloading https://s3.amazonaws.com/julialang/bin/osx/x64/0.4/julia-0.4.1-o ######################################################################## 100.0% ==> Symlinking App 'Julia-0.4.1.app' to '/Users/zunermuka/Applications/Julia-0.4. ==> Symlinking Binary 'julia' to '/usr/local/bin/j...

[memo] brew install carthage で The following build commands failed: CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler

こういう事らしいので、 https://github.com/Carthage/Carthage/issues/804 https://github.com/Homebrew/homebrew/pull/43884 Carthage.pkg からインストールした。 [zunermuka ~]$ cd ~/Downloads/ [zunermuka ~/Downloads]$ curl -L -O https://github.com/Carthage/Carthage/releases/download/0.9.2/Carthage.pkg   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                  Dload  Upload   Total   Spent    Left  Speed 100   589    0   589    0     0    387      0 --:--:--  0:00:01 --:--:--   386 100 2704k  100 2704k    0     0   1...

[memo] brew update で Error: Failed to update tap: caskroom/versions

エイッと遣ってしまったが、これはこれで悩ましい。 きっと暫くすると忘れるので記録しておく。 [zunermuka ~]$ brew update Error: Failed to update tap: caskroom/versions Updated Homebrew from fb79218d to f5cc3c03. ==> Updated Formulae git-lfs   grib-api  idris     libuv [zunermuka ~]$ brew untap caskroom/versions Untapping caskroom/versions... (329 files, 1.3M) Untapped 0 formulae [zunermuka ~]$ brew tap caskroom/versions ==> Tapping caskroom/versions Cloning into '/usr/local/Library/Taps/caskroom/homebrew-versions'... remote: Counting objects: 336, done. remote: Compressing objects: 100% (285/285), done. remote: Total 336 (delta 81), reused 155 (delta 50), pack-reused 0 Receiving objects: 100% (336/336), 96.23 KiB | 0 bytes/s, done. Resolving deltas: 100% (81/81), done. Checking connectivity... done. Tapped 0 formulae (354 files, 1.5M) [zunermuka ~]$ brew update Error: Failed to update tap: caskroom/versions Already up-to-date. [zunermuka ~]$ brew cleanup Warning: Skipp...

[memo] brew update で Error: Formulae found in multiple taps:

[zunermuka ~]$ brew update Error: Formulae found in multiple taps:  * homebrew/php/php53  * josegonzalez/php/php53 Please use the fully-qualified name e.g. homebrew/php/php53 to refer the formula. [zunermuka ~]$ brew untap josegonzalez/php/php53 Error: Invalid tap name  josegonzalez/php と指定するんだったかな? [zunermuka ~]$ brew untap josegonzalez/php Untapping josegonzalez/php... (5571 files, 30M) Untapped 469 formulae [zunermuka ~]$ brew tap --repair [zunermuka ~]$ brew update Already up-to-date. 忘れてしまう。

brew update で error: The following untracked working tree files would be overwritten by merge:

/usr/local/Library配下だという事を、忘れそうなので記録。  表示通り、該当ファイルを move or remove [zunermuka ~]$ brew update error: The following untracked working tree files would be overwritten by merge:     Library/Formula/libarchive.rb Please move or remove them before you can merge. Aborting Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master [zunermuka ~]$ mv /usr/local/Library/Formula/libarchive.rb /usr/local/Library/Formula/libarchive.rb.`date +%Y%m%d%H%M%S` nrhd(使ってみたかっただけ) [zunermuka ~]$ brew update -v git checkout -q master ==> git rev-parse -q --verify HEAD 1c82a6a184f7aff224dbc98ed88f358e48c4d2cc git config core.autocrlf false git pull origin refs/heads/master:refs/remotes/origin/master Updating 1c82a6a..7185491 Fast-forward  Library/ENV/4.3/cc                            ...

brew update で fatal: Unable to create '/usr/local/.git/index.lock': File exists. とも Error: Failed to update tap: adamv/alt とも言われめげる

[zunermuka ~]$ brew update fatal: Unable to create '/usr/local/.git/index.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue. Error: Failure while executing: git checkout -q master 力技 [zunermuka ~]$ rm -f /usr/local/.git/index.lock [zunermuka ~]$ brew update Auto packing the repository for optimum performance. You may also run "git gc" manually. See "git help gc" for more information. Counting objects: 92651, done. Delta compression using up to 4 threads. Compressing objects: 100% (32146/32146), done. Writing objects: 100% (92651/92651), done. Total 92651 (delta 65051), reused 86376 (delta 59655) Removing duplicate objects: 100% (256/256), done. Checking connectivity: 92651, done. Username for 'https://github.com': Password for 'https://github.com': fata...

Lion brew update error: unable to unlink old '.gitignore' (Permission denied)

[zunermuka ~]$ brew update remote: Counting objects: 306, done. remote: Compressing objects: 100% (136/136), done. remote: Total 259 (delta 188), reused 188 (delta 118) Receiving objects: 100% (259/259), 32.43 KiB | 28 KiB/s, done. Resolving deltas: 100% (188/188), completed with 39 local objects. From http://github.com/mxcl/homebrew * branch master -> FETCH_HEAD error: unable to unlink old '.gitignore' (Permission denied) Updating 0689349..699b8b1 Error: Failed while executing git pull http://github.com/mxcl/homebrew.git master https://github.com/mxcl/homebrew/issues/6886 と言う事なのだろうから、素直に [zunermuka /usr/local]$ git fetch git://github.com/mxcl/homebrew.git From git://github.com/mxcl/homebrew * branch HEAD -> FETCH_HEAD [zunermuka /usr/local]$ git reset FETCH_HEAD Unstaged changes after reset: M .gitignore M Library/Formula/ical-buddy.rb [zunermuka /usr/local]$ brew update From git://github.com/mxcl/homebrew * branch...

Macbook Air Lion で brew update Aborting とか言われてめげる

Snow Leopard から Lion に移行アシスタントで楽をしようと思ったのが間違いだったのか、と疑った私が悪かった。反省。 Xcode4.1 perlbrew cpanm homebrew nvm node+npm nvm use v0.4.9 npm update までは、順調。 以下で、躓く。 [zunermuka ~]$ brew update error: The following untracked working tree files would be overwritten by checkout: .gitignore ... Aborting Error: Failure while executing: git checkout -q master [zunermuka /usr/local]$ cd `brew --prefix` [zunermuka /usr/local]$ git init Reinitialized existing Git repository in /usr/local/.git/ [zunermuka /usr/local]$ git remote add -f -t master -m master origin git://github.com/mxcl/homebrew.git fatal: remote origin already exists. [zunermuka /usr/local]$ git reset --hard origin/HEAD error: unable to unlink old '.gitignore' (Permission denied) error: unable to unlink old 'README.md' (Permission denied) fatal: Could not reset index file to revision 'origin/HEAD'. [zunermuka /usr/local]$ git reset --hard FETCH_HEAD error: unable to unlink old '.gitign...