I'm trying to run bundle install for a project and I'm getting this message:
Gem::Ext::BuildError: ERROR: Failed to build gem native
extension.
current directory:
/home/foo/code/user_app/vendor/bundle/ruby/2.3.0/gems/puma-3.12.0/ext/puma_http11
/usr/bin/ruby2.3 -r ./siteconf20220226-27414-ivrdnb.rb
extconf.rb
mkmf.rb can't find header files for ruby at
/usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in
/home/foo/code/user_app/vendor/bundle/ruby/2.3.0/gems/puma-3.12.0
for inspection.
Results logged to
/home/foo/code/user_app/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/puma-3.12.0/gem_make.out
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:92:in `run'
/usr/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:48:in
`block in build'
/usr/lib/ruby/2.3.0/tempfile.rb:295:in `open'
/usr/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:31:in
`build'
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:164:in `block (2
levels) in build_extension'
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:in `chdir'
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:in `block in
build_extension'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:162:in
`build_extension'
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:201:in `block in
build_extensions'
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:in `each'
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:in
`build_extensions'
/usr/lib/ruby/2.3.0/rubygems/installer.rb:770:in
`build_extensions'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/rubygems_gem_installer.rb:71:in
`build_extensions'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/source/rubygems.rb:204:in
`install'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/installer/gem_installer.rb:54:in
`install'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/installer/parallel_installer.rb:186:in
`do_install'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/installer/parallel_installer.rb:177:in
`block in worker_pool'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/worker.rb:62:in
`apply_func'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/worker.rb:57:in
`block in process_queue'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/worker.rb:54:in
`loop'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/worker.rb:54:in
`process_queue'
/var/lib/gems/2.3.0/gems/bundler-2.3.8/lib/bundler/worker.rb:91:in
`block (2 levels) in create_threads'
Any help with resolving this is much appreciated
Related
I downloaded ruby and Jekyll as a gem on a windows machine, now I want to test a site I made, but the Jekyll server opens, and then closes, does anyone has any clue on what I can do to fix this issue. thank you!!
Here is the error
> C:\Users\30697\Downloads
λ jekyll serve
Configuration file: none
Source: C:/Users/30697/Downloads
Destination: C:/Users/30697/Downloads/_site
Incremental build: disabled. Enable with --incremental
Generating...
------------------------------------------------
Jekyll 4.2.1 Please append `--trace` to the `serve` command
for any additional information or backtrace.
------------------------------------------------
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/utils.rb:141:in `initialize': Permission denied # rb_sysopen - C:/Users/30697/Downloads/FirefoxPortable/Data/profile/parent.lock (Errno::EACCES)
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/utils.rb:141:in `open'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/utils.rb:141:in `has_yaml_header?'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:52:in `block in read_directories'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:48:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:48:in `read_directories'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:89:in `block in retrieve_dirs'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:86:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:86:in `retrieve_dirs'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:60:in `read_directories'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:89:in `block in retrieve_dirs'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:86:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:86:in `retrieve_dirs'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:60:in `read_directories'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:89:in `block in retrieve_dirs'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:86:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:86:in `retrieve_dirs'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:60:in `read_directories'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/reader.rb:16:in `read'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/site.rb:181:in `read'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/site.rb:78:in `process'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:28:in `process_site'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/commands/build.rb:65:in `build'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/commands/build.rb:36:in `process'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/exe/jekyll:15:in `<top (required)>'
from C:/Ruby30-x64/bin/jekyll:25:in `load'
from C:/Ruby30-x64/bin/jekyll:25:in `<main>'
C:\Users\30697\Downloads
You are running jekyll serve in the root folder of Downloads. Jekyll will process every subfolder in that folder, which can be anything you have sitting there. Things which probably have nothing to do with Jekyll. This will confuse Jekyll.
To fix this create a subfolder for your Jekyll project, and then run jekyll serve from there.
Example:
> jekyll new mysite
> cd mysite <-- very important!!!
> jekyll serve
Since I run flutter upgrade when I try to run my flutter app I get this error :
[!] An error occurred while processing the post-install hook of the Podfile
undefined method `each_child' for #<Dir:0x00007fcc34ccf6e8>
Did you mean? each_slice
/Users/youcefdahmani/Dev/flutter/packages/flutter_tools/bin/podhelper.rb:54:in `block in flutter_additional_ios_build_settings'
/Users/youcefdahmani/Dev/flutter/packages/flutter_tools/bin/podhelper.rb:51:in `each'
/Users/youcefdahmani/Dev/flutter/packages/flutter_tools/bin/podhelper.rb:51:in `flutter_additional_ios_build_settings'
/Users/youcefdahmani/Work/Projects/MyShop/my_shop_app/ios/Podfile:39:in `block (3 levels) in from_ruby'
/Users/youcefdahmani/Work/Projects/MyShop/my_shop_app/ios/Podfile:38:in `each'
/Users/youcefdahmani/Work/Projects/MyShop/my_shop_app/ios/Podfile:38:in `block (2 levels) in from_ruby'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/podfile.rb:179:in `post_install!'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:897:in `run_podfile_post_install_hook'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:885:in `block in run_podfile_post_install_hooks'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:145:in `message'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:884:in `run_podfile_post_install_hooks'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:329:in `block (2 levels) in create_and_save_projects'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:61:in
`write!'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:328:in `block in create_and_save_projects'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:307:in `create_and_save_projects'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:299:in `generate_pods_project'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:178:in `integrate'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:166:in `install!'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/Users/youcefdahmani/.rbenv/versions/2.5.8/bin/pod:23:in `load'
/Users/youcefdahmani/.rbenv/versions/2.5.8/bin/pod:23:in `<main>'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:899:in `rescue in run_podfile_post_install_hook'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:896:in `run_podfile_post_install_hook'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:885:in `block in run_podfile_post_install_hooks'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:145:in `message'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:884:in `run_podfile_post_install_hooks'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:329:in `block (2 levels) in create_and_save_projects'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:61:in
`write!'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:328:in `block in create_and_save_projects'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:307:in `create_and_save_projects'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:299:in `generate_pods_project'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:178:in `integrate'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:166:in `install!'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/Users/youcefdahmani/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/Users/youcefdahmani/.rbenv/versions/2.5.8/bin/pod:23:in `load'
/Users/youcefdahmani/.rbenv/versions/2.5.8/bin/pod:23:in `<main>'
Error output from CocoaPods:
↳
[!] Automatically assigning platform `iOS` with version `11.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your
Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Error running pod install
Error launching application on iPhone 12 Pro Max.
It seems to be an error linked to my ruby version but when I check my version It the 2.5.8. I try to search an answer to this issue but I found nothing. Please can you help to fix this.
Update your ruby version to at least 2.6.x
Flutter relies on ruby in the background, the each_child command was introduced in ruby since 2.6
I have trouble getting gem to work after updating to 10.10 Yosemite.
Running this (or any other gem install / uninstall):
sudo gem install mysql2psql
And it would always give me the following error:
/Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:159:in `synchronize': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)
ERROR: Failed to build gem native extension.
deadlock; recursive locking
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/mysql-2.9.1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/mysql-2.9.1/gem_make.out
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/mysql-2.9.1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/mysql-2.9.1/gem_make.out
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:159:in `build_extension'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:198:in `block in build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in `each'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in `build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1436:in `block in build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/user_interaction.rb:45:in `use_ui'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1434:in `build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb:60:in `build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/basic_specification.rb:56:in `contains_requirable_file?'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:925:in `block in find_inactive_by_path'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `each'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `find'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `find_inactive_by_path'
from /Library/Ruby/Site/2.0.0/rubygems.rb:185:in `try_activate'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:132:in `rescue in require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from /Library/Ruby/Site/2.0.0/rubygems.rb:601:in `load_yaml'
from /Library/Ruby/Site/2.0.0/rubygems/config_file.rb:328:in `load_file'
from /Library/Ruby/Site/2.0.0/rubygems/config_file.rb:197:in `initialize'
from /Library/Ruby/Site/2.0.0/rubygems.rb:289:in `new'
from /Library/Ruby/Site/2.0.0/rubygems.rb:289:in `configuration'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:63:in `run'
from /Library/Ruby/Site/2.0.0/rubygems/ext/ext_conf_builder.rb:38:in `block in build'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tempfile.rb:324:in `open'
from /Library/Ruby/Site/2.0.0/rubygems/ext/ext_conf_builder.rb:17:in `build'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:161:in `block (2 levels) in build_extension'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:160:in `chdir'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:160:in `block in build_extension'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:159:in `synchronize'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:159:in `build_extension'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:198:in `block in build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in `each'
from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in `build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1436:in `block in build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/user_interaction.rb:45:in `use_ui'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1434:in `build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb:60:in `build_extensions'
from /Library/Ruby/Site/2.0.0/rubygems/basic_specification.rb:56:in `contains_requirable_file?'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:925:in `block in find_inactive_by_path'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `each'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `find'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `find_inactive_by_path'
from /Library/Ruby/Site/2.0.0/rubygems.rb:185:in `try_activate'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:132:in `rescue in require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from /Library/Ruby/Site/2.0.0/rubygems.rb:601:in `load_yaml'
from /Library/Ruby/Site/2.0.0/rubygems/config_file.rb:328:in `load_file'
from /Library/Ruby/Site/2.0.0/rubygems/config_file.rb:197:in `initialize'
from /Library/Ruby/Site/2.0.0/rubygems/gem_runner.rb:74:in `new'
from /Library/Ruby/Site/2.0.0/rubygems/gem_runner.rb:74:in `do_configuration'
from /Library/Ruby/Site/2.0.0/rubygems/gem_runner.rb:39:in `run'
from /usr/bin/gem:21:in `<main>'
Maybe someone can help! Xcode 6 beta installed including command line tools.
Thanks a bunch in advance!
I had the same issue, and solved it by deleting my Gems, and reinstalling:
sudo rm -rf /Library/Ruby/Gems/*;
sudo gem update --system
(as described
here)
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."
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.