Skip to content

M1 Mac Trying to run DevContainer, Ruby installation error #1134

@mattkoch-bb

Description

@mattkoch-bb

Hi all, I've been debugging this for the better part of my morning and can't seem to figure it out. Because I'm not able to start the container I can't see the error itself that the logs are telling me to look at (e.g. please read /usr/local/rvm/log/1727803064_ruby-2.7.6/install.log) - any idea on how to do that, or what coiuld be going on here?

I'm on an M1 Mac running Sonoma 14.3, and my devcontainer feature is using this ruby version

    "ghcr.io/devcontainers/features/ruby:1": {
      "version": "2.7.6"
    },

Log output:

30.27 Checking requirements for ubuntu.
30.37 Requirements installation successful.
30.42 Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.7.6, this may take a while depending on your cpu(s)...
30.45 ruby-2.7.6 - #downloading ruby-2.7.6, this may take a while depending on your connection...
30.49   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
30.49                                  Dload  Upload   Total   Spent    Left  Speed
100 14.1M  100 14.1M    0     0  18.4M      0 --:--:-- --:--:-- --:--:-- 18.4M
31.27 No checksum for downloaded archive, recording checksum in user configuration.
31.39 ruby-2.7.6 - #extracting ruby-2.7.6 to /usr/local/rvm/src/ruby-2.7.6.....
33.49 ruby-2.7.6 - #configuring........................................................................
47.96 ruby-2.7.6 - #post-configuration..
47.97 ruby-2.7.6 - #compiling.........................................................................................
165.9 ruby-2.7.6 - #installing.............
167.9 Error running '__rvm_make install',
167.9 please read /usr/local/rvm/log/1727803064_ruby-2.7.6/install.log
167.9 There has been an error while running make install. Halting the installation.
167.9 Failed to install Ruby version 2.7.6. Exiting...
168.1 Fixing group for :rvm - this might take a few long minutes...
168.2 Fixing rights with 'g+w' - this might take a few long minutes...
168.2 Finished fixing.
168.3 install: missing destination file operand after 'rake'
168.3 Try 'install --help' for more information.
168.3 ERROR: Feature "Ruby (via rvm)" (ghcr.io/devcontainers/features/ruby) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/ruby for help troubleshooting this error.
------

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions