fluent / fluentd-docs

This repository is deprecated. Go to fluentd-docs-gitbook repository.
49 stars 119 forks source link

td-agent does not install cleanly with Homebrew on Mavericks #82

Closed jace closed 10 years ago

jace commented 10 years ago

I get this on Homebrew:

jace@razor ~ $ brew install "http://toolbelt.treasuredata.com/brew/td-agent.rb"
######################################################################## 100.0%
==> Cloning https://github.com/treasure-data/td-agent.git
Updating /Library/Caches/Homebrew/td-agent--git
==> Checking out revision 34a4dfc56fe44b3c14e7b1b234a178feaaeab705
==> RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/Cellar/openssl/1.0.1e --w
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install bundler -v 1.3.5 --no-ri -
ERROR:  Could not find a valid gem 'bundler' (= 1.3.5) in any repository
ERROR:  Possible alternatives: bundler

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

Installation proceeds if I install bundler manually, but brew can't symlink td-agent into /usr/local after this:

[1] jace@razor ~ $ gem install bundler -v 1.3.5                      [15:55:53]
zsh: correct 'bundler' to '.bundler' [nyae]? n
Successfully installed bundler-1.3.5
Parsing documentation for bundler-1.3.5
1 gem installed
jace@razor ~ $ brew install "http://toolbelt.treasuredata.com/brew/td-agent.rb"
######################################################################## 100.0%
==> Cloning https://github.com/treasure-data/td-agent.git
Updating /Library/Caches/Homebrew/td-agent--git
==> Checking out revision 34a4dfc56fe44b3c14e7b1b234a178feaaeab705
==> RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/Cellar/openssl/1.0.1e --w
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install bundler -v 1.3.5 --no-ri -
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install msgpack -v 0.4.7 --no-ri -
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install iobuffer -v 1.1.2 --no-ri 
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install cool.io -v 1.1.1 --no-ri -
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install http_parser.rb -v 0.5.1 --
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install yajl-ruby -v 1.1.0 --no-ri
==> Fluentd revision: f7105bc435abd5f4e74f13c5e05c625808ba1912
==> git clone https://github.com/fluent/fluentd.git
==> git checkout f7105bc435abd5f4e74f13c5e05c625808ba1912
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem build fluentd.gemspec
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install ./fluentd-*.gem --no-ri --
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install td-client -v 0.8.55 --no-r
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install td -v 0.10.89 --no-ri --no
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install fluent-plugin-td -v 0.10.1
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install thrift -v 0.8.0 --no-ri --
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install fluent-plugin-scribe -v 0.
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install fluent-plugin-flume -v 0.1
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install bson -v 1.8.6 --no-ri --no
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install bson_ext -v 1.8.6 --no-ri 
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install mongo -v 1.8.6 --no-ri --n
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install fluent-plugin-mongo -v 0.7
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install nokogiri -v 1.5.10 --no-ri
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install aws-sdk -v 1.8.3.1 --no-ri
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install fluent-plugin-s3 -v 0.3.4 
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install webhdfs -v 0.5.3 --no-ri -
==> /usr/local/Cellar/td-agent/1.1.17/bin/gem install fluent-plugin-webhdfs -v 0
==> Caveats
td-agent configuration file and plugin directories were created:

    /usr/local/etc/td-agent/td-agent.conf
    /usr/local/etc/td-agent/plugin

You can invoke td-agent manually via td-agent command without launchctl:

    td-agent --pid /usr/local/var/run/td-agent/td-agent.pid

If you want to know the details of Fluentd, see Fluentd documents at:

    http://docs.fluentd.org/

To have launchd start td-agent at login:
    ln -sfv /usr/local/opt/td-agent/*.plist ~/Library/LaunchAgents
Then to load td-agent now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.td-agent.plist
Warning: Could not link td-agent. Unlinking...
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'

Possible conflicting files are:
/usr/local/bin/testrb -> /usr/local/Cellar/ruby/2.0.0-p247/bin/testrb
/usr/local/bin/ruby -> /usr/local/Cellar/ruby/2.0.0-p247/bin/ruby
/usr/local/bin/ri -> /usr/local/Cellar/ruby/2.0.0-p247/bin/ri
/usr/local/bin/rdoc -> /usr/local/Cellar/ruby/2.0.0-p247/bin/rdoc
/usr/local/bin/rake -> /usr/local/Cellar/ruby/2.0.0-p247/bin/rake
/usr/local/bin/irb -> /usr/local/Cellar/ruby/2.0.0-p247/bin/irb
/usr/local/bin/gem -> /usr/local/Cellar/ruby/2.0.0-p247/bin/gem
/usr/local/bin/erb -> /usr/local/Cellar/ruby/2.0.0-p247/bin/erb
/usr/local/include/yaml.h -> /usr/local/Cellar/libyaml/0.1.4/include/yaml.h
/usr/local/share/man/man1/ruby.1 -> /usr/local/Cellar/ruby/2.0.0-p247/share/man/man1/ruby.1
/usr/local/share/man/man1/ri.1 -> /usr/local/Cellar/ruby/2.0.0-p247/share/man/man1/ri.1
/usr/local/share/man/man1/rake.1 -> /usr/local/Cellar/ruby/2.0.0-p247/share/man/man1/rake.1
/usr/local/share/man/man1/irb.1 -> /usr/local/Cellar/ruby/2.0.0-p247/share/man/man1/irb.1
/usr/local/share/man/man1/erb.1 -> /usr/local/Cellar/ruby/2.0.0-p247/share/man/man1/erb.1
/usr/local/lib/pkgconfig/yaml-0.1.pc -> /usr/local/Cellar/libyaml/0.1.4/lib/pkgconfig/yaml-0.1.pc
/usr/local/lib/libyaml.dylib -> /usr/local/Cellar/libyaml/0.1.4/lib/libyaml.dylib
/usr/local/lib/libyaml.a -> /usr/local/Cellar/libyaml/0.1.4/lib/libyaml.a
/usr/local/lib/libyaml-0.2.dylib -> /usr/local/Cellar/libyaml/0.1.4/lib/libyaml-0.2.dylib
==> Summary
X  /usr/local/Cellar/td-agent/1.1.17: 17138 files, 126M, built in 31.3 minutes

I'm not a Ruby developer. I only depend on a few Ruby gems such as Compass and Sass. What should I do here?

jace commented 10 years ago

Unlinking ruby and libyaml fixed this, but it's not clear they should have conflicted in the first place.