Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Questions about p4perl...

Status
Not open for further replies.

whn

Programmer
Oct 14, 2007
265
US
I am trying to use p4perl. But I am stuck in step one - to install p4perl.

I did a search on this forum and found no threads related to perforce and/or p4perl. Therefore, I'll keep my questions short for now though I may have many follow-up questions later.

According a release note at perforce site: p4perl release note, 2012.2, it reads --

p4perl release notes said:
Building P4Perl from Source

1. Download the Perforce C++ API from the Perforce FTP site at
"ftp://ftp.perforce.com/perforce". The API archive is located
in release and platform-specific subdirectories and is named
"p4api.tgz" for non-Windows platforms and "p4api_vs2008_static.zip"
for Windows. Mac OS X users should get the API from either the
"bin.darwin90x86" or "bin.darwin90x86_64" platform directory.

Note: 32-bit builds of P4Perl require a 32-bit version of the
C++ API and a 32-bit version of Perl. 64-bit builds of
P4Perl require a 64-bit version of the C++ API and a
64-bit version of Perl.

Unzip the archive into an empty directory.

2. Extract the P4Perl API archive into an empty directory.

3. To build P4Perl, run the following commands:

perl Makefile.PL --apidir <absolute path to Perforce C++ API>

make (on Unix/Mac platforms)

nmake (on Windows platforms)

Note: to reinstall cleanly P4Perl, remove the directory created
in step 2, then re-extract the archive.

I went to [link ftp://ftp.perforce.com/perforce]perforce ftp site[/url] and picked release 12.2, i.e. r12.2 for bin.linux26x86_64, because I am using a Ubuntu machine:
Code:
% uname -a
Linux bos-lprfl 2.6.32-46-generic #105-Ubuntu SMP Fri Mar 1 00:04:17 UTC 2013 x86_64 GNU/Linux

Therefore, the actual url of the download page is [link ftp://ftp.perforce.com/perforce/r12.2/bin.linux26x86_64/]ftp://ftp.perforce.com/perforce/r12.2/bin.linux26x86_64/[/url].

I know I need to download p4api.tgz. But this package does not have Makefile.PL.

So, my first question is what else I should download besides p4api.tgz? The release note does not say.

My second question is --

Once I downloaded all pkgs and ready to execute 'perl Makefile.PL', what value am I supposed to use for <absolute path to Perforce C++ API>? The absolute path to the unpacked subdirname of p4api.tgz?

Third question:

Is p4perl a prerequisite for all P4 modules at CPAN site?

Let me stop here for now.

Thank you for your time and help!!
 
It turned out super simple:

% sudo apt-get install p4perl

That's it! On Ubuntu, though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top