Perforce 2002.1 User's Guide | ||
<< Previous Chapter Perforce Concepts |
Table of Contents Index Perforce on the Web |
Next Chapter >> Perforce Basics: Quick Start |
As mentioned earlier, two programs do the bulk of Perforce's work:
If this is not the case (for instance, if you're installing Perforce from scratch), you'll also have to install the Perforce server before continuing. See the appendix, "Installing Perforce" on page 129, for information on how to install the server.
The information in the appendix is intended to help you install a server for evaluation purposes. If you're installing a production server, or are planning on extensive testing of your evaluation server, we strongly encourage you to read the full installation instructions in the Perforce System Administrator's Guide.
These are set via a single environment variable, P4PORT.
Note |
See "Setting and viewing environment variables" on page 136 for information about how to set environment variables for most operating systems and shells. |
If your site is already using Perforce, it's possible that your system administrator has already set P4PORT for you; if not, you'll need to set it yourself.
Either way, after setting P4PORT to point to your server, you should verify your client's connection to the Perforce server with the p4 info command.
If the server is running on... |
and is listening to port... |
set P4PORT to: |
---|---|---|
dogs |
3435 |
dogs:3435 |
x.com |
1818 |
x.com:1818 |
The definition of P4PORT can be shortened if the Perforce client is running on the same host as the server. In this case, only the port number need be provided to p4. If p4d is running on a host named or aliased perforce, listening on port 1666, the definition of P4PORT for the p4 client can be dispensed with altogether. For example:
If the server is running on... |
and is listening to port... |
set P4PORT to: |
---|---|---|
<same host as the p4 client> |
1543 |
1543 |
perforce |
1666 |
<no value needed> |
When P4PORT has been set, you should re-verify the connection with p4 info, as described below. Once this has been done, Perforce is ready to use.
The Server address: field shows which Perforce server to which the client has connected; it displays the host and port number on which p4d is listening.
In the above example, everything is fine. If, however, you receive a variant of this message:
Perforce client error: |
then P4PORT has not been correctly set. If the value you see in the third line of the error message is perforce:1666 (as above), then P4PORT has not been set at all; if the value is anything else, P4PORT has been incorrectly set. In either case, you'll need to set the value of P4PORT.
Windows |
On Windows platforms, registry variables are preferred over environment variables, and you can set these with command p4 set. |
Perforce 2002.1 User's Guide | ||
<< Previous Chapter Perforce Concepts |
Table of Contents Index Perforce on the Web |
Next Chapter >> Perforce Basics: Quick Start |