安装SASSC gem错误的ruby版本时出现AWS Codebuild错误

时间:2018-12-31 04:42:27

标签: ruby-on-rails ruby amazon-web-services aws-codebuild aws-codestar

我正在运行一个Codestar项目。示例应用安装正常。当我使用SASSC添加我的应用程序时,由于Ruby版本而导致失败。有没有通知CodeBuild升级Ruby版本的方法?试图通过buildspec.yml看我在附近吗?尝试谷歌。

在构建日志中间

Installing sassc 2.0.0 with native extensions
 Gem::InstallError: sassc requires Ruby version >= 2.3.3.

在构建日志结尾

An error occurred while installing sassc (2.0.0), and Bundler cannot continue.
Make sure that `gem install sassc -v '2.0.0'` succeeds before bundling.
 [Container] 2018/12/31 04:17:42 Command did not exit successfully bundle install exit status 5
[Container] 2018/12/31 04:17:42 Phase complete: INSTALL Success: false
[Container] 2018/12/31 04:17:42 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: bundle install. Reason: exit status 5

谢谢。

1 个答案:

答案 0 :(得分:0)

我使用Ruby 2.5.3将Codebuild环境从AWS Linux发行版更改为Ubuntu,从而解决了我的问题。除非有人有更好的答案。

相关问题