ubuntu linux源码方式安装unzip

手册/FAQ (555) 2016-04-14 13:56:50

新的部署机器是 ubuntu ,安装的时候省略了很多的工具。

没有unzip !

1、获取unzip源码

sudo wget http://downloads.sourceforge.net/infozip/unzip552.tar.gz  (ubuntu)

wget http://downloads.sourceforge.net/infozip/unzip552.tar.gz   (centos)

2、解压

tar zxvf unzip552.tar.gz

3、进入目录

cd unzip-5.52/

4、将Makefile从unix子目录复制到当前目录

cp unix/Makefile .

5、安装

Ubuntu

make prefix=/usr linux 

sudo make prefix=/usr install 

CentOS

make generic  (centos)

install(centos)

好了,可以用了!

THE END