سعي*_*عيد 2 macos homebrew v8 macos-big-sur apple-m1
我使用的命令:arch -arm64 brew install v8@3.15
这里是我收到的错误:
Error: v8@3.15: no bottle available!
You can try to install from source with:
brew install --build-from-source v8@3.15
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
Run Code Online (Sandbox Code Playgroud)
小智 12
这是因为你还没有安装brew with 选项arch -arm64
。
如果您按照以下步骤进行操作,它应该可以工作:
$ arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Run Code Online (Sandbox Code Playgroud)
将其附加到您的 .bashrc 或 .zshrc 并获取它:
alias ibrew="arch -x86_64 brew"
export PATH="/usr/local/homebrew/bin:$PATH"
Run Code Online (Sandbox Code Playgroud)
安装libv8:
$ ibrew install v8@3.15
Run Code Online (Sandbox Code Playgroud)
安装 ruby(可能是常见情况):
$ ibrew install rbenv
$ arch -x86_64 rbenv install <ruby_version>
$ arch -x86_64 rbenv global <ruby_version>
Run Code Online (Sandbox Code Playgroud)
将其附加到您的 .bashrc 或 .zshrc 并获取它:
eval "$(rbenv init -)"
Run Code Online (Sandbox Code Playgroud)
修复libv8问题:
$ gem install libv8 -v '<your version>' -- --with-system-v8
$ gem install therubyracer -v '<your version>' -- --with-v8-dir=$(ibrew --prefix v8@3.15)
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
8970 次 |
最近记录: |