This chapter tells you how to install the Perforce Command-Line Client (p4) on a client machine. For details about installing the Perforce Server, refer to the
Perforce System Administrator's Guide.
To install the Perforce Command-Line Client (p4) on a UNIX or Macintosh OS X machine, perform the following steps:
To install the Perforce Command-Line Client (p4.exe) on Windows, download and run the Perforce Windows installer (
perforce.exe) from the Downloads page of the Perforce web site:
To verify that you have successfully installed the Perforce Command-line Client, type p4 info at the command line and press ENTER. If you have a server running on the specified host and port, the following message is displayed:
User name: onaClient name: ona-agave Client host: agave Client root: /home/ona/p4-ona Current directory: /home/ona/p4-ona Client address: 10.0.0.196:2345 Server address: ida:1818 Server root: /usr/depot/p4d Server date: 2008/06/28 12:11:47 -0700 PDT Server uptime: 752:41:33 Server version: P4D/FREEBSD/2008.1/156375 (2008/05/25) Server license: P4Admin <p4adm> 20 users (expires 2009/01/01) Server license-ip: 10.0.0.2
|
Perforce client error: Connect to server failed; check $P4PORT. TCP connect to <hostname> failed. <hostname>: host unknown.
|