Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install ruby-head #5097

Closed
dillonwelch opened this issue Jul 7, 2021 · 7 comments · Fixed by #5238
Closed

Can't install ruby-head #5097

dillonwelch opened this issue Jul 7, 2021 · 7 comments · Fixed by #5238
Labels
Milestone

Comments

@dillonwelch
Copy link

Description

When I try to install rvm install ruby-head, I get an error that blocks me from completing the installation.

Steps to reproduce

  1. rvm install ruby-head

Expected behavior

ruby-head installs

Actual behavior

It's possible I'm failing at Google, but the only issue I can find when I google the error I'm seeing relates to erlang/asdf, which doesn't seem correct for this situation. asdf-vm/asdf-erlang#195

All links are to files in the same gist.

Debug mode:

Environment info

ruby-2.5.8:

  system:
    uname:        "Darwin Dillons-MBP 20.5.0 Darwin Kernel Version 20.5.0: Sat May  8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64"
    name:         "OSX"
    version:      "11.4"
    architecture: "x86_64"
    bash:         "/bin/bash => GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20)"
    zsh:          "/bin/zsh => zsh 5.8 (x86_64-apple-darwin20.0)"
    remote_path:  "osx/11.4/x86_64"
    xcode:        "12.5.1"

  rvm:
    version:      "1.29.12 (latest)"
    updated:      "15 hours 3 minutes 34 seconds ago"
    path:         "/Users/dillonwelch/.rvm"
    autolibs:     "[4] Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X)."

  ruby:
    interpreter:  "ruby"
    version:      "2.5.8p224"
    date:         "2020-03-31"
    platform:     "x86_64-darwin19"
    patchlevel:   "2020-03-31 revision 67882"
    full_version: "ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-darwin19]"

  homes:
    gem:          "/Users/dillonwelch/.rvm/gems/ruby-2.5.8"
    ruby:         "/Users/dillonwelch/.rvm/rubies/ruby-2.5.8"

  binaries:
    ruby:         "/Users/dillonwelch/.rvm/rubies/ruby-2.5.8/bin/ruby"
    irb:          "/Users/dillonwelch/.rvm/rubies/ruby-2.5.8/bin/irb"
    gem:          "/Users/dillonwelch/.rvm/rubies/ruby-2.5.8/bin/gem"
    rake:         "/Users/dillonwelch/.rvm/gems/ruby-2.5.8/bin/rake"

  environment:
    PATH:         "/Users/dillonwelch/.rvm/gems/ruby-2.5.8/bin:/Users/dillonwelch/.rvm/gems/ruby-2.5.8@global/bin:/Users/dillonwelch/.rvm/rubies/ruby-2.5.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/dillonwelch/.rvm/bin:/Users/dillonwelch/.rvm/bin"
    GEM_HOME:     "/Users/dillonwelch/.rvm/gems/ruby-2.5.8"
    GEM_PATH:     "/Users/dillonwelch/.rvm/gems/ruby-2.5.8:/Users/dillonwelch/.rvm/gems/ruby-2.5.8@global"
    MY_RUBY_HOME: "/Users/dillonwelch/.rvm/rubies/ruby-2.5.8"
    IRBRC:        "/Users/dillonwelch/.rvm/rubies/ruby-2.5.8/.irbrc"
    RUBYOPT:      ""
    gemset:       ""
@tagliala
Copy link

tagliala commented Oct 1, 2021

Same issue here

  • macOS 11.6
  • Xcode 13.0 Build version 13A233
  • rvm 1.29.12-next (master)

I've tried to downgrade autoconf as described in asdf-vm/asdf-erlang#195 without success

Did you manage to solve this?

@dillonwelch
Copy link
Author

Sadly nope, still have the same issue.

@brian-kephart
Copy link

I'm having the same issue. Like @tagliala, downgrading autoconf did not help.

@brian-kephart
Copy link

Update: This issue persists on MacOS Monterey. However, rvm install 3.1.0-preview1 works as expected.

@brodock
Copy link
Member

brodock commented Jun 7, 2022

confirmed it still doesn't work with ruby-head (3.2.x)

Ruby enVironment Manager 1.29.12-next (master) (c) 2009-2020 Michal Papis, Piotr Kuczynski, Wayne E. Seguin

ruby-3.1.2:

  system:
    uname:        "Darwin REDACTED.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64"
    name:         "OSX"
    version:      "12.4"
    architecture: "arm64"
    bash:         "/bin/bash => GNU bash, version 3.2.57(1)-release (arm64-apple-darwin21)"
    zsh:          "/bin/zsh => zsh 5.8.1 (x86_64-apple-darwin21.0)"
    remote_path:  "osx/12.4/arm64"
    xcode:        "13.4"

  rvm:
    version:      "1.29.12-next (master)"
    updated:      "50 minutes 6 seconds ago"
    path:         "/Users/brodock/.rvm"
    autolibs:     "[4] Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X)."

  ruby:
    interpreter:  "ruby"
    version:      "3.1.2p20"
    date:         "2022-04-12"
    platform:     "arm64-darwin21"
    patchlevel:   "2022-04-12 revision 4491bb740a"
    full_version: "ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]"

  homes:
    gem:          "/Users/brodock/.rvm/gems/ruby-3.1.2"
    ruby:         "not set"

  binaries:
    ruby:         "/Users/brodock/.rvm/rubies/ruby-3.1.2/bin/ruby"
    irb:          "/Users/brodock/.rvm/rubies/ruby-3.1.2/bin/irb"
    gem:          "/Users/brodock/.rvm/rubies/ruby-3.1.2/bin/gem"
    rake:         "/Users/brodock/.rvm/rubies/ruby-3.1.2/bin/rake"

  environment:
    PATH:         "/Users/brodock/.rvm/gems/ruby-3.1.2/bin:/Users/brodock/.rvm/gems/ruby-3.1.2@global/bin:/Users/brodock/.rvm/rubies/ruby-3.1.2/bin:/Users/brodock/.rvm/bin:/Users/brodock/.rd/bin:/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/brodock/.fzf/bin:/usr/local/opt/fzf/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin"
    GEM_HOME:     "/Users/brodock/.rvm/gems/ruby-3.1.2"
    GEM_PATH:     "/Users/brodock/.rvm/gems/ruby-3.1.2:/Users/brodock/.rvm/gems/ruby-3.1.2@global"
    MY_RUBY_HOME: ""
    IRBRC:        ""
    RUBYOPT:      ""
    gemset:       ""

autoreconf:

[2022-06-07 16:01:34] __rvm_autoreconf
__rvm_autoreconf () 
{ 
    \autoreconf "$@" || return $?
}
current path: /Users/brodock/.rvm/src/ruby-head
GEM_HOME=/Users/brodock/.rvm/gems/ruby-3.1.2
PATH=/opt/homebrew/opt/coreutils/bin:/opt/homebrew/opt/pkg-config/bin:/opt/homebrew/opt/libtool/bin:/opt/homebrew/opt/automake/bin:/opt/homebrew/opt/autoconf/bin:/Users/brodock/.rvm/gems/ruby-3.1.2/bin:/Users/brodock/.rvm/gems/ruby-3.1.2@global/bin:/Users/brodock/.rvm/rubies/ruby-3.1.2/bin:/Users/brodock/.rvm/bin:/Users/brodock/.rd/bin:/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/brodock/.fzf/bin:/usr/local/opt/fzf/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin
GEM_PATH=/Users/brodock/.rvm/gems/ruby-3.1.2:/Users/brodock/.rvm/gems/ruby-3.1.2@global
command(1): __rvm_autoreconf
++ autoreconf
configure.ac: error: required file 'config.sub' not found
configure.ac: error: required file 'config.guess' not found
configure.ac:   try running autoreconf --install
++ return 1

@brodock
Copy link
Member

brodock commented Jul 26, 2022

I can build ruby-head locally by running ./configure manually on a cloned ruby repository. Is it fair to assume that autoreconf is not necessary anymore for ruby-head?

@brodock
Copy link
Member

brodock commented Jul 26, 2022

I found a way to build and sent a PR in #5238

@pkuczynski pkuczynski added this to the rvm-1.29.13 milestone Sep 4, 2022
@pkuczynski pkuczynski added the bug label Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants