mwunsch / tumblr

Command line interface and Ruby client for the Tumblr API (v2)
MIT License
282 stars 43 forks source link

Error trying to Brew #32

Closed comccoy closed 11 years ago

comccoy commented 11 years ago

I am sure this is something simple but I am not sure how to get past this:

bash-3.2$ brew install https://raw.github.com/mwunsch/tumblr/master/share/tumblr-rb.rb

100.0%

==> gem install tumblr-rb --version 2.0.0 --no-rdoc --no-ri --install-dir /usr/l ERROR: Error installing tumblr-rb: weary requires rack (~> 1.4.0, runtime)

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

bash-3.2$

mwunsch commented 11 years ago

This is an issue w/ gem dependencies.

So the dependencies of the tumblr-rb gem conflict here: Rack v1.4.5 (brought in by Weary) VERSUS Rack v1.5.2 (brought in by Sinatra).

To resolve these dependencies, we should update the gemspec to be less restrictive in what it accepts, and run tests on newer versions of Rack/Sinatra.

In the meantime, You can successfully brew by downloading the raw brew file, and edit this line:

    system "gem", "install", "tumblr-rb",
             "--version", "2.0.0",
             "--no-rdoc", "--no-ri",
             "--install-dir", prefix

Add this extra flag: "--include-dependencies". You can then brew install by pointing to the local file. This could be weird, since you're going to install multiple versions of Rack, and I would normally say "DON'T DO THIS", but I don't think this particular case is harmful.

Dependencies are hard. Patch to fix is coming soon.