After installing GLI and running the gli scaffold command gli scaffold to-do new list done
I try to run bin/todo new as per page 26, and I am given the message In development, you need to use `bundle exec bin/todo` to run your app
At install-time, RubyGems will make sure lib, etc. are in the load path
Feel free to remove this message from bin/todo now
Ok, I try it with bundle exec bin/todo and I get:
Could not find gem 'aruba (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
I run bundle install and I get:
Fetching gem metadata from http://rubygems.org/........
Fetching gem metadata from http://rubygems.org/..
Using rake (10.0.2)
Installing ffi (1.2.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/william/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/william/.rvm/rubies/ruby-1.9.2-p320/bin/ruby
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/Users/william/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/william/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:452:in `try_cpp'
from /Users/william/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:834:in `block in have_header'
from /Users/william/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'
from /Users/william/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone'
from /Users/william/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/william/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'
from /Users/william/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/william/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'
from /Users/william/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'
from /Users/william/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:833:in `have_header'
from extconf.rb:14:in `<main>'
Gem files will remain installed in /Users/william/.rvm/gems/ruby-1.9.2-p320/gems/ffi-1.2.0 for inspection.
Results logged to /Users/william/.rvm/gems/ruby-1.9.2-p320/gems/ffi-1.2.0/ext/ffi_c/gem_make.out
An error occurred while installing ffi (1.2.0), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.2.0'` succeeds before bundling.
Running gem install ffi -v '1.2.0' fails with the same errors.
============
Any pointers on how to resolve this issue?
I must say I seem to be spending more time resolving gem issues than in actually learning from your examples… pretty frustrating so far…
Thanks in advance for any help you can offer.
|