Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to configure p4 (Perforce) on Solaris, but have had no success. Can anyone see what I'm doing wrong?

Reference: - "Using Config files"

  1. User specific env variable P4CONFIG=.p4settings
  2. .p4settings file under Client root
  3. Client root: $HOME/client_root/
  4. .p4settings contains p4user, p4port, p4host and p4client

If I run the following:

p4 info

Expected result:

User name: ...
Client name: ...

Observed result:

Perforce client error:
        Connect to server failed; check $P4PORT.
        TCP connect to perforce failed.
        perforce: host unknown.
share|improve this question
up vote 4 down vote accepted

Figured it out myself!

It was with the way I set the environment variable in the .profile file.


export P4CONFIG=.p4settings



The official documentation on the Solaris website doesn't mention anything about having to use "export".

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .