ruby rvm install 2.7.4运行“__rvm_make -j8”时出错

gcmastyq  于 12个月前  发布在  Ruby
关注(0)|答案(1)|浏览(146)

我很困惑,不明白为什么我的安装失败了。
下面是rvm install 2.7.4 --debug的输出,我认为安装开始失败。

Log file: /Users/ryanhorowitz/.rvm/log/1688419933_ruby-2.7.4/extract.log
[2023-07-03 17:32:36] __rvm_package_extract
__rvm_package_extract () {
    rvm_debug __rvm_package_extract:$#: "$@"
    \typeset __extract_src __extract_target __tempdir __path __file __return
    __extract_src="$1" 
    __extract_target="$2" 
    shift 2
    __return=0 
    __tempdir="$( TMPDIR="${rvm_tmp_path}" mktemp -d -t rvm-tmp.XXXXXXXXX )" 
    __rvm_package_extract_run "$__extract_src" "$__tempdir" "$@" || __return=$? 
    if (( __return == 0 ))
    then
        for __path in "$__tempdir"/*
        do
            __file="${__path##*/}" 
            if [[ -n "${__file}" && -e "$__extract_target/${__file}" ]]
            then
                \command \rm -rf "$__extract_target/${__file}" || __return=$? 
            fi
            \command \mv -f "${__path}" "$__extract_target/" || __return=$? 
        done
    fi
    if [[ -n "$__tempdir" ]]
    then
        \command \rm -rf "$__tempdir"
    fi
    return $__return
}
current path: /Users/ryanhorowitz/.rvm/src
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/ryanhorowitz/.nvm/versions/node/v16.19.0/bin:/usr/local/opt/[email protected]/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/ryanhorowitz/.rvm/bin
GEM_HOME=
GEM_PATH=
command(3): __rvm_package_extract /Users/ryanhorowitz/.rvm/archives/ruby-2.7.4.tar.bz2 /Users/ryanhorowitz/.rvm/tmp/rvm_src_7513
ruby-2.7.4 - #extracting ruby-2.7.4 to /Users/ryanhorowitz/.rvm/src/ruby-2.7.4 - please wait
__rvm_package_extract:2: /Users/ryanhorowitz/.rvm/archives/ruby-2.7.4.tar.bz2 /Users/ryanhorowitz/.rvm/tmp/rvm_src_7513
__rvm_rm_rf already gone: /Users/ryanhorowitz/.rvm/src/ruby-2.7.4
Patch name 'optional', expanded_name(s) ''.
Patch name 'default', expanded_name(s) ''.
Patch name 'osx', expanded_name(s) ''.
All found patches(0): .
Log file: /Users/ryanhorowitz/.rvm/log/1688419933_ruby-2.7.4/configure.log
[2023-07-03 17:32:39] ./configure
current path: /Users/ryanhorowitz/.rvm/src/ruby-2.7.4
PATH=/Users/ryanhorowitz/.rvm/usr/bin:/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/ryanhorowitz/.nvm/versions/node/v16.19.0/bin:/usr/local/opt/[email protected]/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/ryanhorowitz/.rvm/bin
GEM_HOME=
GEM_PATH=
command(6): ./configure --prefix=/Users/ryanhorowitz/.rvm/rubies/ruby-2.7.4  --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/libksba:/usr/local/opt/readline:/usr/local/opt/zlib:/usr/local/opt/[email protected] --disable-install-doc --enable-shared
ruby-2.7.4 - #configuring - please wait
Log file: /Users/ryanhorowitz/.rvm/log/1688419933_ruby-2.7.4/postconfigure.log
[2023-07-03 17:34:11] __rvm_post_configure_ruby
__rvm_post_configure_ruby () {
    __rvm_post_configure_ruby_fix_athlon_sse2
    __rvm_post_configure_ruby_update_setup
}
current path: /Users/ryanhorowitz/.rvm/src/ruby-2.7.4
PATH=/Users/ryanhorowitz/.rvm/usr/bin:/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/ryanhorowitz/.nvm/versions/node/v16.19.0/bin:/usr/local/opt/[email protected]/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/ryanhorowitz/.rvm/bin
GEM_HOME=
GEM_PATH=
command(1): __rvm_post_configure_ruby
ruby-2.7.4 - #post-configuration - please wait
Log file: /Users/ryanhorowitz/.rvm/log/1688419933_ruby-2.7.4/make.log
[2023-07-03 17:34:11] __rvm_make
__rvm_make () {
    \make "$@" || return $?
}
current path: /Users/ryanhorowitz/.rvm/src/ruby-2.7.4
PATH=/Users/ryanhorowitz/.rvm/usr/bin:/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/ryanhorowitz/.nvm/versions/node/v16.19.0/bin:/usr/local/opt/[email protected]/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/ryanhorowitz/.rvm/bin
GEM_HOME=
GEM_PATH=
command(2): __rvm_make -j8
ruby-2.7.4 - #compiling - please wait
Error running '__rvm_make -j8',
please read /Users/ryanhorowitz/.rvm/log/1688419933_ruby-2.7.4/make.log

There has been an error while running make. Halting the installation.
__rvm_rm_rf already gone: /Users/ryanhorowitz/.rvm/tmp/7513*

我用的是M1 Mac。我不确定我还应该包括什么。如果有人能帮助我,我将不胜感激。还有其他代码需要添加吗?please let me know.
非常感谢
我已经尝试重新安装RVM和Homebrew。我试过:

  1. rvm get head && rvm reinstall 2.7.4 --debug
    1.来自此故障排除线程的相同错误rvm issues
  • 右键单击应用程序/实用程序文件夹中的终端,获取信息,勾选“使用Rosetta打开”框。
  • Homebrew /bin/bash -c "$(curl -fsSL ``https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh``)"rm -rf /opt/homebrew/*sudo rm -rf /opt/homebrew
  • Homebrew /bin/bash -c "$(curl -fsSL ``https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh``)"
  • 重启终端
  • 检查Homebrew是否工作正常:brew doctor
  • 重新安装openssl:brew install opensslrvm install 2.7

1.在这个过程中,我还更新了我的xcode
希望安装Ruby 2.7.4

vulvrdjw

vulvrdjw1#

根据你输入的内容。。你用的不是“拱臂64”。我和你有同样的问题:
在OSX Ventura上运行“__rvm_make -j8”RVM安装时出错
如果你有M1芯片,你必须为Homebrew的安装和Ruby的rvm安装做这件事。事实上,你也可以将它用于所有非常见的命令(常见的是“mv”或“cp”或“rm”)。
我没看到你用过的地方。
因此:

arch -arm64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

然后是...

sudo rm -rf /opt/homebrew

然后接着:

arch -arm64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

应该可以
在那之后,它只是一个简单的问题:

arch -arm64 rvm install 2.7.4

相关问题