Installing P4Ruby
As of version 2015.1, the recommended mechanism for installing P4Ruby is via gems.
Outside of Windows, the p4ruby
gem installs must be
compiled locally against your installation of Ruby. If you can build the
core Ruby distribution locally, you likely can install P4Ruby without
incident. On Windows, precompiled gems will be made available.
$ gem install p4ruby -- --with-p4api-dir=DIR
In the example above, the DIR
is the path to a
local copy of the Perforce C++ API distribution. The Perforce C++ API
should match the major and minor version of P4Ruby. If you omit the
--with-p4api-dir
option, the gem attempts to download a
version of the API itself from ftp.perforce.com
.
More installation options are described in the P4Ruby project in the Perforce Workshop:
https://swarm.workshop.perforce.com/projects/perforce-software-p4ruby