Error in installing sequenceserver

Hi all,

Could someone suggest me how to fix the error

shaggysr@DE-101-XXX:~/opt$ sudo gem install sequenceserver
[sudo] password for ```shaggysr: Building native extensions. This could take a while… ERROR: Error installing sequenceserver: ERROR: Failed to build gem native extension.`

current directory: /var/lib/gems/2.3.0/gems/ox-2.4.9/ext/ox
/usr/bin/ruby2.3 -r ./siteconf20170315-20358-cxdnzk.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/ox-2.4.9 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ox-2.4.9/gem_make.out

System details

In my system RVM version 1.29.1 (latest) is installed

Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

--
Thanks

Try installing again after installing ruby-dev apt package.

Thanks Priyam,

Please see:

shaggysr@DE-101-XXX:~/opt$ which sequenceserver
/usr/local/bin/sequenceserver

shaggysr@DE-101-XXX:~/opt$ sequenceserver
/usr/lib/ruby/2.2.0/rubygems/dependency.rb:315:in to_specs': Could not find 'sequenceserver' (>= 0) among 54 total gem(s) (Gem::LoadError) Checked in 'GEM_PATH=/home/shaggysr/.rvm/gems/ruby-2.4.0:/home/shaggysr/.rvm/gems/ruby-2.4.0@global', execute gem envfor more information from /usr/lib/ruby/2.2.0/rubygems/dependency.rb:324:into_spec’
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in gem' from /usr/local/bin/sequenceserver:22:in

Could be Ubuntu 16 changed how rubygems works. But it’s probably rvm not allowing system gems.

Hi Priyam, I tried but there is still problem

gem install sequenceserver
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
Ignoring nio4r-2.0.0 because its extensions are not built. Try: gem pristine nio4r --version 2.0.0
Ignoring nokogiri-1.7.0.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.7.0.1
Ignoring websocket-driver-0.6.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.5
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
Ignoring nio4r-2.0.0 because its extensions are not built. Try: gem pristine nio4r --version 2.0.0
Ignoring nokogiri-1.7.0.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.7.0.1
Ignoring websocket-driver-0.6.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.5
Error loading RubyGems plugin “/home/shaggysr/.rvm/gems/ruby-2.4.0@global/gems/executable-hooks-1.3.2/lib/rubygems_plugin.rb”: cannot load such file – executable-hooks/wrapper (LoadError)
Error loading RubyGems plugin “/home/shaggysr/.rvm/gems/ruby-2.4.0@global/gems/gem-wrappers-1.2.7/lib/rubygems_plugin.rb”: cannot load such file – gem-wrappers (LoadError)
Fetching: slop-3.6.0.gem (100%)
Successfully installed slop-3.6.0
Fetching: ox-2.4.9.gem (100%)
Building native extensions. This could take a while…
Successfully installed ox-2.4.9
Fetching: json_pure-1.8.6.gem (100%)
Successfully installed json_pure-1.8.6
Fetching: rack-1.6.5.gem (100%)
ERROR: While executing gem … (TypeError)
no implicit conversion of nil into String
shaggysr@DE-101-XXX:~/Downloads/ID_mapping$ sequenceserver
/usr/lib/ruby/2.2.0/rubygems/dependency.rb:315:in to_specs': Could not find 'sequenceserver' (>= 0) among 57 total gem(s) (Gem::LoadError) Checked in 'GEM_PATH=/home/guptasr/.rvm/gems/ruby-2.4.0:/home/guptasr/.rvm/gems/ruby-2.4.0@global', execute gem envfor more information from /usr/lib/ruby/2.2.0/rubygems/dependency.rb:324:into_spec’
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in gem' from /usr/local/bin/sequenceserver:22:in

Hmm. sequenceserver gem (and its dependencies) are not even being installed correctly, let alone use it. And it looks like rvm’s fault. I would try without rvm.

We try to ensure that SequenceServer works on: Linux / Mac + package manager / default Ruby (1.8.7 and higher). And that it can optionally be integrated with Apache using Phusion Passenger. If your setup varies from that, there’s little I will be able to help.

ps: I prefer github:postmodern/ruby-install and chruby to manage several Rubies.

Priyam