我已经在Windows 10上安装了Ubuntu
https://www.microsoft.com/sv-se/p/ubuntu/9nblggh4msv6?rtc=1&activetab=pivot:overviewtab
然后按照此说明设置Linux Brew:
https://bangladroid.wordpress.com/2017/09/26/install-homebrew-in-ubuntu/
一切似乎都有效,因为我测试了以下命令:
$ which brew
/home/xxxxxx/.linuxbrew/bin/brew
但是当我开始使用Brew安装时,我总是遇到以下错误:
Error: cannot load such file -- os/linux/glibc
Please report this bug:
https://github.com/Linuxbrew/linuxbrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/home/xxxxxx/.linuxbrew/Library/Taps/homebrew/homebrew-core/Formula/glibc.rb:1:in `load_formula'
/home/xxxxxx/.linuxbrew/Library/Homebrew/formulary.rb:21:in `module_eval'
/home/xxxxxx/.linuxbrew/Library/Homebrew/formulary.rb:21:in `load_formula'
/home/xxxxxx/.linuxbrew/Library/Homebrew/formulary.rb:34:in `load_formula_from_path'
/home/xxxxxx/.linuxbrew/Library/Homebrew/formulary.rb:83:in `load_file'
/home/xxxxxx/.linuxbrew/Library/Homebrew/formulary.rb:74:in `klass'
/home/xxxxxx/.linuxbrew/Library/Homebrew/formulary.rb:70:in `get_formula'
/home/xxxxxx/.linuxbrew/Library/Homebrew/formulary.rb:207:in `factory'
/home/xxxxxx/.linuxbrew/Library/Homebrew/formula.rb:1186:in `[]'
/home/xxxxxx/.linuxbrew/Library/Homebrew/cmd/install.rb:200:in `check_ld_so_symlink'
/home/xxxxxx/.linuxbrew/Library/Homebrew/cmd/install.rb:213:in `perform_preinstall_checks'
/home/xxxxxx/.linuxbrew/Library/Homebrew/cmd/install.rb:91:in `install'
/home/xxxxxx/.linuxbrew/Library/brew.rb:84:in `<main>'
谁知道为什么会这样?是因为Linux Brew无法在Ubuntu Windows上运行吗?
发布于 2019-04-22 14:48:17
要在GNU / Linux或WSL中安装Linuxbrew,请遵循Homebrew文档中的方法。
apt update; apt upgrade
apt install build-essential curl file git
bash --login
。sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
PATH=/home/$USER/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin:$PATH
~/.profile
通过运行以下命令配置Linuxbrew : echo 'eval $(/home/$USER/.linuxbrew/bin/brew shellenv)' >>~/.profile
eval $(/home/$USER/.linuxbrew/bin/brew shellenv)
echo $PATH
brew update --force
以完成安装。brew install hello
https://stackoverflow.com/questions/-100006652
复制相似问题