在一般用户使用时
正常编译文件四步骤:
$ tar -zxvf filename //解压
$ ./configure //去解压目录下执行
$ make //编译所有
$ make install //将编译好的文件进行安装
在执行make install时遇到了下面的错误:
[hadoop@hadoop01 ~/tools/xz-5.0.3]$ make install
Making install in src
make[1]: Entering directory `/home/hadoop/tools/xz-5.0.3/src'
Making install in liblzma
make[2]: Entering directory `/home/hadoop/tools/xz-5.0.3/src/liblzma'
Making install in api
make[3]: Entering directory `/home/hadoop/tools/xz-5.0.3/src/liblzma/api'
make[4]: Entering directory `/home/hadoop/tools/xz-5.0.3/src/liblzma/api'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
/bin/mkdir -p '/usr/local/include/lzma'
/bin/mkdir: cannot create directory `/usr/local/include/lzma': Permission denied
/usr