ruby - P4Ruby 需要什么版本的 Ruby,P4Ruby 安装在哪里?

标签 ruby windows perforce

我正在尝试设置 Ruby 和 P4Ruby,这样我就可以使用 p4replicate.rb script ,但每当我运行 p4ruby18.exe(来自 the Perforce FTP)时,我都会收到以下错误:

Perforce P4Ruby API for Ruby 1.8 - InstallShield Wizard

There was a problem tying to get the P4Ruby install path.

Possible reasons are:

1) Ruby is not installed.

2) An unsupported version of Ruby is installed.

3) The folder containing the Ruby executable is not in the system path.

4) The folder of another version's executable is in the system path before the supported version.

5) The P4Ruby install paths are not writable.

OK

我运行的是 Windows Vista,并且在 C:\Ruby186 中安装了 Ruby 1.8.6-p398。目录 C:\Ruby186\bin 是我 Path 变量中的第一件事(Ruby 安装程序把它放在那里)!我还确认可以通过运行返回 /cygdrive/c/Ruby186/bin/rubywhich ruby​​(安装了 cygwin)来访问它。我也尝试过 1.8.7-p334 和 1.9.2-p290。

P4Ruby release notes声称 P4Ruby 2007.3 及以后的版本支持 Ruby 1.8,所以我认为我已经满足了这个标准,但它不会安装。

因为我相当肯定我已经满足标准 1、3 和 4,所以我想知道是否有人可以告诉我他们是否设法在具有特定版本的 Ruby (2) 的 Windows 上安装了 P4Ruby,如果是的话P4Ruby 安装到 (5) 的什么路径?

最佳答案

只是检查一下:运行安装程序时您是否拥有管理员权限?

关于ruby - P4Ruby 需要什么版本的 Ruby,P4Ruby 安装在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7067925/

相关文章:

ruby - 类对象的案例陈述

ruby-on-rails - WYSIHAT 'resonds_to_parent"未定义的方法 - Ruby on Rails

java - 在 Windows 机器上安装 Java 8 的情况下在 Java 7 上运行 Glassfish

windows - 在 Windows 上锁定计算机之前运行脚本

git - 什么是正确的 Git p4 工作流程?

c++ - VS2010不理解自己文件的字符串编码

linux - 使用 bash 脚本设置 p4 客户端

Ruby 混淆使用 "colons"

ruby - 如何使用 Ruby 从包含撇号的字符串创建文件夹?

c# - 有人可以解释这个 Windows 操作系统版本编号示例吗?