Linux software can be installed anywhere, as long as it can be found when used. You have set the environment variables, then cmake can be installed to $HOME路径下面. 你去下载cmake的源码, ./configure --help能看到有一个install path, just set this and it will be fine
I have never tried to install this kind of low-level application with a non-root account. The following process was obtained from Baidu. You can try it:
In fact, even without root, if your account is in the sudo user group, that is enough. If you no longer have sudo permissions, then give up. Or you can try cross-compiling.
Linux software can be installed anywhere, as long as it can be found when used. You have set the environment variables, then cmake can be installed to
$HOME
路径下面. 你去下载cmake的源码,./configure --help
能看到有一个install path
, just set this and it will be fineI have never tried to install this kind of low-level application with a non-root account. The following process was obtained from Baidu. You can try it:
Step 5: echo 'export PATH=dir_xxx:$PATH' >> ~/.bashrc
source ~/.bashrc
Then you should be able to compile the file through cmake.
In fact, even without root, if your account is in the sudo user group, that is enough.
If you no longer have sudo permissions, then give up. Or you can try cross-compiling.