Installing ya2yaml (0.30) c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:371:in `rescue in block in initialize_copy': ya2yaml-0.30 has
an invalid value for #cert_chain (Gem::FormatException)
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:364:in `block in initialize_copy'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:360:in `each'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:360:in `initialize_copy'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:638:in `initialize_dup'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:638:in `dup'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:638:in `for_cache'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:746:in `to_ruby_for_cache'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:234:in `write_spec'
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:175:in `install'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/source.rb:96:in `install'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/installer.rb:55:in `block in run'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/spec_set.rb:12:in `block in each'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/spec_set.rb:12:in `each'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/spec_set.rb:12:in `each'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/installer.rb:44:in `run'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/installer.rb:8:in `install'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/cli.rb:226:in `install'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor/task.rb:22:in `run'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor.rb:246:in `dispatch'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/lib/bundler/vendor/thor/base.rb:389:in `start'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.11/bin/bundle:13:in `<top (required)>'
from c:/Ruby192/bin/bundle:19:in `load'
from c:/Ruby192/bin/bundle:19:in `<main>'
I tried to install it like this:
$ gem install ya2yaml --platform=ruby
ERROR: While executing gem ... (Gem::FormatException)
ya2yaml-0.30 has an invalid value for #cert_chain
But i got another error.
Update gem
gem update --system
I guess this should solve your problem
Error when installing "ya2yaml" gem on Windows7, Ruby1.9.2, Rails3
Hope it helps.
Related
Christophers-MacBook-Pro:spec chrisvh$ bundle exec rspec
Could not find i18n-0.6.9 in any of the sources
Run `bundle install` to install missing gems.
Christophers-MacBook-Pro:spec chrisvh$ bundle install
--- ERROR REPORT TEMPLATE -------------------------------------------------------
- What did you do?
I ran the command `/Users/chrisvh/.rbenv/versions/2.1.2/bin/bundle install`
- What did you expect to happen?
I expected Bundler to...
- What happened instead?
Instead, what actually happened was...
Error details
Errno::EACCES: Permission denied # rb_sysopen - /Users/chrisvh/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb:32:in `initialize'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb:32:in `open'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb:32:in `open'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb:32:in `update'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb:63:in `update'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb:54:in `update_and_parse_checksums!'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/fetcher/compact_index.rb:63:in `available?'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/fetcher/compact_index.rb:15:in `call'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/fetcher/compact_index.rb:15:in `block in compact_index_request'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/fetcher.rb:154:in `use_api'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:331:in `block in api_fetchers'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:331:in `select'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:331:in `api_fetchers'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:336:in `block in remote_specs'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/index.rb:10:in `build'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:335:in `remote_specs'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:82:in `specs'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/lazy_specification.rb:56:in `__materialize__'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/spec_set.rb:91:in `block in materialize'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/spec_set.rb:88:in `map!'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/spec_set.rb:88:in `materialize'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/definition.rb:140:in `specs'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/definition.rb:129:in `resolve_remotely!'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/installer.rb:195:in `resolve_if_need'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/installer.rb:70:in `run'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/installer.rb:22:in `install'
/usr/local/Cellar/rbenv/1.0.0/rbenv.d/exec/gem-rehash/rubygems_plugin.rb:27:in `install'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/cli/install.rb:106:in `run'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/cli.rb:173:in `install'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/cli.rb:11:in `start'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/exe/bundle:27:in `block in <top (required)>'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/exe/bundle:19:in `<top (required)>'
/Users/chrisvh/.rbenv/versions/2.1.2/bin/bundle:23:in `load'
/Users/chrisvh/.rbenv/versions/2.1.2/bin/bundle:23:in `<main>'
Environment
Bundler 1.12.0.pre.1
Rubygems 2.2.2
Ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin15.0]
GEM_HOME /Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0
GEM_PATH /Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0:/Users/chrisvh/.gem/ruby/2.1.0
Git 2.7.1
--- TEMPLATE END ----------------------------------------------------------------
Unfortunately, an unexpected error occurred, and Bundler cannot continue.
First, try this link to see if there are any existing issue reports for this error:
https://github.com/bundler/bundler/search?q=Permission+denied+%40+rb_sysopen+-+%2FUsers%2Fchrisvh%2F.bundle%2Fcache%2Fcompact_index%2Frubygems.org.443.29b0360b937aa4d161703e6160654e47%2Fversions&type=Issues
If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
https://github.com/bundler/bundler/issues/new
Apparently there is something very wrong with my bundler because I always get this error and in rails apps I'm forced to run sudo bundle install or something similar to get it working any information on this topic would be greatly appreciated.
I'm trying to run my jekyll site locally but when executing the command:
jekyll serve
I receive the following error message:
bhavik-imac:dhokes.github.io bhavikdhokia$ jekyll serve
Configuration file: /Users/bhavikdhokia/Development/git/dhokes.github.io/_config.yml
/Users/bhavikdhokia/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- jekyll-sitemap (LoadError)
from /Users/bhavikdhokia/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:29:in `block in require_gems'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:26:in `each'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:26:in `require_gems'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:19:in `conscientious_require'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/site.rb:79:in `setup'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/site.rb:41:in `initialize'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:29:in `new'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:29:in `process'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/commands/serve.rb:26:in `block (2 levels) in init_with_program'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1#global/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/bin/jekyll:20:in `<top (required)>'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/bin/jekyll:23:in `load'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/bin/jekyll:23:in `<main>'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/bhavikdhokia/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Any suggestions as to why this is and how to resolve this?
Seems like you have to install jekyll-sitemap Try to install it by gem install jekyll-sitemap.
For people Googling this problem, also try bundle update if you're using bundle.
I'm trying to build and run manageiq from source by following theses instructions:
http://ctl.parkerfleming.com/tutorials/manageiq/install-manageiq-on-ubuntu-14-04-on-the-centurylink-cloud/
When I run the following step:
$ git clone https://github.com/ManageIQ/manageiq
$ cd manageiq/vmdb
$ bundle install --without qpid
I get this error:
eugene#3b4d8a92ac5d:~/manageiq/vmdb/manageiq/vmdb$ bundle install --without qpid
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/home/eugene/manageiq/vmdb/manageiq/lib/Gemfile:1:in `eval_gemfile': Ruby versions less than 2.0 are unsupported! (RuntimeError)
from /home/eugene/manageiq/vmdb/manageiq/vmdb/Gemfile.global.rb:53:in `eval'
from /home/eugene/manageiq/vmdb/manageiq/vmdb/Gemfile.global.rb:53:in `include_gemfile'
from /home/eugene/manageiq/vmdb/manageiq/vmdb/Gemfile:4:in `eval_gemfile'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/dsl.rb:32:in `instance_eval'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/dsl.rb:32:in `eval_gemfile'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/dsl.rb:10:in `evaluate'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/definition.rb:25:in `build'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler.rb:154:in `definition'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/cli/install.rb:77:in `run'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/cli.rb:145:in `install'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/vendor/thor/command.rb:27:in `run'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/vendor/thor.rb:363:in `dispatch'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/vendor/thor/base.rb:440:in `start'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/cli.rb:9:in `start'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/bin/bundle:20:in `block in <top (required)>'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/gems/bundler-1.7.6/bin/bundle:18:in `<top (required)>'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/bin/bundle:23:in `load'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/bin/bundle:23:in `<main>'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/bin/ruby_executable_hooks:15:in `eval'
from /home/eugene/.rvm/gems/ruby-1.9.3-p551#global/bin/ruby_executable_hooks:15:in `<main>'
What can I do to overcome this and finish manageiq install?
I'm getting this error when running bundler to install my gems. I've looked around and find no solution to it except installing the openssl pkg on rvm and reinstalling all rubies, doing so did not fix the issue, are there any other possible solutions?
This is the output I get running bundle install:
Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/openssl.so: undefined symbol: SSLv2_method - /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/openssl.so (LoadError)
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/openssl.rb:17:in `<top (required)>'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/https.rb:22:in `<top (required)>'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/net/http/persistent.rb:447:in `ssl'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/net/http/persistent.rb:216:in `connection_for'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/net/http/persistent.rb:358:in `request'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/fetcher.rb:149:in `fetch'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/fetcher.rb:177:in `fetch_dependency_remote_specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/fetcher.rb:135:in `fetch_remote_specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/fetcher.rb:73:in `specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/source.rb:234:in `block in remote_specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/source.rb:232:in `each'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/source.rb:232:in `remote_specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/source.rb:165:in `fetch_specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/source.rb:70:in `specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/lazy_specification.rb:53:in `__materialize__'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/spec_set.rb:86:in `block in materialize'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/spec_set.rb:83:in `map!'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/spec_set.rb:83:in `materialize'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/definition.rb:113:in `specs'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/definition.rb:108:in `resolve_remotely!'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/installer.rb:81:in `run'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/installer.rb:14:in `install'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/cli.rb:230:in `install'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/thor/task.rb:27:in `run'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/thor.rb:275:in `dispatch'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/vendor/thor/base.rb:408:in `start'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/bin/bundle:14:in `block in <top (required)>'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/gems/bundler-1.2.1/bin/bundle:14:in `<top (required)>'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/bin/bundle:19:in `load'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125#global/bin/bundle:19:in `<main>'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in `eval'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in `<main>'
I did the following and it fixed the issue:
$ source ~/.rvm/scripts/rvm
$ rvm pkg install zlib
$ rvm pkg install openssl
$ sudo apt-get install libreadline-dev
$ rvm pkg install readline
$ rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr
$ gem install rails
Trying to run rake cucumber:ok and am getting this error:
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
Then:
Command failed with status (1): [/Users/dev/.rbenv/versions/1.9.2-p290/bin...]
I am pretty new to Rails and Google didn't turn anything up for this error.
EDIT: I've tried adding bundle exec and that makes no difference.
Here's what I got with --trace:
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/file_utils.rb:45:in `call'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/file_utils.rb:45:in `sh'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/file_utils_ext.rb:36:in `sh'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/rake/task.rb:104:in `run'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/rake/task.rb:193:in `block in define_task'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:205:in `block in execute'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:in `block (2 levels) in top_level'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:in `block in top_level'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:62:in `block in run'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2/bin/rake:32:in `<top (required)>'
/Users/dev/.rbenv/versions/1.9.2-p290/bin/rake:19:in `load'
/Users/dev/.rbenv/versions/1.9.2-p290/bin/rake:19:in `<main>'
Tasks: TOP => cucumber:ok
I started having the same problem this evening. It seems to be related to Rack 1.3.4. I fixed it by adding this to my Gemfile:
gem 'rack', '1.3.3'
Then running:
bundle update rack
Incidentally, I tried Bozhidar's suggestion before this, but to no avail.
Rack 1.3.5 is out now, which has fixed this warning.
you should uninstall rake-0.9.2
and install rack 1.6.13
gem uninstall rake
gem install rack 1.6.13
So, I included:
require 'uri/common'; ::URI.send :remove_const, :WFKV_
however the comment which says "it will work in the Gemfile" in fact should read "Must be in the Gemfile."