×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Questions about p4perl...

Questions about p4perl...

Questions about p4perl...

(OP)
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 --

Quote (p4perl release notes)


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 perforce ftp site 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 ftp://ftp.perforce.com/perforce/r12.2/bin.linux26x86_64/.

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!!

RE: Questions about p4perl...

(OP)
It turned out super simple:

% sudo apt-get install p4perl

That's it! On Ubuntu, though.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close