免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: windlike
打印 上一主题 下一主题

Ubuntu下如何压缩/解压缩zip文件? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2007-06-15 14:31 |只看该作者
目录里有没有安装说明文件?我怀疑这个source包不一定能安装

论坛徽章:
0
12 [报告]
发表于 2007-06-15 14:36 |只看该作者
有安装说明文件, README 和 INSTALL 文件都有

username@ubuntu:~/unzip-5.52$ ls
acorn        crc32.c      funzip.txt   macos         theos         unzipstb.c
amiga        crc_i386.S   gbloffs.c    man           timezone.c    unzip.txt
aosvs        crctab.c     globals.c    match.c       timezone.h    unzpriv.h
api.c        crypt.c      globals.h    msdos         ToDo          unzvers.h
apihelp.c    crypt.h      History.550  novell        tops20        vms
atari        ebcdic.h     History.551  os2           ttyio.c       WHERE
atheos       envargs.c    History.552  process.c     ttyio.h       win32
beos         explode.c    human68k     proginfo      unix          wince
BUGS         extract.c    inflate.c    qdos          unreduce.c    windll
cmsmvs       file_id.diz  inflate.h    README        unshrink.c    zipgrep.txt
consts.h     fileio.c     INSTALL      tables.h      unzip.c       zip.h
Contents     flexos       LICENSE      tandem        unzip.h       zipinfo.c
COPYING.OLD  funzip.c     list.c       testmake.zip  unzipsfx.txt  zipinfo.txt

论坛徽章:
0
13 [报告]
发表于 2007-06-15 16:35 |只看该作者

Happy father day!

Dear all,

Coming Sunday is 'Father Day' , I got a nice file to share;  Hope u enjoy it and take care you family.

http://blog.chinaunix.net/upfile/070615162554.rar

Windlike

论坛徽章:
0
14 [报告]
发表于 2007-06-15 17:57 |只看该作者
楼主认真看一下README 和INSTALL吧,我特意上去 试了一下 ./configure --pefix=/home/...... 通过了
后面的make 我没试
注意要进入unix目录下再 ./configure 那里还有一个 win32 应该是windows平台的



  1. username@ubuntu:~/unzip-5.52$ ./configture --prefix=/home/a/b/username
复制代码

你这个命令就写错了

论坛徽章:
0
15 [报告]
发表于 2007-06-16 10:12 |只看该作者
不好意思,上面的 "./configture" 是我在发贴时拼错了, 实际上我在命令行用的是"./configure"

这不,我又测试了一下,还是不行:
username@ubuntu:~/unzip-5.52$ ./configure --prefix=/home/a/b/username
-bash: ./configure: No such file or directory
username@ubuntu:~/unzip-5.52$ date
2007年 06月 16日 星期六 09:53:20 CST

其实,我发这个贴子的目的是为了在linux环境下(解)压缩zip文件。

问题的根源在于: Unix体验中心的  Ubuntu 6.10 没有自带的 zip/unzip 工具,而我自行安装 unzip/zip 时却莫名其秒的不成功。为此也浪费我和大家不少时间。

如果这个还是解决不了,那我就用 unix 体验中心的 Fedora 实现(解)压缩zip文件了。

[ 本帖最后由 windlike 于 2007-6-16 13:30 编辑 ]

论坛徽章:
0
16 [报告]
发表于 2007-06-16 13:10 |只看该作者
原帖由 fangdingj 于 2007-6-15 17:57 发表于 14楼  
楼主认真看一下README 和INSTALL吧,我特意上去 试了一下 ./configure --pefix=/home/...... 通过了
后面的make 我没试
注意要进入unix目录下再 ./configure 那里还有一个 win32 应该是windows平台的

                                                          .

论坛徽章:
0
17 [报告]
发表于 2007-06-16 13:36 |只看该作者
在Ubuntu下可以用这样安装unzip,sudo apt-get install zip unzip   安装完成后使用命令 unzip -x aaa.zip 解压


另外,configure时候提示  -bash: ./configure: No such file or directory 那应该是你的文件名没有输入正确,一般来说configure文件都是存在的,除非个别的文件不需要configure,直接make的

论坛徽章:
0
18 [报告]
发表于 2007-06-16 14:26 |只看该作者
unzip-5.52 下的 unix 和 win32 这两个目录我都进去试了,还是不行。

显示的仍然是:  -bash: ./configure: No such file or directory

我是在win2000下,用PuTTY连接ubuntu.unix-center.net 来操作的

论坛徽章:
0
19 [报告]
发表于 2007-06-16 14:45 |只看该作者
原帖由 lasama 于 2007-6-16 13:36 发表于 17楼  
... ..
另外,configure时候提示  -bash: ./configure: No such file or directory 那应该是你的文件名没有输入正确,一般来说configure文件都是存在的,除非个别的文件不需要configure,直接make的


我试过N遍了,文件名应该不会错 (./configure --prefix=/home/a/b/username 没错吧?)

如果说个别文件不需要configure,那我直接 make,也不行,如下:
---------------------------------------------------------------------------------------
username@ubuntu:~/unzip-5.52/unix$ make

  If you're not sure about the characteristics of your system, try typing
  "make generic".  If the compiler barfs and says something unpleasant about
  "timezone redefined," try typing "make clean" followed by "make generic2".
  If, on the other hand, it complains about an undefined symbol _ftime, try
  typing "make clean" followed by "make generic3".  One of these actions
  should produce a working copy of unzip on most Unix systems.  If you know
  a bit more about the machine on which you work, you might try "make list"
  for a list of the specific systems supported herein.  (Many of them do
  exactly the same thing, so don't agonize too much over which to pick if
  two or more sound equally likely.)  Also check out the INSTALL file for
  notes on compiling various targets.  As a last resort, feel free to read
  the numerous comments within the Makefile itself.
  Have a mostly pretty good day.

username@ubuntu:~/unzip-5.52/unix$ make install
make: *** 没有规则可以创建 "install" 需要的目标 "man/funzip.1"。停止。
---------------------------------------------------------------------------------------

fangdingj 说他特意试了一下 ./configure --pefix=/home/...... 通过了,我的怎么就通不过? 难道是用户权限不够?

论坛徽章:
0
20 [报告]
发表于 2007-06-16 16:35 |只看该作者
楼主我彻底服你了
我估计你没看INSTALL
具体安装是这样的
安装 unzip
cd unzip-5.52
make -f unix/Makefile generic
执行完了当前目录这有 unzip 了

安装zip
cd zip-2.32
make -f unix/Makefile generic

我上次执行 ./configure的是zip

下次记住看看 INSTALL 和 README
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP