LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: tutu

谁会装这只MODEN的驱动,帮帮我!

[复制链接]
发表于 2002-7-3 17:18:22 | 显示全部楼层
是解压缩。。。
也就是这样做。。
#tar -zvxf [那样压缩文件名的全称]
 楼主| 发表于 2002-7-3 17:29:08 | 显示全部楼层
可那个驱动是用ZIP压缩的
发表于 2002-7-3 17:46:53 | 显示全部楼层
Linux 下文件的压缩、打包与解开


处理 .zip 文件的 zip 和 unzip

  zip 和 unzip 程序位于 /usr/bin 目录中,它们和 MS - DOS 下的 pkzip、pkunzip 以及 MS-windows 的 Winzip 软件功能一样、可将文件压缩成 .zip 文件以节省硬盘空间,而当需要的时候再将压缩文件解开。

  压缩文件的 zip 命令

  zip 可用来压缩文件,如果我们有许多文件需要做压缩,甚至可以将它们一并处理并压缩成一个文件。以下是 zip 的语法以及可用的参数介绍 :

  其实 zip 最常用的方法是在后面加上压缩后的文件名,以及要压缩的文件即可。

  因为 zip 命令在许多 OS 平台都有,而且参数相当多,在此我只介绍一些 Linux 上适用的参数 :

-1 : 最快压缩,压缩率最差。

-9 : 最大压缩,压缩率最佳。

-b : 暂存文件的路径。这个参数一般在要产生的 zip 文件存在,而硬盘现有空间不足时。

-c : 替新增或更新的文件增加一行注解。

-d : 从 zip 文件移出一个文件。

-D : 不要在 zip 文件中储存文件的目录信息。

-f : 以新文件取代现有文件。

-F : 修复已经损毁的压缩文件。

-g : 将文件压缩附加到 zip 文件中。

-h : 显示辅助说明。

-i : 指定要含入的某些特定文件。

-j : 只储存文件的名称,不含目录。

-k : 强迫使用 MSDOS 格式文件名。

-l : 将 CR ( Carriage Return ) LF ( Line Feed ) 转换成 LF,一般是要将 MS-DOS 上的文本文件压缩后拿到 UNIX 下使用时才使用此参数。这只适用于文本文件 ( .txt ),如果用于二进制文件则会造成二进制文件损毁。

-L : 显示 zip 命令的版权。

-m : 将特定文件移入 zip 文件中,并且删除特定文件。

-n : 不压缩特定扩展名的文件。

-o : 将 zip 文件的时间设成最后修正 zip 文件的时间。

-q : 安静模式,不会显示相关讯息和提示。

-r : 包括子目录。

-t : 只处理 mmddyy 日期以后的文件。

-T : 测试 zip 文件是否正常。

-u : 只更新改变过的文件和新文件。

-v : 显示版本资讯或详细讯息。

-x : 不需要压缩的文件。

-y : 将 symbolic link 压缩,而不是压缩所连结到的文件。

-z : 为 zip 文件增加注解。

-# : 设定压缩速度,-0 表示不压缩,-1 表示最快速度的压缩,

-9 表示最慢速度的压缩 ( 最佳化的压缩 ),预设值为 -6。

-@ : 从标准输入读取文件名称。

  解开压缩文件的 unzip 命令

  unzip 命令用于解开 .zip 文件,unzip 命令的语法和 zip 类似,参数在这里就不一一赘述了。

打包文件的 tar

  tar 程序位于 /usr/bin 目录中,一般 UNIX 上常用的压缩方式是先用 tar 将许多文件 ( 可能含有子目录 )打包成一个文件 ( gzip、compess 只能压缩一个文件 ),以 gzip 第 2 次压缩成 xxx.tar.gz ( 或称为 xxx.tgz ) 的文件。

  因为 tar 参数繁多,我先介绍 tar 的常用法 :

paul : ~/tar cvf filesname.tar <- 将所有文件包装成 filesname.tar,注意扩展名 .tar自行加上。

paul : ~/tar cvzf filesname.tar.gz <- 将所有文件包装成 filesname.tar,再用 gzip 压缩。

paul : ~/tar tvf filesname.tar <- 检查 filesname.tar 文件中包括了哪些文件。

paul : ~/tar xvf filesname.tar <- 将 filesname.tar 解开。

KDE 的 archiver

KDE 的 archiver 就像 MS-wondows 的 winzip,也能把 zip、gzip、tar、tar.gz 等的压缩文件解开。
发表于 2002-7-3 17:50:33 | 显示全部楼层
要解压缩 zip 文件,使用 unzip archive.zip 命令。如果想指定将档案扩展到哪个目录中,可以使用 -d 选项(例如,unzip file.zip -d /home/james/zips 将 file.zip 的内容抽取到 /home/james/zips 目录中)。
 楼主| 发表于 2002-7-3 19:28:13 | 显示全部楼层
为什么我在make all时有ERROR?
发表于 2002-7-3 19:52:53 | 显示全部楼层
把error发上来,让弟兄们看一下。
多谢!
发表于 2002-7-4 13:09:04 | 显示全部楼层
 楼主| 发表于 2002-7-4 21:43:15 | 显示全部楼层
听说可以用标准56K驱动,应该怎么装?
发表于 2002-7-4 21:50:37 | 显示全部楼层
兄弟,我们还是按照一个方法先试一下吧。最好先把错误的的信息发上来。这样才能解决问题。另外,你说的“标准56K驱动”哪儿有呢。。。哈。。。。。专一最重要。。。
 楼主| 发表于 2002-7-4 21:54:13 | 显示全部楼层
[root@localhost root]# cd /root/Desktop/driver
[root@localhost driver]# make clean
cd coredrv; make clean
make[1]: Entering directory `/root/Desktop/driver/coredrv'
rm -f *.o *~ core
make[1]: Leaving directory `/root/Desktop/driver/coredrv'
cd serialdrv;  make clean
make[1]: Entering directory `/root/Desktop/driver/serialdrv'
rm -f *.o *~ core
make[1]: Leaving directory `/root/Desktop/driver/serialdrv'
rm -f ham.o
rm -f hamcore.o
[root@localhost driver]# make all
cd coredrv; make ham;
make[1]: Entering directory `/root/Desktop/driver/coredrv'
cc -DLINUX -Wall -O -I /usr/src/linux/include -I../inc    -c -o coredrv.o coredr
v.c
In file included from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/delay.h:12,
                 from coredrv.c:34:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/signal.h:4,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/delay.h:12,
                 from coredrv.c:34:
/usr/include/asm/signal.h:107: parse error before `sigset_t'
/usr/include/asm/signal.h:107: warning: no semicolon at end of struct or union
/usr/include/asm/signal.h:110: parse error before `}'
In file included from /usr/include/linux/timer.h:18,
                 from /usr/include/linux/sched.h:81,
                 from /usr/include/linux/delay.h:12,
                 from coredrv.c:34:
/usr/include/linux/spinlock.h:131: parse error before `*'
In file included from coredrv.c:36:
/usr/include/linux/proc_fs.h:50: warning: `struct file' declared inside paramete
r list
/usr/include/linux/proc_fs.h:50: warning: its scope is only this definition or d
eclaration, which is probably not what you want.
/usr/include/linux/proc_fs.h:70: parse error before `atomic_t'
/usr/include/linux/proc_fs.h:70: warning: no semicolon at end of struct or union
/usr/include/linux/proc_fs.h:73: parse error before `}'
/usr/include/linux/proc_fs.h:199: warning: `struct tty_driver' declared inside p
arameter list
以上就是我在make all时的情况
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表