this ubuntu version brings ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
. so all i did to install was the normal process which is gem install compass
but this installation throws this error:
Building native extensions. This could take a while...
ERROR: Error installing compass:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.14/ext/ffi_c
/usr/bin/ruby2.3 -r ./siteconf20160907-12074-v2oz2d.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.3.0/gems/ffi-1.9.14 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.14/gem_make.out
i tried with installing ruby-dev
with the command apt get install ruby-dev
as root but it is not available on this ubuntu for some reason, it throws this error:
Package ruby-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'ruby-dev' has no installation candidate
gem
and notapt
? Disclaimer: not familiar with Ruby, just a hard core Ubuntu user.. – Sujeet Sinha Sep 7 '16 at 8:43