ruby - Trouble installing compass for sass/scss -


i on mac (yosmite) , in terminal trying install compass can start using sass. run:

sudo gem install compass 

and huge error:

caspars-mbp:~ casparwylie$ sudo gem install compass building native extensions.  take while... error:  error installing compass:     error: failed build gem native extension.      /system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby -r ./siteconf20150401-47466-qqmsir.rb extconf.rb checking ffi.h... *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  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=/system/library/frameworks/ruby.framework/versions/2.0/usr/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}/     --with-libffi-config     --without-libffi-config     --with-pkg-config     --without-pkg-config /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': compiler failed generate executable file. (runtimeerror) have install development tools first.     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:549:in `block in try_compile'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:502:in `with_werror'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:549:in `try_compile'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:1044:in `block in have_header'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:895:in `block in checking_for'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:340:in `block (2 levels) in postpone'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:310:in `open'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:340:in `block in postpone'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:310:in `open'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:336:in `postpone'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:894:in `checking_for'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:1043:in `have_header'     extconf.rb:16:in `<main>'  extconf failed, exit code 1  gem files remain installed in /library/ruby/gems/2.0.0/gems/ffi-1.9.8 inspection. results logged /library/ruby/gems/2.0.0/extensions/universal-darwin-14/2.0.0/ffi-1.9.8/gem_make.out 

does know might going on?

thanks.

not sure how resolve on mac (maybe brew? if possible same way ruby installed), here on linux (xubuntu) got same issue. resolved follows:

$ sudo apt-get install ruby-dev && libffi-dev ... $ sudo gem install ffi building native extensions.  take while... installed ffi-1.9.8 parsing documentation ffi-1.9.8 installing ri documentation ffi-1.9.8 done installing documentation ffi after 0 seconds 1 gem installed 

finishing off compass after this


after quick search mac (ref):

$ brew install pkg-config libffi 

it might not enough, don't have mac atm try out


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -