- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我已经使用 pik 安装了两个 rubies,但我还没有在 pik 之外安装任何 rubies。
当我使用 pik 选择 Ruby,然后尝试设置 devkit 时,没有二进制文件添加到生成的 config.yml 文件中:
# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
# Rubies that were not automagically discovered, simply add a line below
# the triple hyphens with the absolute path to the Ruby root directory.
#
# Example:
#
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
---
我尝试将 pik 中的二进制文件添加到路径中,以便 config.yml 具有
- C:/pik/rubies/ruby-1.9.2-p136
- C:/Users/agrimm/.pik/rubies/JRuby-170preview1
但是我明白了
bash-3.1$ ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/pik/rubies/ruby-1.9.2-p136'
[INFO] Installing 'C:/pik/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/devkit.rb'
[ERROR] Unable to find RubyGems in site_ruby or core Ruby. Please
install RubyGems and rerun 'ruby dk.rb install'.
C:\DevKit>ruby dk.rb install
[INFO] Skipping existing gem override for 'C:/pik/rubies/ruby-1.9.2-p136'
[WARN] Skipping existing DevKit helper library for 'C:/pik/rubies/ruby-1.9.2-p136'
[ERROR] Unable to find RubyGems in site_ruby or core Ruby. Please
install RubyGems and rerun 'ruby dk.rb install'.
C:\DevKit>gem --version
1.3.7
C:\DevKit>echo %PATH%
C:\pik\rubies\ruby-1.9.2-p136\bin;C:\Program Files (x86)\Parallels\Parallels Tools\Applications;C:\pik\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\DevKit\bin
C:\DevKit>PATH=%PATH%;C:\Users\agrimm\.pik\rubies\JRuby-170preview1\bin
C:\DevKit>echo %PATH%
C:\pik\rubies\ruby-1.9.2-p136\bin;C:\Program Files (x86)\Parallels\Parallels Tools\Applications;C:\pik\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\DevKit\bin;C
:\Users\agrimm\.pik\rubies\JRuby-170preview1\bin
C:\DevKit>ruby dk.rb install
[INFO] Skipping existing gem override for 'C:/pik/rubies/ruby-1.9.2-p136'
[WARN] Skipping existing DevKit helper library for 'C:/pik/rubies/ruby-1.9.2-p136'
[ERROR] Unable to find RubyGems in site_ruby or core Ruby. Please
install RubyGems and rerun 'ruby dk.rb install'.
我是否需要在 pik 之外安装 ruby 才能让 devkit 工作?
最佳答案
我看到这个问题很老了,但仍然没有答案。您的帖子提到您使用 pik 安装了 ruby 版本。我不知道 pik 在安装 ruby 时在幕后做了什么,但我一直直接使用 Rubyinstallers。他们在 pik 上工作得很好,我已经毫无问题地安装了 DevKit。请注意 DevKit docs 中的这一点:
ruby dk.rb init to generate the config.yml file to be used later in this Step. Your installed Rubies will be listed there (only those installed by a RubyInstaller package are detected at present).
关于ruby - 为 pik 安装的 Rubies 安装 devkit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12596022/
我正在尝试在我的 Windows 机器上设置 pik。在 .pikrc 文件中,有这些代码行: pik_path=/c/Program files/pik function pik { $pik
尝试从此处安装 Ruby on Rails 失败后:http://railsinstaller.org/ ,我现在正在尝试手动安装。 我想我会先安装 Pik,然后在命令提示符下点击“pik insta
我正在运行 win 7 并且刚刚通过安装程序安装了 pik。我列出了 ruby 版本,最新版本是 1.9.2[-1.3.6]。我看到一篇帖子,其中有人提到使用“pik list -r”,但 pik
我已经使用 pik 安装了两个 rubies,但我还没有在 pik 之外安装任何 rubies。 当我使用 pik 选择 Ruby,然后尝试设置 devkit 时,没有二进制文件添加到生成的 conf
我在 Windows 7 上使用 pik。我无法让 pik 记住 ruby 版本选择。 例子: 命令窗口 1 > pik list * 187: ruby 1.8.7 (2011-02-18 pa
在 windows7 机器上使用 pik,如何下载 gems 以供其他版本的 ruby 使用? 我正在使用 2 个版本的 ruby:1.9.3 和 1.9.2。 1.9.3 是 windows
我正在尝试使用 pik 安装 ruby 1.9。这是错误 pik install ruby 1.9 -d There was an error. Error: private method `gsub
我在 Windows 上运行多个版本的 Ruby(和 Rails),并使用 Pik 在它们之间切换。在命令行,我可以调用 > pik list 186: ruby 1.8.6 (2007-09-24
将 JRuby 1.3.1 添加到 pik 时出现错误。错误: Error: private method `gsub' called for nil:NilClass 这是我的路径环境变量: C:\
在 Windows 7 机器上,我安装了 jruby 1.6.7,然后使用“gem install pik”安装了 pik。然后我运行 pik_install C:\bin 正确安装了 pik。我可以
如果您使用的是 Windows 机器,Pik 看起来很棒。唯一的问题是它似乎是为 Windows 命令提示符设置的,而我使用的是 cygwin。 每当我尝试在 cygwin 中切换到不同版本的 rub
我试图将我的本地数据库推送到 Heroku 并收到此错误: ...点击服务器错误:PGError: ERROR: time zone displacement out of range:... 后来谷
我是一名优秀的程序员,十分优秀!