Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Initial setup issue in Bundle install #70

Closed
tibbon opened this Issue Jan 28, 2012 · 6 comments

Comments

Projects
None yet
6 participants

tibbon commented Jan 28, 2012

After running the initial 'suspenders foo'

Installing capybara (1.1.2)
Installing capybara-webkit (0.7.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /Users/tibbon/.rbenv/versions/1.9.2-p290/bin/ruby extconf.rb 

Gem files will remain installed in /Users/tibbon/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.7.2 for inspection.
Results logged to /Users/tibbon/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.7.2/./gem_make.out
An error occured while installing capybara-webkit (0.7.2), and Bundler cannot continue.
Make sure that gem install capybara-webkit -v '0.7.2' succeeds before bundling.
Configuring app
insert config/application.rb
insert config/environments/development.rb
insert config/environments/test.rb
insert config/environments/staging.rb
insert config/environments/production.rb
generate rspec:install
Could not find gem 'sprockets-redirect (>= 0) ruby' in any of the gem sources listed in your Gemfile.
Run bundle install to install missing gems.
/Users/tibbon/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/suspenders-0.3.2/lib/suspenders/actions.rb:10:in read': No such file or directory - /Users/tibbon/Code/artistparty/spec/spec_helper.rb (Errno::ENOENT) from /Users/tibbon/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/suspenders-0.3.2/lib/suspenders/actions.rb:10:inreplace_in_file'
from /Users/tibbon/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/suspenders-0.3.2/lib/suspenders/app_builder.rb:83:in generate_rspec' from /Users/tibbon/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/generators/app_base.rb:96:inbuild'
from /Users/tibbon/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/suspenders-0.3.2/lib/suspenders/generators/app_generator.rb:96:in configure_app' from /Users/tibbon/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/task.rb:22:inrun'

I have the exact same issue.

tibbon commented Feb 13, 2012

I just came back to this.

As per the output, I attempted the following:

dhcp-128-146-210-218:prey tibbon$ gem install capybara-webkit -v '0.7.2'
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.

    /Users/tibbon/.rbenv/versions/1.9.2-p290/bin/ruby extconf.rb

Gem files will remain installed in /Users/tibbon/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.7.2 for inspection.
Results logged to /Users/tibbon/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.7.2/./gem_make.out

Also had the same problem, this is my first time with Suspenders.
I searched around and it seemed the problem might be not having g++ on my os. Tried a bunch of things like installing some helper programs, changing paths and whatnot, but still had no luck.

Eventually I just altered the Gemfile to exclude capybara-webkit. That allowed the rest of the bundle to install properly, but I'm not sure what I should do from here.
The app is in a half-created state, and the Suspenders info said that it was only for creating new apps. Not sure if you just need to run Suspenders again, or at this point run "rails new App".

Are there docs on this?

Owner

mjankowski commented Apr 6, 2012

We made a change recently which changes the order of when bundle install is run, such that some gem build issues should be resolved. I don't think it fully resolves the capybara-webkit issue, which sounds like it could be solved with a doc fix.

Owner

drapergeek commented Jul 13, 2012

Should this be moved to an issue with Capybara-webkit instead of here since it seems like that is the underlying issue?

Contributor

croaky commented Aug 3, 2012

This looks like an issue of folks not having QT installed properly on their machine.

I'm proposing on a separate ticket that we add a capybara-webkit flag, turned on by default, but which can be set to false, to ease installation and reduce dependencies.

#92

@croaky croaky closed this Aug 3, 2012

EdinaVath pushed a commit to EdinaVath/suspenders that referenced this issue Dec 25, 2013

[#92] Add --webkit flag
By default, Capybara Webkit will be installed. However, Some folks don't
want/need it, and having QT as a dependency of Suspenders drastically
raises the bar in terms of ease of installation. See:

thoughtbot/suspenders#70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment