Install CMake on Ubuntu

  1. Go to Download Page and download the .sh version for Linux x86_64.
# We can find tar.gz files are included in the shell
code cmake-3.14.0-rc3-Linux-x86_64.sh
 
# Help list for cmake.sh
sh cmake-3.14.0-rc3-Linux-x86_64.sh --help

# prefix=/usr/local : All the user packages should be put here
# exclude-subdir : Exclude the directory cmake-3.14.0-rc3-Linux-x86/ itself, 
# then the /bin /man /share etc. can be put under separate corresponding folders under /usr/local/
# Also remember to say no to "Do you want to include the subdirectory cmake-3.14.0-rc3-Linux-x86_64?"
# Otherwise the folders of cmake will come under only one subdirectory
sudo sh cmake-3.14.0-rc3-Linux-x86_64.sh --prefix=/usr/local/ --exclude-sudir
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。