问题
When installing from package-manager, cmake-gui or cmake-qt-gui are shipped with an older version of cmake.
Even after I build and install cmake's latest version from source, cmake-gui continues to use the older version.
How to force cmake-gui to use cmake latest version builded from source?
回答1:
The cmake-gui package from repository has a built-in cmake, those two have the same version.
Steps to install cmake-gui latest version.
- Install
checkinstallto easily removecmakein the future:sudo apt-get install checkinstall; - Download latest
cmakefrom official site; - Extract the compressed file to some folder;
- Open a terminal inside that folder;
- Execute:
./bootstrap --qt-gui; - Execute:
checkinstall -D make install; You will be prompted with some questions, answer them; - Finished installation! Type
cmakeat Ubuntu's search bar and you will see aCMakeicon; - Verify the version clicking at help >> about;
来源:https://stackoverflow.com/questions/61473421/how-to-install-cmake-gui-latest-version-on-ubuntu