There are 2 programs which provide 'cmake'. If you need to switch back to cmake 2.8 as the default, run the following command: $ sudo alternatives -config cmake The commands also take care of registering a few secondary commands like ctest which need to be switched along with cmake. slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 \Īfter these two commands, cmake3 will be invoked by default, when you enter cmake from a bash prompt or start a bash script. slave /usr/local/bin/cpack cpack /usr/bin/cpack3 \ slave /usr/local/bin/ctest ctest /usr/bin/ctest3 \ $ sudo alternatives -install /usr/local/bin/cmake cmake /usr/bin/cmake3 20 \ slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake \ slave /usr/local/bin/cpack cpack /usr/bin/cpack \ slave /usr/local/bin/ctest ctest /usr/bin/ctest \ Use the alternatives command to register both installations: $ sudo alternatives -install /usr/local/bin/cmake cmake /usr/bin/cmake 10 \ Once you have both the cmake and the cmake3 package installed on your machine, you can use update-alternatives to switch between both packages. So, the problem is clear: the system still sees cmake2.8 as default, and therefore Python does not use cmake3 for its PyTorch installation. : generation, code generation, and template instantiation. sudo yum info cmake Installed Packages Name : cmake Arch : x8664 Version : 2.8.12.2 Release : 2. To install system-wide the command needs to be run with sudo on Linux/macOS: sudo cmake -build build/default -target install or run in a command prompt with admin privileges on Windows, or using runas: runas cmake -build build/default -target install Make sure to prevent conflicts between libraries installed in your system. : to support complex environments requiring system configuration, preprocessor CMake is quite sophisticated: it is possible Installing
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |