rbenv install 3.3.4 stuck at compile localeinit.c #2475
-
Hi, I'm trying to install ruby 3.3.4 on Ubuntu EC2 (Ubuntu 24.04) instance, however it keeps getting stuck at Any idea what could be wrong? I am extremely new to this, sorry in advance if I didn't attach something important. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi, sorry, but I have not heard of this issue before. Normally people on this discussion board are generally unable to help unless you attach a full build log, but the log file location will only get printed if the compilation encountered an error. If I understand what you are describing, your compilation process gets stuck after printing "compile localeinit.c" and does not progress from that point, nor does it print anything else until you abort the process. I can not imagine what could cause this, apart from running out of either disk space or RAM on your instance, both of which are unlikely but worth checking. BTW, ruby-build log files can be discovered using the command Make sure you prepared your Ubuntu build environment correctly using the instructions on our wiki. You could also try compiling a slightly newer patch version of Ruby 3.3, which is |
Beta Was this translation helpful? Give feedback.
-
Hi, I kinda circumvented the problem, by installing it via ruby Also, tried installing it again, this time it got stuck on a different compile (don't remember) - and since the instance is t3.micro (1GB RAM), running out of memory is plausible. |
Beta Was this translation helpful? Give feedback.
Ah, 1GB RAM indeed sounds very low. You could try to spin up an instance with either 2 or 4GB and see if that solves it. You could even spin up a temporary instance just to compile Ruby and then move the compiled product to an instance that has less RAM.
Installing a pre-built Ruby with your package manager is a good solution for when you just want to install Ruby without problems and when it doesn't matter that you don't get the latest released Ruby version.