z80oolong / homebrew-tmux

z80oolong/tmux -- tmux に野良差分ファイルを適用するための Formula 群
https://gist.github.com/z80oolong/e65baf0d590f62fab8f4f7c358cbcc34
BSD 2-Clause "Simplified" License
20 stars 1 forks source link

brew install(upgrade) z80oolong/tmux/tmux で "patchelf: not an ELF executable" となる #4

Closed gniw closed 3 years ago

gniw commented 3 years ago

tmux 2.9a から 3.1c へのバージョンアップの際、表題のエラーでインストールが完了しませんでした。 インストール済みのtmuxを削除し、brew untap z80oolong/tmux も試してみましたが、状況は変わりません。 OS は macOS BigSur 11.0.1 です。

自分の環境依存であるものか、判断がつかないため、お手数ですがご確認いただけますでしょうか。 以下がインストール時のログになります。 よろしくお願いいたします。

$ brew install z80oolong/tmux/tmux
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
bettertouchtool                              cloudflare-warp                              dwgsee                                       wondershare-filmora

==> Installing tmux from z80oolong/tmux
==> Downloading https://raw.githubusercontent.com/imomaliev/tmux-bash-completion/homebrew_1.0.0/completions/tmux
Already downloaded: /Users/wing/Library/Caches/Homebrew/downloads/e069f5feda8ac439eb1c96ee32db3eacfb99b6d0a93568076ff762daa1270dc1--tmux
==> Downloading https://github.com/tmux/tmux/releases/download/3.1c/tmux-3.1c.tar.gz
Already downloaded: /Users/wing/Library/Caches/Homebrew/downloads/51f5047541024217e23b08286fc442e5163dceca3f3201b1627e2144b0f5fa12--tmux-3.1c.tar.gz
==> Patching
==> ./configure --disable-Dependency-tracking --prefix=/usr/local/Cellar/tmux/3.1c_6 --sysconfdir=/usr/local/etc
==> make install
patchelf: not an ELF executable
==> /usr/local/opt/patchelf/bin/patchelf --set-rpath /usr/local/opt/tmux-ncurses@6.2/lib /usr/local/Cellar/tmux/3.1c_6/bin/tmux
Last 15 lines from /Users/wing/Library/Logs/Homebrew/tmux/03.patchelf:
2020-12-21 17:02:48 +0900

/usr/local/opt/patchelf/bin/patchelf
--set-rpath
/usr/local/opt/tmux-ncurses@6.2/lib
/usr/local/Cellar/tmux/3.1c_6/bin/tmux

patchelf: not an ELF executable

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/z80oolong/homebrew-tmux/issues
z80oolong commented 3 years ago

gniw 様

当方における諸用の多忙等につき、回答が遅れまして誠に申し訳ありません。

さて、この度の不具合は、 tmux で使用する動的ライブラリ ncurses のパスを適切に検索するように、 tmux の Linux における実行バイナリを修正する為に発生している物で御座います。

当該不具合につきまして、 MacOS X でビルドする際には、 tmux に依存するライブラリ ncurses 及び libevent を静的にリンクするよう tmux.rb の修正を行いました。今般修正につきまして、どうか御確認下さい。

この度は、当該不具合に付きまして gniw 様 に御不便を御掛けした事に深くお詫び申し上げると共に、 gniw 様 の御指摘に心より感謝致します。