#26 ✓resolved
effe

Issue installing gem

Reported by effe | April 1st, 2009 @ 10:14 AM | in 4.0

Hi,

I read your comment on http://blog.infinitered.com/entr... and wanted to try out your gem as it looks very promising. Perhaps I just forgot something and perhaps this is not the right place for this type of question but I cannot install the commander gem.

I get a "Don't know how to build task 'test/foo'" message when trying to install or build the gem.

Maybe you can help me?

I tried following steps:

$ sudo gem update

$ git clone git://github.com/visionmedia/commander.git

$ cd commander/

$ rake gem

no such file to load -- highline/import

$ sudo gem install highline

$ rake gem

no such file to load -- echoe

$ sudo gem install echoe

$ rake gem

no such file to load -- spec/rake/spectask

$ sudo gem install rspec

$ rake gem

mkdir -p pkg rake aborted! Don't know how to build task 'test/foo'

$ rake gem --trace

Invoke gem (first_time) Invoke pkg/commander-3.2.0.gem (first_time) Invoke pkg (first_time, not_needed) Invoke bin/commander (first_time, not_needed) Invoke commander.gemspec (first_time) Invoke build_gemspec (first_time) Execute build_gemspec Execute commander.gemspec Invoke History.rdoc (first_time, not_needed) Invoke lib/commander/blank.rb (first_time, not_needed) Invoke lib/commander/command.rb (first_time, not_needed) Invoke lib/commander/core_ext/array.rb (first_time, not_needed) Invoke lib/commander/core_ext/object.rb (first_time, not_needed) Invoke lib/commander/core_ext/string.rb (first_time, not_needed) Invoke lib/commander/core_ext.rb (first_time, not_needed) Invoke lib/commander/help_formatters/base.rb (first_time, not_needed) Invoke lib/commander/help_formatters/terminal/command_help.erb (first_time, not_needed) Invoke lib/commander/help_formatters/terminal/help.erb (first_time, not_needed) Invoke lib/commander/help_formatters/terminal.rb (first_time, not_needed) Invoke lib/commander/help_formatters.rb (first_time, not_needed) Invoke lib/commander/runner.rb (first_time, not_needed) Invoke lib/commander/user_interaction.rb (first_time, not_needed) Invoke lib/commander/version.rb (first_time, not_needed) Invoke lib/commander.rb (first_time, not_needed) Invoke Manifest (first_time, not_needed) Invoke Rakefile (first_time, not_needed) Invoke README.rdoc (first_time, not_needed) Invoke spec/command_spec.rb (first_time, not_needed) Invoke spec/core_ext/array_spec.rb (first_time, not_needed) Invoke spec/core_ext/object_spec.rb (first_time, not_needed) Invoke spec/core_ext/string_spec.rb (first_time, not_needed) Invoke spec/help_formatters/base_spec.rb (first_time, not_needed) Invoke spec/help_formatters/terminal_spec.rb (first_time, not_needed) Invoke spec/runner_spec.rb (first_time, not_needed) Invoke spec/spec_helper.rb (first_time, not_needed) Invoke tasks/docs.rake (first_time, not_needed) Invoke tasks/gemspec.rake (first_time, not_needed) Invoke tasks/spec.rake (first_time, not_needed) rake aborted! Don't know how to build task 'test/foo' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1704:in []' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:586:ininvoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:ininvoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:577:in invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:ininvoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:ininvoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:577:in invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:ininvoke' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:intop_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:intop_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:intop_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:instandard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31 /usr/bin/rake:19:inload' /usr/bin/rake:19 ./lib/commander/runner.rb:328:in require_program': program version required (Commander::Runner::CommandError)

from ./lib/commander/runner.rb:327:in `each'
from ./lib/commander/runner.rb:327:in `require_program'
from ./lib/commander/runner.rb:39:in `run!'
from ./lib/commander.rb:35
from /usr/bin/rake:19

From this point I do not know what to do next. Do you have an idea whats going wrong in this case?

Help would be very appreciated.

Comments and changes to this ticket

  • TJ Holowaychuk

    TJ Holowaychuk April 1st, 2009 @ 03:31 PM

    • Milestone set to 4.0
    • Tag changed from install to bug, install
    • State changed from “new” to “open”

    Thanks for the ticket, I would not have caught this on my own machine. Simply was just an issue on my part I had an arbitrary testing directory for help formatters which was accidentally in the manifest.

    All you should need to do is:

    
    $ sudo gem sources -a http://gems.github.com
    

    ^ -- if you have not already added githubs gem server as a source

    then

    
    $ sudo gem install visionmedia-commander
    

    As commander is currently not on rubyforge. Please let me know if the latest version (3.2.1) resolves this issue for you.

  • TJ Holowaychuk

    TJ Holowaychuk April 1st, 2009 @ 03:31 PM

    • Title changed from “How to install commander gem?” to “Issue installing gem”
  • TJ Holowaychuk

    TJ Holowaychuk April 7th, 2009 @ 05:54 AM

    • State changed from “open” to “resolved”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The complete solution for Ruby command-line executables

People watching this ticket

Tags

Pages