Ruby 2.4.2 fails to build on Ubuntu 16.04 #2126
Replies: 21 comments
-
I have the same problem on ubuntu 17.10 for all ruby versions I have tried to install Re-installing rbenv did not seem to help. |
Beta Was this translation helpful? Give feedback.
-
[UPDATE] I succeeded to install Ruby 2.4.2 on the clean installed Ubuntu 16.04 Desktop. It seems that something goes wrong on my working Ubuntu 16.04. I will close this issue after researching just a little bit more. |
Beta Was this translation helpful? Give feedback.
-
I have not detected the root cause of the problem, I found a workaround:
[UPDATE] You also need to install
|
Beta Was this translation helpful? Give feedback.
-
I have the same problem. Apt-Get installed versiion on Ubuntu 17.10 is Ruby Build version: 20161225-1 Next step to is to uninstall + purge rbenv and to sea if Ubuntu supplied Ruby will be sufficient for my needs. |
Beta Was this translation helpful? Give feedback.
-
Purging rbenv and the ~/.rbenv directory and a clean install of rbenv performed. |
Beta Was this translation helpful? Give feedback.
-
@casperl I think your problem is different from mine. I don't encounter with any segmentation faults. My problem is related to linker. |
Beta Was this translation helpful? Give feedback.
-
According to a bug report, you shoud type:
|
Beta Was this translation helpful? Give feedback.
-
@kuroda that worked for me. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Upon the release of Ruby 2.5.0, I tried to build on my Ubuntu 16.04. I got following error messages:
As I did for Ruby 2.4.2, after building the
|
Beta Was this translation helpful? Give feedback.
-
I am also getting the similar error, please could you help me. |
Beta Was this translation helpful? Give feedback.
-
Did you try to install this (below) list of dependency to your Ubuntu system ?: |
Beta Was this translation helpful? Give feedback.
-
As far as I know, (and tested) Ruby versions < 2.4 requires libssl1.0, while >2.4 libssl1.1+. The two libssl packages conflict with each other, so you can't have both of them, so I had to juggle the libs in order to install the required ruby version. To make things even funnier (or more complicated), Ruby <2.4 tends to require
|
Beta Was this translation helpful? Give feedback.
-
I also faced this problem. This resource helped me to solve the problem. |
Beta Was this translation helpful? Give feedback.
-
Can this issue not be closed, as both the After installing
|
Beta Was this translation helpful? Give feedback.
-
Why should it be closed? What's the point of using a tool that works with all ruby envs if you have to dive into the docs for a compile error? At the very least it should check for these dependencies before building and get them or tell you they are missing so you can install them. |
Beta Was this translation helpful? Give feedback.
-
this worked very well. |
Beta Was this translation helpful? Give feedback.
-
saved me installing an older Ruby version for a project I inherited. |
Beta Was this translation helpful? Give feedback.
-
You're an angel! |
Beta Was this translation helpful? Give feedback.
-
This issue was fixed at the first reporter. |
Beta Was this translation helpful? Give feedback.
-
any other solutions? all of them didn't work for me, I'm using ruby-install 2.6.3
|
Beta Was this translation helpful? Give feedback.
-
I've installed the ruby 2.6.6 with help of this blog post on how to compile old openssl separately https://deanpcmad.com/2024/installing-older-ruby-versions-on-ubuntu-24-04-and-22-04/ found via reddit. Since it has no comments functionality I'll leave this here. ISSUE Even though it
The
First I tried to reinstall the ruby with CAUSE After a while I've found that after I followed that blog post few days ago I've moved the "installed openssl" directory to another place but the library appeared to be more dynamic than I though. It has the path hardcoded all over the place. SOLUTION To recompile the openssl after you move it, or move it back, or symlink to old path like I did. |
Beta Was this translation helpful? Give feedback.
-
I have installed Ruby 2.4.1 successfully on my Ubuntu 16.04 Desktop, but failed to build Ruby 2.4.2.
Here are the last lines of error log:
Beta Was this translation helpful? Give feedback.
All reactions