11# Building P4Ruby from Source
22
33
4+ Note: Make sure you have following packages installed on your system:
5+ a. build-essential
6+ b. libssl-dev
7+
481 . Download the Perforce C++ API from the Perforce FTP site at
5- < ftp://ftp.perforce.com/perforce > . \
9+ < ftp://ftp.perforce.com/perforce > . \
610 The API archive is located in release and platform-specific subdirectories and is named
7- * "p4api-glibc2.3-openssl1.1.1.tgz".< br >< br > *
11+ * "p4api-glibc2.3-openssl1.1.1.tgz".*
812
913 ** Note: 32-bit builds of P4Ruby require a 32-bit version of the C++ API and a 32-bit version of Ruby.\
10- 64-bit builds of P4Ruby require a 64-bit version of the C++ API and a 64-bit version of Ruby.<br ><br >**
11- Unzip the archive into an empty directory.<br ><br >
14+ 64-bit builds of P4Ruby require a 64-bit version of the C++ API and a 64-bit version of Ruby.**
15+
16+ Unzip the archive into an empty directory.
1217
13- 2 . Extract the P4Ruby API archive into a new, empty directory.< br >< br >
18+ 2 . Extract the P4Ruby API archive into a new, empty directory.
1419
15- 3 . Execute the build commands:< br >< br >
20+ 3 . Execute the build commands:
1621
1722 * bundle install \
1823 bundle exec rake compile -- --with-p4api_dir=<absolute path to Perforce C++ API> \
19- --with-ssl-dir=<absolute path to OpenSSL libraries matching Perforce C++ API>< br >< br > *
24+ --with-ssl-dir=<absolute path to OpenSSL libraries matching Perforce C++ API>*
2025
2126 OR pass through environment variables\
22- * bundle exec rake compile p4api_dir=<* absolute path to Perforce C++ API* ><br ><br >*
23-
24- ** Note: If the --p4api_dir flag is not provided, P4Ruby will attempt\
25- to download and extract correct version of Perforce C++ API<br ><br >**
27+ * bundle exec rake compile p4api_dir=<absolute path to Perforce C++ API>*
2628
27- 4 . Test your distribution.<br ><br >
29+ ** Note: If the --p4api_dir flag is not provided, P4Ruby will attempt
30+ to download and extract correct version of Perforce C++ API**
2831
29- * bundle exec rake test< br >< br > *
32+ 4 . Test your distribution.
3033
31- Tests require the perforce server binary (p4d) present in the path.< br >< br >
34+ * bundle exec rake test *
3235
33- 5 . Install P4Ruby into your local gem cache:<br ><br >
36+ Tests require the perforce server binary (p4d) present in the path.
37+
38+ 5 . Install P4Ruby into your local gem cache:
3439
35- * bundle exec rake install*
40+ * bundle exec rake gem* \
41+ * gem install pkg/p4ruby\* .gem -- --with-p4api_dir=<absolute path to Perforce C++ API>*
3642
3743## SSL support
3844
@@ -41,4 +47,4 @@ C++ API has been compiled with this support.
4147
4248If the P4Ruby build detects that OpenSSL is available, it will be
4349included by default. If you want to use libraries deployed to nonstandard
44- paths, use the --ssl_dir=<* path to Openssl include and lib folders* >
50+ paths, use the --ssl_dir=<* path to Openssl include and lib folders* >
0 commit comments