![如何删除 /opt/perforce 目录中的 perforce 二进制文件](https://linux22.com/image/726848/%E5%A6%82%E4%BD%95%E5%88%A0%E9%99%A4%20%2Fopt%2Fperforce%20%E7%9B%AE%E5%BD%95%E4%B8%AD%E7%9A%84%20perforce%20%E4%BA%8C%E8%BF%9B%E5%88%B6%E6%96%87%E4%BB%B6.png)
当我跑步时p4d
,p4
我[p4: command not found]
我没有二进制文件p4d
,p4
在/选择/ perforce /目录。因此无法运行 perforce 服务器和客户端。我尝试卸载 perforce 服务器和客户端。我正在使用 ubuntu。
最后,如何获取 perforce 二进制文件来运行服务器和客户端
sudo apt-get install helix-p4d
removing existing dangling p4d link
/usr/sbin/p4d
linking /opt/perforce/sbin/p4d to /usr/sbin/p4d
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: Thank you for choosing Perforce Helix
:: The following has been installed by the 'helix-p4d' package:
::
:: - The Helix Version Engine (p4d)
:: - A 'perforce' system user
:: - p4dctl, a tool for managing Perforce service instances
:: - The Helix Command-Line Client (p4)
::
:: The Helix Version Engine is now installed, but not yet configured.
:: You must run the following to configure p4d (as root):
::
:: sudo /opt/perforce/sbin/configure-helix-p4d.sh
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Started 0 services.
No services configured.
linking failed: linking /opt/perforce/sbin/p4d to /usr/sbin/p4d, because there is no p4d.
如何获取所有 perforce 二进制文件。
答案1
Perforce 至少需要两个可执行文件:Perforce 服务(Unix 上的 p4d,Windows 上的 p4s.exe)和至少一个 Perforce 应用程序(例如 UNIX 上的 p4 或 Windows 上的 p4.exe)。
先决条件列表很长。您是否遵循了如下安装过程:“Linux 中 p4search perforce 应用程序安装和配置指南“。
您不应该收到该消息,而应该看到以下消息:
apt-get install helix-p4d
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
helix-cli helix-cli-base helix-p4d-base helix-p4d-base-16.2 helix-p4dctl
The following NEW packages will be installed:
helix-cli helix-cli-base helix-p4d helix-p4d-base helix-p4d-base-16.2 helix-p4dctl
0 upgraded, 6 newly installed, 0 to remove and 267 not upgraded.
Need to get 6,722 kB of archives.
After this operation, 15.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
...
[Removed many lines]
...
Setting up helix-p4d-base-16.2
(2016.2-1468155~trusty) ...
update-alternatives: using /opt/perforce/sbin/p4d.16.2 to provide /opt/perforce/sbin/p4d (helix-p4d) in auto mode
Setting up helix-p4d-base (2016.2-1468155~trusty) ...
Setting up helix-p4d (2016.2-1468155~trusty) ...
linking /opt/perforce/sbin/p4d to /usr/sbin/p4d
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: Thank you for choosing Perforce Helix
:: The following has been installed by the 'helix-p4d' package:
::
:: - The Helix Version Engine (p4d)
:: - A 'perforce' system user
:: - p4dctl, a tool for managing Perforce service instances
:: - The Helix Command-Line Client (p4)
::
:: The Helix Version Engine is now installed, but not yet configured.
:: You must run the following to configure p4d (as root):
::
:: sudo /opt/perforce/sbin/configure-helix-p4d.sh
:: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Started 0 services.
No services configured.
Processing triggers for systemd (229-4ubuntu10)
...
Processing triggers for ureadahead (0.100.0-19)
...
阅读安装文档:”安装和升级服务器“。
“使用 apt-get 或 yum 的软件包更新命令无法完成更新 Perforce 服务的过程。Linux 软件包仅简化了该过程的某些步骤。
如果在未完成其余更新过程的情况下更新软件包,则会导致 Perforce 服务处于不稳定状态。请确保在更新任何软件包之前阅读并理解整个过程。"。
你需要:
配置 Perforce 包存储库。
导入 Perforce 包签名密钥。
安装适当的 Perforce 服务包。
运行安装后配置脚本。
请参阅上面的链接(“安装和升级服务器”)了解完整详情。