Closed myronmarston closed 11 years ago
Based on the output complaining about xcode-select, it sounds like you have an interesting OS X build environment issue. Have you tried running the command as requested by the log?
It looks like when you run bundler, it's using the Mac OS X system Ruby (/usr/bin/ruby
) but when using gem
it is using a Ruby 1.8.7 installed in ~/.rubies
.
When building native extensions for the system Ruby, you need to have the full XCode installed: just the command-line tools alone don't work.
I'd bet that the problem is that Bundler itself is installed as gem under the system Ruby, rather than the one in ~/.rubies
.
Thanks @TimMoore -- it looks like that was the problem. Not sure how I got in that state but I reinstalled my 1.8.7 and now it works.
Trying to install the bundle for VCR on 1.8.7 (so I can troubleshoot a travis build failure), I'm getting weird behavior where
bundle install
repeatedly fails to build any native extension, butgem install
builds it just fine. My shell output is below.Any ideas?