Rails broken - bundle not working - ovirt-engine-sdk - ERROR: Failed to build gem native extension. Cloud9 AWS

前端 未结 6 2146
名媛妹妹
名媛妹妹 2021-02-10 08:28

I am working through the Ruby on Rails Tutorial (Rails5) by Michael Hartl in the AWS Cloud9 environment. I\'m finishing chapter 11 now. (new to programming as well)

It a

6条回答
  •  鱼传尺愫
    2021-02-10 09:08

    I ran into a similar issue:

    In Gemfile:
      fog was resolved to 2.1.0, which depends on
        fog-ovirt was resolved to 1.1.6, which depends on
          ovirt-engine-sdk
    

    ovirt 4.3.0 threw the following error:

    Fetching ovirt-engine-sdk 4.3.0
    Installing ovirt-engine-sdk 4.3.0 with native extensions
    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    
        current directory: /usr/local/rvm/gems/ruby-2.4.1/gems/ovirt-engine-sdk-4.3.0/ext/ovirtsdk4c
    /usr/local/rvm/rubies/ruby-2.4.1/bin/ruby -r ./siteconf20190508-5580-eyxazz.rb extconf.rb
    checking for xml2-config... no
    *** extconf.rb failed ***
    

    I was then able to bundle install successfully after running:

    sudo yum install libxml2 libxml2-devel
    

    HOWEVER, sudo yum install libxml2 libxml2-dev was not successful

提交回复
热议问题