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

前端 未结 6 2137
名媛妹妹
名媛妹妹 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:25

    So I was able to fix this by:

    1. Installing libcurl developer version:

      sudo yum install libcurl libcurl-devel

    Once that was complete I ran bundle update which now made it further in the install - to fail at this point Installing pg 0.20.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    1. Running sudo yum install postgresql-devel resolved the pg 0.20.0 issue and I am now able to complete the bundle update and rails seems to be working again.

    2. Rails server had an issue booting after all of this. This command got it working again: bin/rails db:migrate RAILS_ENV=development

    After that the environment and rails all seems to be working fine again.

提交回复
热议问题