Rake "already initialized constant WFKV_" warning - ruby

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."

Related

'Jekyll Serve' Error

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.

ruby - Error with installing bluecloth-2.2.0 gem in Win 7 , ruby 1.9.3

Was following steps described in https://stackoverflow.com/a/13544086/3206440 for resolving error with bluecloth-2.2.0 gem installation in windows 7. Encountered an error in step 4 given in the above link - any ideas?
Console output below.
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\bluecloth-2.2.0>rake gem
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bluecloth-2.2.0/Rakefile:24
: Use RbConfig instead of obsolete and deprecated Config.
Defaulting gemspec to MIT license.
Call license in hoe spec to change.
rake aborted!
Don't know how to build task '.gemtest'
Tasks: TOP => gem => pkg/bluecloth-2.2.0.gem
(See full trace by running task with --trace)
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\bluecloth-2.2.0>rake gem --
trace
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bluecloth-2.2.0/Rakefile:24
: Use RbConfig instead of obsolete and deprecated Config.
Defaulting gemspec to MIT license.
Call license in hoe spec to change.
** Invoke gem (first_time)
** Invoke pkg/bluecloth-2.2.0.gem (first_time)
rake aborted!
Don't know how to build task '.gemtest'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task_m
anager.rb:62:in `[]'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:57:in `lookup_prerequisite'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:53:in `block in prerequisite_tasks'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:53:in `map'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:53:in `prerequisite_tasks'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:199:in `invoke_prerequisites'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:178:in `block in invoke_with_call_chain'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:172:in `invoke_with_call_chain'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:201:in `block in invoke_prerequisites'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:199:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:199:in `invoke_prerequisites'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:178:in `block in invoke_with_call_chain'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:172:in `invoke_with_call_chain'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.r
b:165:in `invoke'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/applic
ation.rb:150:in `invoke_task'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/applic
ation.rb:106:in `block (2 levels) in top_level'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/applic
ation.rb:106:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/applic
ation.rb:106:in `block in top_level'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/applic
ation.rb:115:in `run_with_threads'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/applic
ation.rb:100:in `top_level'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/applic
ation.rb:78:in `block in run'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/applic
ation.rb:176:in `standard_exception_handling'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/lib/rake/applic
ation.rb:75:in `run'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.3.2/bin/rake:33:in
`<top (required)>'
C:/RailsInstaller/Ruby1.9.3/bin/rake:23:in `load'
C:/RailsInstaller/Ruby1.9.3/bin/rake:23:in `<main>'
Tasks: TOP => gem => pkg/bluecloth-2.2.0.gem
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\bluecloth-2.2.0>cd ..
If your using Hoe then be sure to disable some of the plugins. I'm not sure which ones are enabled by default but you could certainly try that first.
Homepage here
I would suggest starting out with the list of them like so:
Hoe.plugins.delete :newb
and then just comment them out as needed.
Please create .gemtest folder in root of project

rake db:schema:migrate error

I am trying to set up this https://github.com/jamesu/tubehub project and get this error.
I also tried all things and googled, but this doesn't help.
root#srv:/var/www/synch# bundle exec rake db:schema:load --trace
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
/var/www/synch/util.rb:8: undefined (?...) sequence: /^(.*?)((?<!&)#|\#)(.*)$/
/var/www/synch/util.rb:9: undefined (?...) sequence: /(?:\#)(?<!&#)(?:\#)*(.*)$/
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/var/www/synch/core.rb:37
/var/www/synch/core.rb:36:in `each'
/var/www/synch/core.rb:36
/var/www/synch/Rakefile:2:in `require'
/var/www/synch/Rakefile:2
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:166:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:152:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:143:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:110:in `run_with_threads'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:95:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:73:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:70:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.3/bin/rake:33
/usr/bin/rake:23:in `load'
/usr/bin/rake:23
Tasks: TOP => db:schema:load => environment
I'm totally noob in ruby; sorry for stupid question.
I just replicated your issue and can confirm it is a ruby version problem. Using 1.8.7-p375 your issue arises. Using Ruby version 1.9.3-p545 the command runs just fine. The project maintainer should specify a ruby version in their project, I will file a github issue for them to clarify this. Other answers have alluded to this; use your favorite method to upgrade your ruby, I suggest rbenv.

Problems building ember.js from master branch

I'm on a macbook pro with OSX 10.7.5 installed, I've tried several times to build ember.js following the the steps on the github page, basically running "rake dist" in the cloned repository. But it does not work. Please find below my console output when I run "rake dist". Since I'm not a ruby expert I wonder if someone can point me in some direction since I don't understand the error that is preventing me to build ember.js.
[ alex#io ][ ~/workspace/ember.js ][ master ]
➜ rake dist --trace
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/rake_module.rb:25: warning: redundant nested repeat operator
** Invoke dist (first_time)
** Execute dist
Building Ember...
rake aborted!
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:142:in `exec_runtime'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:28:in `block in exec'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:41:in `compile_to_tempfile'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:27:in `exec'
/Users/alex/.bundler/ruby/1.9.1/uglifier-2f6c31a67d6d/lib/uglifier.rb:137:in `really_compile'
/Users/alex/.bundler/ruby/1.9.1/uglifier-2f6c31a67d6d/lib/uglifier.rb:74:in `compile'
/Users/alex/.bundler/ruby/1.9.1/uglifier-2f6c31a67d6d/lib/uglifier.rb:47:in `compile'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-web-filters-1a6dc173776b/lib/rake-pipeline-web-filters/uglify_filter.rb:62:in `block in generate_output'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-web-filters-1a6dc173776b/lib/rake-pipeline-web-filters/uglify_filter.rb:58:in `each'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-web-filters-1a6dc173776b/lib/rake-pipeline-web-filters/uglify_filter.rb:58:in `generate_output'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline/filter.rb:218:in `block (3 levels) in generate_rake_tasks'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline/file_wrapper.rb:135:in `create'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline/filter.rb:218:in `block (2 levels) in generate_rake_tasks'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:228:in `call'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:228:in `block in execute'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:223:in `each'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:223:in `execute'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:166:in `block in invoke_with_call_chain'
/Users/alex/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:159:in `invoke_with_call_chain'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline/dynamic_file_task.rb:154:in `invoke_with_call_chain'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:152:in `invoke'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline/dynamic_file_task.rb:60:in `invoke'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline.rb:328:in `block (2 levels) in invoke'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline.rb:328:in `each'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline.rb:328:in `block in invoke'
:10:in `synchronize'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline.rb:321:in `invoke'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline/project.rb:126:in `each'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline/project.rb:126:in `block in invoke'
:10:in `synchronize'
/Users/alex/.bundler/ruby/1.9.1/rake-pipeline-50b8d77b703c/lib/rake-pipeline/project.rb:112:in `invoke'
/Users/alex/workspace/ember.js/Rakefile:43:in `block in '
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:228:in `call'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:228:in `block in execute'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:223:in `each'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:223:in `execute'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:166:in `block in invoke_with_call_chain'
/Users/alex/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:159:in `invoke_with_call_chain'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/task.rb:152:in `invoke'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/application.rb:143:in `invoke_task'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/application.rb:101:in `each'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/application.rb:101:in `block in top_level'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/application.rb:110:in `run_with_threads'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/application.rb:95:in `top_level'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/application.rb:73:in `block in run'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/lib/rake/application.rb:70:in `run'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/gems/rake-0.9.6/bin/rake:37:in `'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/bin/rake:19:in `load'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/bin/rake:19:in `'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `eval'
/Users/alex/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `'
Tasks: TOP => /Users/alex/workspace/ember.js/tmp/rake-pipeline-7aa53b2ead15d9e299f5cd1196d85943d735c070/rake-pipeline-3-tmp-7/ember-runtime.min.js
and here is the output when I run bundle install inside the root directory of the repo at the master branch
➜ bundle install
Using rake (0.9.6)
Using colored (1.2)
Using multi_json (1.3.7)
Using execjs (1.4.0)
Using multipart-post (1.1.5)
Using faraday (0.8.4)
Using hashie (1.2.0)
Using nokogiri (1.5.5)
Using httpauth (0.2.0)
Using jwt (0.1.5)
Using rack (1.4.1)
Using oauth2 (0.8.0)
Using github_api (0.8.1)
Using mime-types (1.19)
Using rest-client (1.6.7)
Using github_downloads (0.1.3) from https://github.com/pangratz/github_downloads.git (at master)
Using json (1.7.6)
Using listen (0.6.0)
Using kicker (2.6.1)
Using thor (0.16.0)
Using rake-pipeline (0.8.0) from https://github.com/livingsocial/rake-pipeline.git (at master)
Using rake-pipeline-web-filters (0.6.0) from https://github.com/wycats/rake-pipeline-web-filters.git (at master)
Using uglifier (1.3.0) from https://github.com/lautis/uglifier.git (at master)
Using bundler (1.2.3)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Thanks in advance,
Alex
Do you have nodejs installed?
From docs ...
If you are building under Linux, you will need a JavaScript runtime for minification. You can either install nodejs or gem install therubyracer.
Assume it might be the same for Mac
I got it working:
export RUBYOPT='-E utf-8'
did the trick.
I'm going to close the question.

Error when installing "ya2yaml" gem on Windows7, Ruby1.9.2, Rails3

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.

Resources