Linux 源码安装软件包
tree
wget mama.indstate.edu/users/ice/tree/src/tree-1.8.0.tgz
tar -zxvf tree-1.8.0.tgz
# cd到解压目录,修改makefile文件中的prefix位置,比如安装到~/Applictions/tree-1.8.0:
prefix = ~/Applications/tree-1.8.0
# 确保在解压目录下, 因为此目录下有makefile,注意这里已经有makefile了。所以不用make了,直接make install即可。
make install
# 设置环境变量
export PATH="~/Applications/tree-1.8.0/bin:$PATH"
source ~/.bashrc