
我正在嘗試在 Solaris 上配置 p4 (Perforce),但沒有成功。誰能看見我做錯了什麼嗎?
參考: http://www.perforce.com/perforce/doc.current/manuals/p4guide/02_config.html#1073398- “使用設定檔”
- 使用者特定的環境變數
P4CONFIG=.p4settings
.p4settings
客戶端根目錄下的文件- 客戶端根目錄:
$HOME/client_root/
- .p4settings 包含 p4user、p4port、p4host 和 p4client
如果我執行以下命令:
p4 info
預期結果:
User name: ...
Client name: ...
...
..
觀察結果:
Perforce client error:
Connect to server failed; check $P4PORT.
TCP connect to perforce failed.
perforce: host unknown.
答案1
我自己想出來了!
這是我在中設定環境變數的方式。文件。
正確的:
export P4CONFIG=.p4settings
錯誤:
P4CONFIG=.p4settings
Solaris 網站上的官方文件並沒有提及任何有關必須使用「匯出」的內容。
docs.oracle.com/cd/E19683-01/806-7612/customize-8/index.html