我正在尝试安装最新的二进制版本的cmake,在Ubuntu16.04LTS上,自动(通过ansible)。
到目前为止,我已经做了:
mkdir ~/tmp
cd ~/tmp
wget https://cmake.org/files/v3.10/cmake-3.10.0-rc4-Linux-x86_64.sh
chmod +x cmake-3.10.0-rc4-Linux-x86_64.sh
sudo ./cmake-3.10.0-rc4-Linux-x86_64.sh然而,这就产生了许可证协议。
是否有任何方法添加前缀,或某些自动接受协议的内容?
发布于 2017-11-10 12:42:51
如果您使用--help运行安装程序,您会发现它有一个--skip-license命令行选项:
$ ./cmake-3.10.0-rc4-Linux-x86_64.sh --help
Usage: ./cmake-3.10.0-rc4-Linux-x86_64.sh [options]
Options: [defaults in brackets after descriptions]
--help print this message
--version print cmake installer version
--prefix=dir directory in which to install
--include-subdir include the cmake-3.10.0-rc4-Linux-x86_64 subdirectory
--exclude-subdir exclude the cmake-3.10.0-rc4-Linux-x86_64 subdirectory
--skip-license accept licensehttps://askubuntu.com/questions/975015
复制相似问题