Installing P4 API for Ruby
As of version 2015.1, the recommended mechanism for installing P4 API for Ruby 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
P4 API for Ruby
without incident. On Windows, precompiled gems will be made
available.
$ gem install p4ruby
The gem will attempt to download a correct version of the P4 API for C/C++ from the Perforce website.
P4 API for C/C++ can be specified with the --with-p4api-dir option. The P4 API for C/C++ should match the major and minor version of P4 API for Ruby.
Download from: