美文网首页
解决sudo make install没有权限的方法

解决sudo make install没有权限的方法

作者: SnorkelingFan凡潜 | 来源:发表于2021-05-19 13:46 被阅读0次

    The best way to install such programs may be to install them in your home directory. Pass the option --prefix=/home/<user>/<some>/<directory> to ./configure.

    When you run ./configure, the --prefix option lets you specify where those directories are. It is called --prefix because it lets you give the prefix that appears in the paths to each of the directories where files from the program or library that you are building are to be installed. Most configure scripts support --prefix, and omitting it and just running ./configure is typically equivalent to
    ./configure --prefix=/usr/local

    参考链接
    https://askubuntu.com/questions/891835/what-does-prefix-do-exactly-when-used-in-configure
    https://unix.stackexchange.com/questions/20953/difference-between-make-install-and-sudo-make-install

    相关文章

      网友评论

          本文标题:解决sudo make install没有权限的方法

          本文链接:https://www.haomeiwen.com/subject/sodpjltx.html