Monday, September 14, 2009

Setting Perforce

To install the Perforce Command-Line Client (p4) on a UNIX or Linux or Macintosh OS X machine, perform the following steps:
1. Download p* from http://www.perforce.com/perforce/downloads/index.html
2.
Copy it to /usr/local/bin/
3. Make the p* files executables (p4 p4d p4ftpd p4p p4sql p4web p4broker perfmerge)
4. Configure the server port setting, client workspace name, and user name. You can specify these settings by configuring the P4PORT, P4CLIENT, and P4USER environment variables. (For details, see Chapter 2, Configuring P4.)
&] sudo cp ~/Downloads/p* /usr/local/bin
&] sudo chmod +x /usr/local/bin/p*
&] sudo chmod -R +x p*

Other P4 environment variables:
  1. P4DIFF -default-
  2. P4MERGE -default-
  3. P4PASSWD
  4. P4CLIENT
  5. P4EDITOR
  6. P4PORT
  7. P4USER
  8. P4CONFIG export $HOME/.p4config or export %USERPROFILE%\p4config.txt
  9. P4TICKETS export $HOME/.p4tickets or export %USERPROFILE%\p4tickets.txt
To install the Perforce P4V Client:
1. Download p4v.tgz from http://www.perforce.com/perforce/downloads/index.html
2.
Copy it to /Applications
3. Decompress with tar -zxf
4. Make the p4v* executable
&] sudo cp p4v.tgz /Applications/ ; cd /Applications
&] sudo tar -zxf p4v.tgz ; sudo chmod -R +x p4v* ; sudo rm -rf p4v.tgz
&] sudo ln -s p4v-2009.1.212209 p4v

Installing P4Thumb on UNIX, Linux and OS X
To install the Perforce P4Thumb:
1. Download p4thumb.tgz from http://www.perforce.com/perforce/downloads/index.html
2.
Copy it to /Applications
3. Decompress with tar -zxf
4. Make the p4thumb* executable
&] sudo cp p4thumb.tgz /Applications/ ; cd /Applications
&] sudo tar -zxf p4thumb.tgz ; sudo chmod -R +x p4thumb* ; sudo rm -rf p4thumb.tgz
&] sudo ln -s p4thumb-2009.1.210672 p4thumb

Installing P4DTG on UNIX, Linux and OS X
To install the Perforce P4DTG:
1. Download p4dtg.tgz from http://www.perforce.com/perforce/downloads/index.html
2.
Copy it to /Applications
3. Decompress with tar -zxf
4. Make the p4dtg* executable
&] sudo cp p4dtg.tgz /Applications/ ; cd /Applications
&] sudo tar -zxf p4dtg.tgz ; sudo chmod -R +x p4dtg* ; sudo rm -rf p4dtg.tgz
&] sudo ln -s p4dtg-2009.1.209672 p4dtg
&] cd p4dtg
&] ./p4dtg-test
> LL ./plugins/p4jobdt.so
Loading module: [./plugins/p4jobdt.so]
Module loaded: ./plugins/p4jobdt.so
> LT
Module tests passed
> LF
Module freed
> Q
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:

No comments:

HTMLCode

HTMLCode Content