I installed everything from the bottom up and thought it was working fine until I ran a bundle install
Has anyone ever seen this? Any ideas? Please help. Thanks.
bundle install
Fetching source index for http://rubygems.org/
/usr/local/lib/ruby/1.9.1/rubygems/format.rb:38:in `from_file_by_path': Cannot load gem at [/usr/local/lib/ruby/gems/1.9.1/cache/rake-0.8.7.gem] in /home/ec2-user/anotherApp (Gem::Exception)
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/source.rb:73:in `fetch'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/installer.rb:45:in `block in run'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in `block in each'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/installer.rb:44:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/installer.rb:8:in `install'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/cli.rb:226:in `install'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor.rb:246:in `dispatch'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor/base.rb:389:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/bin/bundle:13:in `<top (required)>'
from /usr/local/bin/bundle:19:in `load'
from /usr/local/bin/bundle:19:in `<main>'
If you install Ruby 1.9.2-x from source it still installs the gems to /usr/local/lib/ruby/gems/1.9.1/... which is a bit of a WTF (relevant). I too got this error but it can also be caused by a permissions issue. So try running the command again as root (assuming you're running into this on a *nix system). Yes, that is not ideal however you may find it works and at least you can keep on going on the path to figuring things out (and it's all in a test VM anyway, right?).
It's not recommended to use Ruby 1.9.1 with Rails. Better 1.8.7 or 1.9.2, see http://rubyonrails.org/download. Looks like you use the Debian/Ubuntu Ruby. 1.8.7 is available and usable in Debian/Ubuntu, install the ruby-full meta package via apt. Or compile Ruby 1.9.2 directly or via the Ruby Version Manager (rvm). Do not install rubygems via apt.
Related
Whenever I try to make a new Rails project and run bundle install, I get errors like this:
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/source.rb:253:in `fetch_all_remote_specs': undefined method `list' for #<Gem::SpecFetcher:0x8da5cc0> (NoMethodError) from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/source.rb:234:in `block in remote_specs' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/source.rb:231:in `each' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/source.rb:231:in `remote_specs' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/source.rb:165:in `fetch_specs' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/source.rb:70:in `specs' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/definition.rb:176:in `block (2 levels) in index' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/definition.rb:175:in `each' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/definition.rb:175:in `block in index' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/index.rb:7:in `build' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/definition.rb:174:in `index' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/definition.rb:168:in `resolve' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/definition.rb:107:in `specs' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/definition.rb:102:in `resolve_remotely!' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/installer.rb:43:in `run' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/installer.rb:8:in `install' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/cli.rb:219:in `install' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/vendor/thor/task.rb:22:in `run' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/vendor/thor.rb:263:in `dispatch' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/vendor/thor/base.rb:386:in `start' from
/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/bin/bundle:13:in `<top (required)>' from
/.rvm/gems/ruby-1.9.3-p551/bin/bundle:23:in `load' from
/.rvm/gems/ruby-1.9.3-p551/bin/bundle:23:in `<main>' from
/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `eval' from
/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `<main>'
I already tried a lot, including completely uninstalling and purging rails, ruby and rvm from my system (even deleting leftover files and references to rvm in config files), but it always fails at this step. I tried bundler versions from 1.0.0 through 1.6.4, the latter one accidentally, Ruby 1.9.2, 1.9.3 and 2.1, Rails 3.0.1, 3.0.2 and 3.2.6 The method it failes at varied somewhat through my different attempts, but the listed directory is always the same. .rvm is located in my home directory, which I omitted for privacy reasons.
I'm using Ruby on Rails 3.0.2 with Ruby 1.9.3 (documentation was cheap.) on Bunsenlabs, a debian distribution. I issued the following commands to install ruby and rails and create my project:
\curl -sSL https://get.rvm.io | bash -s stable --without-gems="rvm rubygems-bundler"
rvm install 1.9.3
rvm reload
rvm --default use 1.9.3
gem install rails --version 3.0.2
rails new railsapp3 -T
cd railsapp3
bundle install
( bundler ~>1.0.0 is the required version for rails 3.0.2)
This is the content of that project's gemfile:
source 'http://rubygems.org'
gem 'rails', '3.0.2'
gem 'sqlite3-ruby', '1.3.1', :require => 'sqlite3'
This same method works without a hitch on my old laptop (same OS). I suspected it had something to do with version conflicts with different ruby installations, but I purged it thoroughly the last time I tried this.
I would really appreciate it if someone could give me a hint on how to resolve this!
EDIT:
For any poor soul who runs into this issue and stumbles upon this post, copypasting this gemfile (apparently for rails 3.1.0) sorta worked:
ruby on rails 3 tutorial gemfile
I am trying to install vagrant. When I am trying to run a command librarian-chef install I am facing an Error. I am pasting the error below.
/home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl/receiver.rb:29:in `read': No such file or directory # rb_sysopen - /home/saiteja/Cheffile (Errno::ENOENT)
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl/receiver.rb:29:in `run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl.rb:79:in `block in run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl.rb:73:in `tap'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl.rb:73:in `run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl.rb:17:in `run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/environment.rb:148:in `dsl'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/specfile.rb:15:in `read'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/action/resolve.rb:13:in `run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:169:in `resolve!'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-chef-0.0.4/lib/librarian/chef/cli.rb:41:in `install'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:26:in `block (2 levels) in bin!'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:31:in `returning_status'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:26:in `block in bin!'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:47:in `with_environment'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:26:in `bin!'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-chef-0.0.4/bin/librarian-chef:7:in `<top (required)>'
from /home/saiteja/.rvm/gems/ruby-2.2.3/bin/librarian-chef:23:in `load'
from /home/saiteja/.rvm/gems/ruby-2.2.3/bin/librarian-chef:23:in `<main>'
from /home/saiteja/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval'
from /home/saiteja/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'
I googled it. I understood that it is some kind of path error. But I checked the path .rvm/* that is shown in error.
Any help is appreciated. Thank you.
The problem is that , we first need to install vagrant. Then we need to clone the project we need to work on git clone http://-----.There we need to perform vagrant up and vagrant ssh.
Now we are in the vagrant environment. Here we need to install our rails and ruby in order to work with the project independent of our local system (Here persons working on the same project must install same versions of them in order to work).
Perform the installation of ruby through rvm (or) rbenv and install rails. Then we need to use the command librarian-chef install, then it installs all the required gems to the directory you are working without any problem.
I've followed instructions from this question on SO to set up RVM, rubies and gem lists.
I have created rubies 1.8.7 and 1.9.3. For the ruby 1.8.7 I have created a gemset called Organisator.
I have activated the 1.8.7 ruby and gemset "Organisator".
I navigated to the folder of my app and tried to run bundle install. I assume that's how I'm supposed to install the gems needed for my app, same way I did when I did not have RVM.
Error message I get:
root#user-VirtualBox:/home/user/RoR/testapp# bundle install
Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks!
/usr/local/rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- openssl (LoadError)
from /usr/local/rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/net/https.rb:102
from /usr/local/rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/vendor/net/http/persistent.rb:447:in `ssl'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/vendor/net/http/persistent.rb:216:in `connection_for'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/vendor/net/http/persistent.rb:358:in `request'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/fetcher.rb:135:in `fetch'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/fetcher.rb:163:in `fetch_dependency_remote_specs'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/fetcher.rb:122:in `fetch_remote_specs'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/fetcher.rb:70:in `specs'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/source.rb:234:in `remote_specs'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/source.rb:232:in `each'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/source.rb:232:in `remote_specs'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/source.rb:165:in `fetch_specs'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/source.rb:70:in `specs'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/lazy_specification.rb:53:in `__materialize__'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/spec_set.rb:86:in `materialize'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/spec_set.rb:83:in `map!'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/spec_set.rb:83:in `materialize'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/definition.rb:127:in `specs'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/definition.rb:122:in `resolve_remotely!'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/installer.rb:48:in `run'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/installer.rb:12:in `install'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/cli.rb:220:in `install'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/vendor/thor/task.rb:22:in `send'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/lib/bundler/vendor/thor/base.rb:386:in `start'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/gems/bundler-1.1.2/bin/bundle:13
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/bin/bundle:19:in `load'
from /usr/local/rvm/gems/ruby-1.8.7-p358#organizators/bin/bundle:19
I also get an error message when I try to create a new app:
root#user-VirtualBox:/home/user/RoR# rails new testapp
/usr/lib/ruby/vendor_ruby/railties/lib/rails_generator.rb:30:in `require': no such file to load -- active_support (LoadError)
from /usr/lib/ruby/vendor_ruby/railties/lib/rails_generator.rb:30
from /usr/lib/ruby/vendor_ruby/railties/bin/rails:16:in `require'
from /usr/lib/ruby/vendor_ruby/railties/bin/rails:16
I assume I've done something wrong when setting up RVM.
The only idea I have right now is installing all the gems from my gemfile and adding them to gemfile manually.
Versions
Ruby 1.8.7-p358
Rails 2.3.1.4
RVM 1.10.3
Ubuntu 11.10
please use the "quick fix" from here https://rvm.io/packages/openssl/
you have to ignore the rest of instructions, they are intended for systems that do not support packages (like osx)
I'm trying to use warbler on ChiliProject (a Redmine fork, Rails 2.3 app) to deploy it in a Java Jetty web server. But when I run warble at the projects root folder, it fails with the given error message:
$ warble --trace
warble aborted!
undefined method `gems' for #<Rails::VendorGemSourceIndex:0x2e9267fe>
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:260:in `all_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/source.rb:172:in `installed_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/source.rb:162:in `fetch_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/index.rb:7:in `build'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/source.rb:161:in `fetch_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/source.rb:70:in `specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:159:in `index'
org/jruby/RubyArray.java:1603:in `each'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:158:in `index'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/index.rb:7:in `build'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:157:in `index'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:151:in `resolve'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:90:in `specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:135:in `specs_for'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:124:in `requested_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/traits/bundler.rb:102:in `bundler_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/traits/bundler.rb:38:in `add_bundler_gems'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/traits/bundler.rb:29:in `after_configure'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/traits.rb:32:in `after_configure'
org/jruby/RubyArray.java:1603:in `each'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/traits.rb:32:in `after_configure'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/config.rb:172:in `initialize'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/task.rb:48:in `initialize'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/application.rb:27:in `load_rakefile'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/rake-0.9.2/lib/rake/application.rb:61:in `run'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/application.rb:70:in `run'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/bin/warble:11:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
/Users/razenha/.rvm/gems/jruby-1.6.3/bin/warble:19:in `(root)'
I'm using JRuby 1.6.3, JDK 1.6, warbler 1.3.2 and ChiliProject 2.2.0.
At first, I sadly have to disappoint you, as we don't fully support JRuby yet. On the other hand, there are probably "only" encoding issues left to fix so if you are careful, things should work out just okay.
That said, it looks like Rails 2.3 doesn't play too well with Bundler here. If you drop the following file into lib/redmine/core_ext/vendor_gem_source_index.rb of your ChiliProject dirctory, you should be able to run warbler.
class Rails::VendorGemSourceIndex
def gems
#installed_source_index.gems.merge #vendor_source_index.gems
end
end
You still need to configure warbler to use the correct bundler groups. As warbler does it's own thing here (and as I haven't yet used warbler with bundled apps) you might need top find out how to configure this. Have a look into the Gemfile and our Bundler page for more information.
And if you are nagging enough, we might one day officially support this :) Also, more friendly people can be found in our own Forums and on IRC.
I am trying to make this metric_fu get to work but I am getting a weird error.
braga#braga-laptop:~/prj/dummy_app$ rake metrics:all --trace
(in /home/braga/prj/dummy_app)
rake aborted!
RubyGem version error: chronic(0.6.2 not ~> 0.3.0)
/usr/local/lib/site_ruby/1.8/rubygems.rb:812:in `report_activate_error'
/usr/local/lib/site_ruby/1.8/rubygems.rb:223:in `activate'
/usr/local/lib/site_ruby/1.8/rubygems.rb:258:in `activate'
/usr/local/lib/site_ruby/1.8/rubygems.rb:257:in `each'
/usr/local/lib/site_ruby/1.8/rubygems.rb:257:in `activate'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:33:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/home/braga/prj/dummy_app/Rakefile:12
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
In Rakefile line 12 all I have done is given require 'metric_fu'. I tried uninstalling the chronic gem. Installed separate versions of 0.3.0 and 0.6.2 in all combinations. But still I cannot run the metrics. Any help would be much appreciated.
The rails version and ruby versions I use are
braga#braga-laptop:~/prj/dummy_app$ rails --version
Rails 2.3.14
braga#braga-laptop:~/prj/dummy_app$ ruby --version
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
Apparently, this is a known problem. Metric_fu is very obtrusive, meaning it does not run out of the box for a rails project. Iain has created an excellent gem called metrical which wraps metric_fu and takes care of all the dependencies. And the most exciting feature is, it totally runs independent from the project.
To quickly get up and running look at this wonderful railscast by Ryan.
I'm the new maintainer of metric_fu and it should work now on ruby 1.9 without any problems. See configuration instructions at https://github.com/metricfu/metric_fu which include how you can have metric_fu load external coverage output (e.g. using simplecov)
Also, it works from the command-line now. Now need to bundle it or run rake or metrical