Проблемы с установкой cmake на Ubuntu 12.04

1707
JuJoDi

По какой-то причине я решил, что было бы неплохо извлечь apt-get remove cmakeиз моего дистрибутива Ubuntu 12.04 и затем вернуть его обратно, но когда я это сделал, sudo apt-get install cmakeя получил следующую ошибку:

The following packages have unmet dependencies: cmake : Depends: cmake-data (= 2.8.7-0ubuntu5) but 2.8.11.2-1ubuntu2~precise1 is to be installed E: Unable to correct problems, you have held broken packages. 

Я также попытался установить cmake в соответствии с этим руководством, которое, похоже, завершилось успешно, но до сих пор нет cmake. я получил

bash: /usr/bin/cmake: No such file or directory 

Что может вызвать эту проблему и как я могу это исправить?

0
Вы создали папку `/ usr / bin / cmake` и затем попробовали? Malachi 10 лет назад 0

1 ответ на вопрос

0
JuJoDi

The link provided in the question sets the build directory in the configure to /opt/cmake, and as noted in that discussion, cmake can be ran as

$/opt/cmake/bin/cmake 

You can copy the /opt/cmake/bin/cmake to the /bin/ directory, or add the /opt/cmake/bin/ directory to your $PATH environment variable to be able to use cmake as

$cmake 

As for the dependency issue, it's currently still a mystery.