{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/442","repository_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager","labels_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/442/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/442/comments","events_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/442/events","html_url":"https://github.com/projectatomic/vagrant-service-manager/issues/442","id":191719567,"number":442,"title":"Installation fails on RHEL 7","user":{"login":"agajdosi","id":22000268,"avatar_url":"https://avatars.githubusercontent.com/u/22000268?v=3","gravatar_id":"","url":"https://api.github.com/users/agajdosi","html_url":"https://github.com/agajdosi","followers_url":"https://api.github.com/users/agajdosi/followers","following_url":"https://api.github.com/users/agajdosi/following{/other_user}","gists_url":"https://api.github.com/users/agajdosi/gists{/gist_id}","starred_url":"https://api.github.com/users/agajdosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agajdosi/subscriptions","organizations_url":"https://api.github.com/users/agajdosi/orgs","repos_url":"https://api.github.com/users/agajdosi/repos","events_url":"https://api.github.com/users/agajdosi/events{/privacy}","received_events_url":"https://api.github.com/users/agajdosi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-25T15:03:00Z","updated_at":"2016-11-30T10:04:30Z","closed_at":null,"body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository.\r\nFor more information about reporting issues, see\r\nhttps://github.com/budhrg/vagrant-service-manager/blob/master/CONTRIBUTING.adoc#submitting-issues.\r\n-->\r\n\r\n**OS details:**\r\nRHEL 7.3 workstation\r\n\r\n**Provider:**\r\nLibvirt\r\n\r\n**Output of `vagrant -v`:**\r\n```\r\nVagrant 1.8.1\r\n```\r\n\r\n**Output of `vagrant plugin list`:**\r\n```\r\nvagrant-libvirt (0.0.32, system)\r\n```\r\n\r\n**Output of `vagrant service-manager box version`:**\r\n```\r\nxxx\r\n```\r\n\r\n**Steps to reproduce the issue:**\r\n1. vagrant plugin install vagrant-service-manager\r\n2. get error\r\n\r\n**Describe the results you received:**\r\n```\r\nBundler, the underlying system Vagrant uses to install plugins,\r\nreported an error. The error is shown below. These errors are usually\r\ncaused by misconfigured plugin installations or transient network\r\nissues. The error from Bundler is:\r\n\r\nAn error occurred while installing ffi (1.9.14), and Bundler cannot continue.\r\nMake sure that `gem install ffi -v '1.9.14'` succeeds before bundling.\r\n\r\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\r\n\r\n    /opt/rh/rh-ruby22/root/usr/bin/ruby -r ./siteconf20161125-4674-djag84.rb extconf.rb \r\nmkmf.rb can't find header files for ruby at /opt/rh/rh-ruby22/root/usr/share/include/ruby.h\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /home/agajdosi/.vagrant.d/gems/gems/ffi-1.9.14 for inspection.\r\nResults logged to /home/agajdosi/.vagrant.d/gems/extensions/x86_64-linux/ffi-1.9.14/gem_make.out\r\n```\r\nGem install ffi without sudo gives:\r\n```\r\n[agajdosi@localhost cdk]$ gem install ffi -v '1.9.14'\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing ffi:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    /opt/rh/rh-ruby22/root/usr/bin/ruby -r ./siteconf20161125-5023-wu4gae.rb extconf.rb\r\nmkmf.rb can't find header files for ruby at /opt/rh/rh-ruby22/root/usr/share/include/ruby.h\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /home/agajdosi/.gem/ruby/gems/ffi-1.9.14 for inspection.\r\nResults logged to /home/agajdosi/.gem/ruby/extensions/x86_64-linux/ffi-1.9.14/gem_make.out\r\n```\r\nWith sudo it runs fine:\r\n```\r\n[agajdosi@localhost cdk]$ sudo gem install ffi -v '1.9.14'\r\n[sudo] password for agajdosi: \r\nBuilding native extensions.  This could take a while...\r\nSuccessfully installed ffi-1.9.14\r\nParsing documentation for ffi-1.9.14\r\n1 gem installed\r\n```\r\nInstalled packages are: libffi-devel, ruby-devel, rubygem-gssapi, rubygem-openscap, rubygem-ffi, libffi, gcc, @\"Development Tools\"\r\nRuby version: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]\r\n \r\n**Describe the results you expected:**\r\nPlugin installed.\r\n"},"comment":{"url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/comments/263833035","html_url":"https://github.com/projectatomic/vagrant-service-manager/issues/442#issuecomment-263833035","issue_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/442","id":263833035,"user":{"login":"budhrg","id":1132451,"avatar_url":"https://avatars.githubusercontent.com/u/1132451?v=3","gravatar_id":"","url":"https://api.github.com/users/budhrg","html_url":"https://github.com/budhrg","followers_url":"https://api.github.com/users/budhrg/followers","following_url":"https://api.github.com/users/budhrg/following{/other_user}","gists_url":"https://api.github.com/users/budhrg/gists{/gist_id}","starred_url":"https://api.github.com/users/budhrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/budhrg/subscriptions","organizations_url":"https://api.github.com/users/budhrg/orgs","repos_url":"https://api.github.com/users/budhrg/repos","events_url":"https://api.github.com/users/budhrg/events{/privacy}","received_events_url":"https://api.github.com/users/budhrg/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T10:04:30Z","updated_at":"2016-11-30T10:04:30Z","body":"This is what I got after debugging it\r\n\r\nI was unable to install \"vagrant-service-manager\" plugin initially. \r\n\r\nIn my case, I found that package \"rh-ruby22-ruby-devel\" was missing. After installing it, plugin installation was working fine. However, there are other packages are also needed to make it work.\r\n\r\n\r\n```\r\nFollowing is the series of operations I performed to get my plugin installation worked.\r\n{code}\r\n[agajdosi@dhcp-24-185 ~]$ which vagrant\r\n/usr/bin/which: no vagrant in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/agajdosi/.local/bin:/home/agajdosi/bin)\r\n\r\n[agajdosi@dhcp-24-185 ~]$ vagrant -v\r\nbash: vagrant: command not found...\r\n\r\n# Need to enable vagrant somehow as\r\n[agajdosi@dhcp-24-185 ~]$ sudo scl enable sclo-vagrant1 bash\r\n[sudo] password for agajdosi: \r\n\r\n[root@dhcp-24-185 agajdosi]# vagrant -v\r\nVagrant 1.8.1\r\n\r\n[root@dhcp-24-185 agajdosi]# which vagrant\r\n/opt/rh/sclo-vagrant1/root/usr/bin/vagrant\r\n\r\n[root@dhcp-24-185 agajdosi]# ruby -v\r\nruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]\r\n\r\n[root@dhcp-24-185 agajdosi]# vagrant plugin list\r\nvagrant-libvirt (0.0.32, system)\r\n\r\n[root@dhcp-24-185 agajdosi]# vagrant plugin install vagrant-service-manager\r\nInstalling the 'vagrant-service-manager' plugin. This can take a few minutes...\r\nBundler, the underlying system Vagrant uses to install plugins,\r\nreported an error. The error is shown below. These errors are usually\r\ncaused by misconfigured plugin installations or transient network\r\nissues. The error from Bundler is:\r\n\r\nAn error occurred while installing ffi (1.9.14), and Bundler cannot continue.\r\nMake sure that `gem install ffi -v '1.9.14'` succeeds before bundling.\r\n\r\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\r\n\r\n    /opt/rh/rh-ruby22/root/usr/bin/ruby -r ./siteconf20161128-17058-tc23l8.rb extconf.rb \r\nmkmf.rb can't find header files for ruby at /opt/rh/rh-ruby22/root/usr/share/include/ruby.h\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /root/.vagrant.d/gems/gems/ffi-1.9.14 for inspection.\r\nResults logged to /root/.vagrant.d/gems/extensions/x86_64-linux/ffi-1.9.14/gem_make.out\r\n\r\n\r\n\r\n[root@dhcp-24-185 agajdosi]# sudo yum  install libvirt-devel\r\n.........\r\nInstalled:\r\n  libvirt-devel.x86_64 0:2.0.0-10.el7                                                                                                                        \r\nComplete!\r\n\r\n[root@dhcp-24-185 agajdosi]# sudo yum install @'Development Tools'\r\nLoaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager\r\nNothing to do\r\n\r\n[root@dhcp-24-185 agajdosi]# sudo yum install rpm-build zlib-devel ruby-devel gcc-c++\r\nLoaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager\r\nPackage rpm-build-4.11.3-21.el7.x86_64 already installed and latest version\r\nPackage zlib-devel-1.2.7-17.el7.x86_64 already installed and latest version\r\nPackage ruby-devel-2.0.0.648-29.el7.x86_64 already installed and latest version\r\nPackage gcc-c++-4.8.5-11.el7.x86_64 already installed and latest version\r\nNothing to do\r\n\r\n[root@dhcp-24-185 agajdosi]# sudo yum -y install rh-ruby22-ruby-devel\r\n..............\r\nInstalled:\r\n  rh-ruby22-ruby-devel.x86_64 0:2.2.2-16.el7                                                                                                                  \r\nComplete!\r\n\r\n[root@dhcp-24-185 agajdosi]# vagrant plugin install vagrant-service-manager\r\nInstalling the 'vagrant-service-manager' plugin. This can take a few minutes...\r\nInstalled the plugin 'vagrant-service-manager (1.4.1)'!\r\n\r\n[root@dhcp-24-185 agajdosi]# vagrant plugin install vagrant-registration vagrant-sshfs\r\nInstalling the 'vagrant-registration' plugin. This can take a few minutes...\r\nInstalled the plugin 'vagrant-registration (1.3.1)'!\r\nInstalling the 'vagrant-sshfs' plugin. This can take a few minutes...\r\nInstalled the plugin 'vagrant-sshfs (1.3.0)'!\r\n\r\n[root@dhcp-24-185 agajdosi]# vagrant plugin list\r\nvagrant-libvirt (0.0.36, system)\r\nvagrant-registration (1.3.1)\r\nvagrant-service-manager (1.4.1)\r\nvagrant-sshfs (1.3.0)\r\n{code}\r\n```"}}
{"actor":{"display_login":"budhrg"}}