linux軟體包下載解壓安裝
下載一個檔案
windows下軟體包傳輸到Linux
命令:rz
或者用:Xftp
[[email protected] test]# tar -zxvf tree-1.7.0.gz
[[email protected] tree-1.7.0]# yum install gcc* -y
[[email protected] tree-1.7.0]# make
將.c編譯成.o
二.
[[email protected] test]# which tar
/usr/bin/tar
[[email protected] test]# mv /usr/bin/tar /usr/bin/tar.bak
[[email protected] test]# tar.bak -zxvf tar-1.29.tar.gz
[[email protected] tar-1.29]# ./configure
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
See `config.log' for more details提示不能在Root使用者下
-----------------------
-rwxr-xr-x. 1 xxx users 980931 5月 16 2016 configure
[[email protected] tar-1.29]$ su - xxx
[[email protected] tar-1.29]$ ./configure
Exit切換到root
編譯須在root下
[[email protected] tar-1.29]# make install
清除快取
[[email protected] test]# hash -d tar
[[email protected]