您的位置:首页 > 运维架构 > Linux

ubuntu linux源码方式安装unzip

2012-11-22 20:58 387 查看
新的部署机器是 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)

好了,可以用了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: