2 версия Cmake, необходимо удалить одну

I'm having an issue with Cmake. I'm using Ubuntu 18.04 and have installed the newest version of Cmake (3.18.0). Since I'm kind of new to Linux in general, I thought installing new version will override the last version and simply update it, unfortunately I was wrong. Now sometimes when I try to set minimum version to above 3.10, I'm getting the follwing error:

CMake 3.17 or higher is required.  You are running version 3.10.2

It's obviously that I need to remove the older version, but I'm not sure how to remove a specific version, whenever I try to locate the Cmake folder, the directory is:

/usr/local/bin/cmake

Which isn't the directory, specifically not the directory that I need (3.10.2 one).

How can I remove specific version of Cmake? Thanks for the help.

EDIT Как указано в комментарии ниже, вывод , который -a cmake :

/usr/local/bin/cmake
/usr/bin/cmake

Cmake в / usr / bin / cmake , является плохой версией (3.10.2).

0
задан 24 July 2020 в 15:17

1 ответ

Поскольку возникла проблема с обеими версиями, я подумал, что лучшим планом действий было просто удалить все версии и установить ту, которую я хотел , Но после запуска sudo apt-get remove cmake я заметил, что единственной удаленной версией была «плохая» версия (3.10.2). И теперь все работает как надо.

0
ответ дан 30 July 2020 в 22:04

Другие вопросы по тегам:

Похожие вопросы: