как удалить двоичные файлы perforce в каталоге /opt/perforce

как удалить двоичные файлы perforce в каталоге /opt/perforce

Когда я бегу p4dи p4получаю[p4: command not found]

У меня нет бинарных файлов p4d, p4в/opt/по необходимости/каталог. Поэтому не удается запустить 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.

Как получить все необходимые двоичные файлы.

решение1

Для работы Perforce требуется как минимум два исполняемых файла: служба Perforce (p4d в Unix, p4s.exe в Windows) и как минимум одно приложение Perforce (например, p4 в UNIX или p4.exe в Windows).

Существует длинный список предварительных условий. Вы следовали процедуре установки, подобной этой: "Руководство по установке и настройке приложения p4search perforce в Linux".

Это сообщение не должно появиться, вместо него вы должны увидеть следующее:

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 в ненадежном состоянии. Обязательно прочитайте и поймите весь процесс перед обновлением любых пакетов.".

Вам нужно:

  1. Настройте репозиторий пакетов Perforce.

  2. Импортируйте ключ подписи пакета Perforce.

  3. Установите соответствующий пакет служб Perforce.

  4. Запустите скрипт послеустановочной конфигурации.

Смотрите ссылку выше ("Установка и обновление сервера") для получения полной информации.

Связанный контент