我正在尝试设置 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/ruby
的 which 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/