安装 SASSC gem 错误 ruby 版本时出现 AWS Codebuild 错误
AWS Codebuild error while installing SASSC gem wrong ruby version
我是 运行 Codestar 项目。示例应用程序安装正常。当我使用 SASSC 添加我的应用程序时失败,因为 Ruby 版本。有没有通知CodeBuild升级Ruby版本?试着浏览 buildspec.yml 我离得近吗?试图 google.
在构建日志中间
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
谢谢。
我将 Codebuild 环境从 AWS Linux 发行版更改为 Ubuntu 和 Ruby 2.5.3,这解决了我的问题。除非有人有更好的答案。
我是 运行 Codestar 项目。示例应用程序安装正常。当我使用 SASSC 添加我的应用程序时失败,因为 Ruby 版本。有没有通知CodeBuild升级Ruby版本?试着浏览 buildspec.yml 我离得近吗?试图 google.
在构建日志中间
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
谢谢。
我将 Codebuild 环境从 AWS Linux 发行版更改为 Ubuntu 和 Ruby 2.5.3,这解决了我的问题。除非有人有更好的答案。