Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A Installing Ruby on MacOS 12.2 (or 11.6) produces compilation errors in the downloaded source; how do I fix?

Wait a minute I think you missed something, yesterday when I read your message in Discord I thought you were unable to install RVM which were producing that error. But this question clears my confu...

posted 3y ago by Anonymous‭

Answer
#1: Initial revision by user avatar Anonymous‭ · 2021-11-25T06:42:19Z (almost 3 years ago)
Wait a minute I think you missed something, yesterday when I read your message in Discord I thought you were unable to install RVM which were producing that error. But this question clears my confusion. You were executing `rvm install "ruby-2.6.6"` but that's not what we used to do. 

I had written the same answer in another question of "mine". [here it is](https://linux.codidact.com/posts/282548/282557#answer-282557) (I had mentioned it in Discord either) (I don't have any idea if it's really good to link my old answer which account I had deleted, if it's bad purpose then you can edit or suggest edit). You should have execute

```bash
rvm install 2.6.6    #this will install 2.6.6 version of Ruby
rvm use 2.6.6        #you must execute it otherwise you will keep using earlier version (whichever you had in your system)
```

Sometimes, they don't work without being super user. So I used to use `sudo` but it sometimes doesn't work also. For that reason you should execute

```bash
/bin/bash --login       #I don't have idea, if the command really works in Mac
```

`/bin/bash --login` is nearly related to `su -`.