LoginSignup
2
2

More than 5 years have passed since last update.

td-agentをhomebrewでインストールする

Posted at

だいたいここの手順でいけるが、ちょっとだけ手詰まりがあったのでメモ。

環境 : Mavericks

  • ruby-buildHEAD が入ってた
==> RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/Cellar/openssl/1.0.1f --with-readline-dir=/usr/local/Cellar/readline/6.2.4" /usr/local/Cellar/ruby-build/20140225/bin/ruby-
sh: /usr/local/Cellar/ruby-build/20140225/bin/ruby-build: No such file or directory

symlink張って解決。

% ln -s /usr/local/Cellar/ruby-build/HEAD /usr/local/Cellar/ruby-build/20140524
  • brew link が失敗する
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using:
  brew link td-agent

libyaml がconflictしていた。brew の親切アドバイスどおりで解決。

% brew link td-agent
Linking /usr/local/Cellar/td-agent/1.1.17... 
Error: Could not symlink include/yaml.h
Target /usr/local/include/yaml.h
is a symlink belonging to libyaml. You can unlink it:
  brew unlink libyaml

To force the link and overwrite all conflicting files:
  brew link --overwrite td-agent

To list all files that would be deleted:
  brew link --overwrite --dry-run td-agent
% brew unlink libyaml
Unlinking /usr/local/Cellar/libyaml/0.1.6... 5 symlinks removed
% brew link --overwrite td-agent
Linking /usr/local/Cellar/td-agent/1.1.17... 38 symlinks created
2
2
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
2
2