Skip to content

Unable to install Ruby 3.3 #7575

Answered by jish
jish asked this question in Q&A
Apr 13, 2024 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

I found the issue. I had to remove curly braces and commas from my ~/.gemrc.

# ~/.gemrc
---
 :sources:
 - https://rubygems.org/
 - s3://my-gems/
-s3_source: {
-  my-gems: {
-    id: "abc123",
+s3_source:
+  my-gems:
+    id: "abc123"
     region: "us-west-2"
-  }
-}

My co-worker had given me a block of code to paste into my ~/.gemrc. This block of code had curly braces ({}) and commas (,) in it. The file looks and acts a lot like a YAML file so it seemed reasonable to do so.

However, it appears that the rubybems/rubygems project has a custom YAML parser that has slightly different semantics than a real YAML parser:

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@deivid-rodriguez
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants