Shopify/dashing

Install dashing gem on centos

Opened this issue · 3 comments

Hello,

When I try to install dashing gem on Centos using gem install dashing. I get the following error:-

ERROR:  Error installing dashing:
ERROR: Failed to build gem native extension.

    /usr/bin/ruby1.9 extconf.rb
   mkmf.rb can't find header files for ruby at /usr/share/ruby/include/ruby.h


 Gem files will remain installed in /usr/local/share/gems1.9/gems/eventmachine-1.2.0.1 for inspection.
 Results logged to /usr/local/share/gems1.9/gems/eventmachine-1.2.0.1/ext/gem_make.out
 [root@ip-10-0-107-75 chef]# gem install dashing -v 1.3.4
 Building native extensions.  This could take a while...
 ERROR:  Error installing dashing:
ERROR: Failed to build gem native extension.

    /usr/bin/ruby1.9 extconf.rb
 mkmf.rb can't find header files for ruby at /usr/share/ruby/include/ruby.h


 Gem files will remain installed in /usr/local/share/gems1.9/gems/eventmachine-1.2.0.1 for inspection.

Can dashing run on other linux version besides Ubuntu? If so how can I make dashing install?

Thanks

try installing RVM first and using a newer version of ruby with a fresh gemset

I was able to get it running without using RVM on CentOS with:

sudo yum install ruby-devel

For Ubuntu with the same problem, i used this command:

apt-get install ruby-dev