Bug 975135 - Cannot bundle install, due to libyaml not being picked up
Cannot bundle install, due to libyaml not being picked up
Product: Fedora
Classification: Fedora
Component: rubygem-bundler (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Vít Ondruch
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-06-17 12:50 EDT by Nick Harvey
Modified: 2013-06-17 14:07 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-06-17 14:07:10 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nick Harvey 2013-06-17 12:50:31 EDT
Description of problem: I get the following error when running 'bundle install'

Using libv8 ( from https://github.com/cowboyd/libv8.git (at master) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb 
creating Makefile
/usr/share/ruby/yaml.rb:6:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:110:in `require': cannot load such file -- psych.so (LoadError)
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:35:in `require'
	from /usr/share/gems/gems/psych-2.0.0/lib/psych.rb:1:in `<top (required)>'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:110:in `require'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:35:in `require'
	from /usr/share/ruby/yaml.rb:7:in `<top (required)>'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:45:in `require'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:45:in `require'
	from /home/Nick/.gem/ruby/bundler/gems/libv8-6054e0fac780/ext/libv8/location.rb:1:in `<top (required)>'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:45:in `require'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:45:in `require'
	from extconf.rb:4:in `<main>'

Gem files will remain installed in /home/Nick/.gem/ruby/bundler/gems/libv8-6054e0fac780 for inspection.
Results logged to /home/Nick/.gem/ruby/bundler/gems/libv8-6054e0fac780/ext/libv8/gem_make.out

An error occurred while installing libv8 (, and Bundler cannot continue.
Make sure that `gem install libv8 -v ''` succeeds before bundling.

Version-Release number of selected component (if applicable):

How reproducible: always

Steps to Reproduce:
1.cd into rails git repo
2. run 'bundle install'

Actual results: Bundle will fail regardless of pacakges isntalled

Expected results: bundle should complete

Additional info:

I've installed libtool and libyaml and their devel packages. I've also installed rvm and ran: 

rvm pkg install libyaml
rvm reinstall 2.0

and no success

I also tried grabbing the upstream source for libyaml and compiling it locally but that didn't work either.
Comment 1 Nick Harvey 2013-06-17 14:07:10 EDT
added the following to my gemfile outside of my groups assets section

gem 'psych'

Note You need to log in before you can comment on or make changes to this bug.