ruby-build 2.7.1 ...
installs 2.7.0p0 instead
#1847
Replies: 7 comments
-
I've also tried manually unzipping the file https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.bz2 and compiling it, which gives me the correct version of Ruby:
I could install this manually as well, but I'd prefer to get it working with a version manager if I can. |
Beta Was this translation helpful? Give feedback.
-
I can also reproduce, or, compiling 2.7.1 from scratch installs a bunch of files to "2.7.0" in DESTDIR which seems bizarre.
Build log output:
|
Beta Was this translation helpful? Give feedback.
-
This is the contents of
|
Beta Was this translation helpful? Give feedback.
-
@kevinburkemeter It's the expected behavior. Ruby API version is different from Ruby version. |
Beta Was this translation helpful? Give feedback.
-
@isikyus You might be running into a similar problem I described over here: #1387 (comment) You're not running (Linux)Homebrew, but Ubuntu 14.04 or something else in your build environment might be doing something similar.
If that was on same system it really sounds like ruby-build defaulting to --enable-shared and your by-hand compile not passing --enable-shared to ./configure. I can confirm for you that if you put a 2.7.0 libruby.so.2.7 in the load path of a --enable-shared 2.7.1 ruby binary, |
Beta Was this translation helpful? Give feedback.
-
This seems very likely; I am in fact running Homebrew on Linux — I'm not sure how I missed mentioning that earlier. The rpath does seem to be correct:
I can't immediately see any overridden LD variables in my environment, but it's possible they're coming from somewhere else; I'll have to look into this in more detail and get back to you.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I originally raised this with asdf (asdf-vm/asdf-ruby#161), which uses ruby-build, but I can reproduce the issue without involving asdf so I'm raising it here instead.
I'm trying to install ruby 2.7.1 on Ubuntu 14.04 (legacy apps :-( ), but the Ruby that gets installed seems to be 2.7.0.
What I did:
What I expected:
A Ruby 2.7.1 version string, like
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
Beta Was this translation helpful? Give feedback.
All reactions