Problem with warbler 1.3.1 and rake 0.9.2

pb2au's Avatar

pb2au

24 Jul, 2011 06:17 AM

Hello!

I have recently started to upgrade our server and libraries, and have tried (and failed) to bundle the default rails3 application. I believe the problem is with warbler v1.3.1 and it has some sort of incompatibility with rake v0.9.2 Any help would be greatly appreciated.

Thank you!

Steps 1 through 5 work great, and step 6a successfully creates and launches the application.

However, when I try to bundle the application into a war file using Step 6b, I get the following message:
warble aborted!
You have already activated rake 0.8.7, but your Gemfile requires rake 0.9.2. Consider using bundle exec.
/usr/lib64/jruby-1.6.3/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:31:in `setup'

Create Simple JRuby / Rails Application
1. jruby -S gem install bundler rake rails warbler
2. jruby -S rails new myapp3 --template http://jruby.org/rails3.rb
3. cd myapp3
4. jruby -S bundle install
5. jruby -S rake db:create:all

6a. jruby script/rails server
6b. jruby -S warble

My environment was installed from scratch, no old libraries or applications were installed before testing the JRuby / Rails sample application:
- Linux unix 2.6.38.8-35.fc15.x86_64 #1 SMP Wed Jul 6 13:58:54 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux - jruby 1.6.3 (ruby-1.8.7-p330) (2011-07-07 965162f) (OpenJDK 64-Bit Server VM 1.6.0_22) [linux-amd64-java] - jruby -S gem list LOCAL GEMS abstract (1.0.0)
actionmailer (3.0.9)
actionpack (3.0.9)
activemodel (3.0.9)
activerecord (3.0.9)
activerecord-jdbc-adapter (1.1.2)
activeresource (3.0.9)
activesupport (3.0.9)
arel (2.0.10)
builder (2.1.2)
bundler (1.0.15)
erubis (2.6.6)
i18n (0.5.0)
jdbc-sqlite3 (3.7.2)
jruby-jars (1.6.3)
jruby-rack (1.0.9)
mail (2.2.19)
mime-types (1.16)
polyglot (0.3.1)
rack (1.2.3)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.9)
railties (3.0.9)
rake (0.9.2, 0.8.7)
rdoc (3.8)
rubyzip (0.9.4)
sources (0.0.1)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.29)
warbler (1.3.1)

  1. Support Staff 1 Posted by Eric Hodel on 24 Jul, 2011 07:14 AM

    Eric Hodel's Avatar

    This is a help discussion for problems with RubyGems itself, so we can't really help you here.

    I suggest:

    Use bundle exec as the error message states

    Uninstalling rake 0.9.2 or 0.8.7

    Contacting the warbler maintainers if you're sure that's where the problem lies.

    We can't really diagnose your problem here otherwise as this is not the appropriate place.

  2. Eric Hodel closed this discussion on 24 Jul, 2011 07:14 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac