gpt4 book ai didi

ruby - 尝试在 Windows 7 中为 ruby​​ 安装开发工具包但失败

转载 作者:可可西里 更新时间:2023-11-01 14:41:27 28 4
gpt4 key购买 nike

我正在尝试为 vim 的 CommandT 插件安装 ruby​​ 开发工具包,但遇到了问题

C:\Users\Administrator>gem install rdiscount --platform=ruby
ERROR: Error installing rdiscount:
The 'rdiscount' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

我已经在如下所示运行了 install devkit

C:\devkit>ruby dk.rb init
[INFO] found RubyInstaller v1.9.3 at C:/Ruby193

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

C:\devkit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

C:/Ruby193

C:\devkit>ruby dk.rb install
[INFO] RubyGems override already in place for C:/Ruby193, skipping.
[WARN] DevKit helper library already exists for C:/Ruby193, skipping.

可能出了什么问题?

编辑:我试过了

c:\devkit>ruby dk.rb install --force

Configures an MSYS/MinGW based Development Kit (DevKit) for
each of the Ruby installations on your Windows system. The
DevKit enables you to build many of the available native
C-based RubyGems that don't yet have a binary gem.

Usage: ruby dk.rb COMMAND

where COMMAND is one of:

init prepare DevKit for installation
review review DevKit install plan
install install required DevKit executables

卸载并使用干净的目录再次安装。但错误仍然存​​在。

最佳答案

在这条线上:

C:\devkit>ruby dk.rb install
[INFO] RubyGems override already in place for C:/Ruby193, skipping.
[WARN] DevKit helper library already exists for C:/Ruby193, skipping.

它告诉您它没有为 Ruby 安装 DevKit,因为它已经在那里注册了以前的 DevKit。

您可能重新定位了之前安装的 DevKit,在这种情况下,您需要执行 ruby dk.rb install --force 来覆盖之前跳过的 RubyGems 和 DevKit 帮助程序脚本。

希望对您有所帮助。

关于ruby - 尝试在 Windows 7 中为 ruby​​ 安装开发工具包但失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10862695/

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