How do I resolve this error while installing Jekyll? - ruby

I followed this page and installed Jekyll, but when I tried to run Jekyll I got this error:
/usr/local/lib/site_ruby/2.1.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'liquid' (~> 2.5.5) - did find: [liquid-3.0.1,liquid-2.6.1] (Gem::LoadError)
Checked in 'GEM_PATH=/home/ali/.gem/ruby/2.1.0:/var/lib/gems/2.1.0:/usr/share/rubygems-integration/2.1.0:/usr/share/rubygems-integration/2.1:/usr/share/rubygems-integration/all', execute `gem env` for more information
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1311:in `block in activate_dependencies'
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1300:in `each'
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1300:in `activate_dependencies'
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1282:in `activate'
from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:67:in `block in gem'
from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:66:in `synchronize'
from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:66:in `gem'
from /usr/local/bin/jekyll:22:in `<main>'

This error indicates that the version of the liquid Gem that jekyll needs is lower than the ones you have installed. You should look into installing the right version which is v2.5.5.
gem install liquid -v 2.5.5
Should fix this.

Related

Why does `gem install` succeed but `bundle install` fails?

I'm trying to install gtk3, but bundle install chokes while installing atk. Most of the responses seem to resolve around mismatched versions in the lock file. Removing the lock file doesn't help, neither does installing the matching version of bundle.
$ bundle install
Fetching gem metadata from https://rubygems.org/....
Resolving dependencies...
Using bundler 2.4.6
Fetching native-package-installer 1.1.5
Fetching pkg-config 1.5.1
Installing pkg-config 1.5.1
Installing native-package-installer 1.1.5
Fetching glib2 3.5.1
Installing glib2 3.5.1 with native extensions
Fetching atk 3.5.1
Installing atk 3.5.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/sproctor/code/lich-5/vendor/bundle/ruby/2.7.0/gems/atk-3.5.1/dependency-check
rake RUBYARCHDIR\=/home/sproctor/code/lich-5/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/atk-3.5.1
RUBYLIBDIR\=/home/sproctor/code/lich-5/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/atk-3.5.1
/home/sproctor/.rvm/rubies/ruby-2.7.7/lib/ruby/site_ruby/2.7.0/rubygems.rb:263:in `find_spec_for_exe': can't find gem
rake (>= 0.a) with executable rake (Gem::GemNotFoundException)
from /home/sproctor/.rvm/rubies/ruby-2.7.7/lib/ruby/site_ruby/2.7.0/rubygems.rb:282:in `activate_bin_path'
from /home/sproctor/.rvm/gems/ruby-2.7.7/bin/rake:23:in `<main>'
from /home/sproctor/.rvm/gems/ruby-2.7.7/bin/ruby_executable_hooks:22:in `eval'
from /home/sproctor/.rvm/gems/ruby-2.7.7/bin/ruby_executable_hooks:22:in `<main>'
rake failed, exit code 1
Gem files will remain installed in /home/sproctor/code/lich-5/vendor/bundle/ruby/2.7.0/gems/atk-3.5.1 for inspection.
Results logged to
/home/sproctor/code/lich-5/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/atk-3.5.1/gem_make.out
/home/sproctor/.rvm/rubies/ruby-2.7.7/lib/ruby/site_ruby/2.7.0/rubygems/ext/builder.rb:102:in `run'
/home/sproctor/.rvm/rubies/ruby-2.7.7/lib/ruby/site_ruby/2.7.0/rubygems/ext/rake_builder.rb:28:in `build'
/home/sproctor/.rvm/rubies/ruby-2.7.7/lib/ruby/site_ruby/2.7.0/rubygems/ext/builder.rb:170:in `build_extension'
/home/sproctor/.rvm/rubies/ruby-2.7.7/lib/ruby/site_ruby/2.7.0/rubygems/ext/builder.rb:204:in `block in
build_extensions'
/home/sproctor/.rvm/rubies/ruby-2.7.7/lib/ruby/site_ruby/2.7.0/rubygems/ext/builder.rb:201:in `each'
/home/sproctor/.rvm/rubies/ruby-2.7.7/lib/ruby/site_ruby/2.7.0/rubygems/ext/builder.rb:201:in `build_extensions'
/home/sproctor/.rvm/rubies/ruby-2.7.7/lib/ruby/site_ruby/2.7.0/rubygems/installer.rb:843:in `build_extensions'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/rubygems_gem_installer.rb:72:in `build_extensions'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/rubygems_gem_installer.rb:28:in `install'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/source/rubygems.rb:200:in `install'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/installer/gem_installer.rb:54:in `install'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/installer/parallel_installer.rb:155:in
`do_install'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/installer/parallel_installer.rb:146:in `block in
worker_pool'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/worker.rb:62:in `apply_func'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/worker.rb:57:in `block in process_queue'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/worker.rb:54:in `loop'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/worker.rb:54:in `process_queue'
/home/sproctor/.rvm/gems/ruby-2.7.7/gems/bundler-2.4.6/lib/bundler/worker.rb:90:in `block (2 levels) in
create_threads'
An error occurred while installing atk (3.5.1), and Bundler cannot continue.
In Gemfile:
atk
However, installing via gem works fine.
gem install atk -v 3.5.1
Building native extensions. This could take a while...
Successfully installed atk-3.5.1
Parsing documentation for atk-3.5.1
Done installing documentation for atk after 0 seconds
1 gem installed
This isn't a great answer, so if someone has a more in depth explanation, please feel free to give a better answer.
gem install gtk3 and bundle install use a different copy of rake.
The only difference between the two is the shebang line. The version from bundler is #!/usr/bin/env ruby_executable_hooks while the other version points to a specific version of ruby.
I'm not sure why this fails for the bundler version.
An easy workaround mentioned here: https://github.com/postmodern/digest-crc/issues/18#issuecomment-652889761 is to add gem "rake" to your Gemfile.

Gem install wrong number of arguments (given 4, expected 1)

When I run bundle, I get the following:
-bash: bundle: command not found
I'm not a ruby developer, but it seems like I need bundler to get some software running other people wrote. So I'm trying to get bundler using gem install bundler, but I get the following error:
ERROR: While executing gem ... (ArgumentError)
wrong number of arguments (given 4, expected 1)
Using --backtrace
ERROR: While executing gem ... (ArgumentError)
wrong number of arguments (given 4, expected 1)
/var/lib/gems/2.5.0/gems/psych-4.0.1/lib/psych.rb:323:in `safe_load'
/usr/lib/ruby/2.5.0/rubygems/safe_yaml.rb:31:in `safe_load'
/usr/lib/ruby/2.5.0/rubygems/package.rb:496:in `block (2 levels) in read_checksums'
/usr/lib/ruby/2.5.0/rubygems/package.rb:495:in `wrap'
/usr/lib/ruby/2.5.0/rubygems/package.rb:495:in `block in read_checksums'
/usr/lib/ruby/2.5.0/rubygems/package/tar_reader.rb:116:in `seek'
/usr/lib/ruby/2.5.0/rubygems/package.rb:494:in `read_checksums'
/usr/lib/ruby/2.5.0/rubygems/package.rb:547:in `block (2 levels) in verify'
/usr/lib/ruby/2.5.0/rubygems/package/tar_reader.rb:29:in `new'
/usr/lib/ruby/2.5.0/rubygems/package.rb:546:in `block in verify'
/usr/lib/ruby/2.5.0/rubygems/package/file_source.rb:30:in `open'
/usr/lib/ruby/2.5.0/rubygems/package/file_source.rb:30:in `with_read_io'
/usr/lib/ruby/2.5.0/rubygems/package.rb:545:in `verify'
/usr/lib/ruby/2.5.0/rubygems/package.rb:526:in `spec'
/usr/lib/ruby/2.5.0/rubygems/source/local.rb:49:in `block in load_specs'
/usr/lib/ruby/2.5.0/rubygems/source/local.rb:43:in `each'
/usr/lib/ruby/2.5.0/rubygems/source/local.rb:43:in `load_specs'
/usr/lib/ruby/2.5.0/rubygems/source/local.rb:83:in `find_gem'
/usr/lib/ruby/2.5.0/rubygems/resolver/installer_set.rb:141:in `find_all'
/usr/lib/ruby/2.5.0/rubygems/resolver/installer_set.rb:56:in `add_always_install'
/usr/lib/ruby/2.5.0/rubygems/dependency_installer.rb:478:in `resolve_dependencies'
/usr/lib/ruby/2.5.0/rubygems/commands/install_command.rb:194:in `install_gem'
/usr/lib/ruby/2.5.0/rubygems/commands/install_command.rb:255:in `block in install_gems'
/usr/lib/ruby/2.5.0/rubygems/commands/install_command.rb:251:in `each'
/usr/lib/ruby/2.5.0/rubygems/commands/install_command.rb:251:in `install_gems'
/usr/lib/ruby/2.5.0/rubygems/commands/install_command.rb:158:in `execute'
/usr/lib/ruby/2.5.0/rubygems/command.rb:313:in `invoke_with_build_args'
/usr/lib/ruby/2.5.0/rubygems/command_manager.rb:173:in `process_args'
/usr/lib/ruby/2.5.0/rubygems/command_manager.rb:143:in `run'
/usr/lib/ruby/2.5.0/rubygems/gem_runner.rb:59:in `run'
/usr/bin/gem:21:in `<main>'
ruby version:
ruby 2.5.5p157 (2019-03-15 revision 67260) [arm-linux-gnueabihf].
gem version:
2.7.6.2
I'm on a raspbian linux.
Psych Gem was the culprit in my case; uninstalling psych before running any bundler/gem commands fixed it for me:
Before:
$ bundle update rails
[SNIP]
ArgumentError: wrong number of arguments (given 4, expected 1)
An error occurred while installing activesupport (6.0.4.1), and Bundler cannot continue.
Make sure that `gem install activesupport -v '6.0.4.1' --source 'https://rubygems.org/'` succeeds before bundling.
$ gem install activesupport -v '6.0.4.1' --source 'https://rubygems.org/' --backtrace
ERROR: While executing gem ... (ArgumentError)
wrong number of arguments (given 4, expected 1)
/home/local/PDC01/swi/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/psych-4.0.1/lib/psych.rb:323:in `safe_load'
/home/local/PDC01/swi/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/rubygems/safe_yaml.rb:31:in `safe_load'
[SNIP]
Fix:
$ gem uninstall psych
Select gem to uninstall:
1. psych-3.3.0
2. psych-4.0.1
3. All versions
> 3
After:
...
$ gem install activesupport -v '6.0.4.1' --source 'https://rubygems.org/'
Successfully installed activesupport-6.0.4.1
Parsing documentation for activesupport-6.0.4.1
Running gem update --system should fix things since recent RubyGems versions should be compatible with both Psych 3 and Psych 4.
I have a rails application running with rails-6.1.6 and ruby-3.1.2. I was able to get rid of this exact error by explicitly declaring and downgrading the psych gem (was 4.0.4):
gem 'psych', '~> 3.3.2'

Jekyll won't load anymore after update

I made a clean install of my computer and so reinstall Ruby and Jekyll.
And seems like a big update happened and my old project won't load anymore. Here is what I have when I do a jekyll server
[Arnaud#TARDIS ~/Sites/arnaud scroll]$ jekyll server
Configuration file: /Users/Arnaud/Sites/arnaud/_config.yml
/Users/Arnaud/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- nokogiri (LoadError)
from /Users/Arnaud/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/Arnaud/Sites/arnaud/_plugins/firstPar.rb:1:in `<top (required)>'
from /Users/Arnaud/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/Arnaud/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:87:in `block (2 levels) in setup'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:86:in `each'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:86:in `block in setup'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:85:in `each'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:85:in `setup'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:34:in `initialize'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/commands/build.rb:5:in `new'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/commands/build.rb:5:in `process'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/bin/jekyll:83:in `block (2 levels) in <top (required)>'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/command.rb:180:in `call'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/command.rb:180:in `call'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/command.rb:155:in `run'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/runner.rb:400:in `run_active_command'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/runner.rb:66:in `run!'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/delegates.rb:7:in `run!'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/import.rb:10:in `block in <top (required)>'
Any idea ?
EDIT :
Here is the list of gems :
[Arnaud#TARDIS ~/Sites/arnaud scroll]$ gem list --all
*** LOCAL GEMS ***
bigdecimal (1.2.0)
bundler (1.3.5)
bundler-unload (1.0.1)
classifier (1.3.3)
colorator (0.1)
commander (4.1.3)
directory_watcher (1.4.1)
fast-stemmer (1.0.2)
highline (1.6.19)
io-console (0.4.2)
jekyll (1.0.2)
json (1.7.7)
kramdown (1.0.2)
liquid (2.5.0)
maruku (0.6.1)
minitest (4.3.2)
posix-spawn (0.3.6)
psych (2.0.0)
pygments.rb (0.5.0)
rake (10.0.4, 0.9.6)
rdoc (4.0.0)
rubygems-bundler (1.2.0)
rvm (1.11.3.8)
safe_yaml (0.7.1)
syntax (1.0.0)
test-unit (2.0.0.0)
yajl-ruby (1.1.0)
Try uninstall nokogiri (if installed) and redo everything. Ensure that sudo is not used during the installation (as your Jekyll was installed without sudo by gem install jekyll).
gem install nokogiri
Apparently there's something wrong with your setup. For example, the following error
/Users/Arnaud/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'jekyll' (>= 0) among 8 total gem(s) (Gem::LoadError)
shouldn't be happening in case the Jekyll gem was installed (or could at least be reached) correctly. (most of the Jekyll problems are related to lack of correct YAML front matter, to be honest)
If you pay attention to sudo gem list --all, you'll notice that jekyll isn't installed when you use sudo. Did you try:
gem install jekyll
jekyll serve
This should work, or at least give you a "better" error.
Ah, a good solution to avoid these errors (or at least control them easily) is to use RVM gemsets to separate your gems. It's very useful for debugging.

Could not find rake-0.8.7 in any of the sources (Bundler::GemNotFound)

I am using Ruby 1.8.7 and Rails 2.3.5 version . When I try to start the server it throws the below error.
When I list the gem its shows the rake there but of different version
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
bundler (1.1.3)
fattr (2.2.1)
git (1.2.5)
postgres-pr (0.6.3)
rack (1.0.1)
rails (2.3.5)
rake (0.9.2.2)
rush (0.6.8)
session (3.1.0)
Please help me to figure out this issue .
D:/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/spec_set.rb:90:in `materialize': Could not find rake-0.8.7 in any of the sources (Bundler::GemNotFound)
from D:/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/spec_set.rb:83:in `map!'
from D:/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/spec_set.rb:83:in `materialize'
from D:/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:127:in `specs'
from D:/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:172:in `specs_for'
from D:/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:11:in `setup'
from D:/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler.rb:114:in `setup'
from D:/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'
from D:/safecellweb/config/boot.rb:116:in `load_gems'
from D:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:164:in `process'
from D:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
from D:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
from D:/safecellweb/config/environment.rb:10
from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from D:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from D:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
from D:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from D:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:84
from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from script/server:4
Actually your rake version is 0.9.2
While your app required 0.8.7
so first uninstall rake 0.9.2 by this command
gem uninstall rake -v=0.9.2
then install rake 0.8.7 by this command
gem install rake -v=0.8.7
Hope your issue will be solve........
Run these commands the problem will fix
step 1:install rake gem install rake -v '0.8.7'
step 2: install bundler gem install bundler
step 3: bundle install
it will fix the issue..
Even I faced the same problem while running an application using RubyMine.
Steps taken by me:
1) I installed new Ruby on my machine.
2) Changed the path of Ruby in environment variables.
3) Changed the path of Ruby in RubyMine using following steps:-
a) Click File -> Settings -> Ruby SDK and Gems
4) Then ran bundle install

Exclude hoe gem dependency from Heroku

I am trying to push code to Heroku and it seems like the system gem "hoe" is somehow included by some other gem (geokit was one of them but no luck even after removing that gem from Gemfile). This is causing Heroku to fail because it cannot update system gems. how to solve this issue?
Installing geokit (1.5.0)
Installing geonames (0.2.2)
Installing hoe (2.9.1) /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/installer.rb:170:in `install': hoe requires RubyGems version >= 1.4. Try 'gem update --system' to update RubyGems itself. (Gem::InstallError)
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/source.rb:95:in `install'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/installer.rb:55:in `run'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/installer.rb:44:in `run'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/installer.rb:8:in `install'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/cli.rb:225:in `install'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in `send'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:246:in `dispatch'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:389:in `start'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/bin/bundle:13
from /usr/ruby1.8.7/bin/bundle:19:in `load'
from /usr/ruby1.8.7/bin/bundle:19
FAILED: http://devcenter.heroku.com/articles/bundler
! Heroku push rejected, failed to install gems via Bundler
Just pin it in your Gemfile, I bet your dependent gems don't depend on 2.9.1. Add this:
gem 'hoe', '~> 1.5.1' # Heroku's rubygems is too old for hoe 2.9.1 as of 28 Mar 2011

Resources