gpt4 book ai didi

ruby - 无法在 Ubuntu 19.04 上安装 Ruby gem selenium-webdriver

转载 作者:太空宇宙 更新时间:2023-11-04 11:49:17 25 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 19.04 上安装 gem selenium-webdriver,但我一直收到此错误:

sudo gem install selenium-webdriver  

Building native extensions. This could take a while... ERROR: Error installing selenium-webdriver: ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.5.0/gems/childprocess-1.0.1/ext /usr/bin/ruby2.5 mkrf_conf.rb

current directory: /var/lib/gems/2.5.0/gems/childprocess-1.0.1/ext /usr/bin/ruby2.5 -rrubygems /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake RUBYARCHDIR\=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/childprocess-1.0.1 RUBYLIBDIR\=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/childprocess-1.0.1 /usr/bin/ruby2.5: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake (LoadError)

rake failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/childprocess-1.0.1 for inspection. Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/childprocess-1.0.1/gem_make.out

我试过了

sudo gem update --system
sudo apt install ruby-dev
sudo apt install build-essential
sudo apt install gcc
sudo apt install make


ruby -v ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux-gnu]
gem -v 3.0.3

最佳答案

我必须这样做

sudo gem pristine rake

Restoring gems to pristine condition... Cached gem for rake-12.3.1 not found, attempting to fetch... Fetching rake-12.3.1.gem Restored rake-12.3.1

关于ruby - 无法在 Ubuntu 19.04 上安装 Ruby gem selenium-webdriver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56566599/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com