rzsz的软件包比较特别,没有configure及make install 文件。执行make命令可以看到一些提示
[root@localhost src]# make
Please study the #ifdef's in crctab.c, rbsb.c, rz.c and sz.c,
make any necessary hacks for oddball or merged SYSV/BSD systems,
then type 'make SYSTEM' where SYSTEM is one of:
posix POSIX compliant systems
aix AIX systems
next NeXtstep v3.x (POSIX)
odt SCO Open Desktop
everest SCO Open Desktop (elf, strict)
sysvr4 SYSTEM 5.4 Unix
sysvr3 SYSTEM 5.3 Unix with mkdir(2), COHERENT 4.2
sysv SYSTEM 3/5 Unix
sysiii SYS III/V Older Unix or Xenix compilers
xenix Xenix
x386 386 Xenix
bsd Berkeley 4.x BSD, Ultrix, V7
tandy Tandy 6000 Xenix
dnix DIAB Dnix 5.2
dnix5r3 DIAB Dnix 5.3
amiga 3000UX running SVR4
POSIX POSIX compliant systems (SCO Open Desktop, strict)
undos Make the undos, todos, etc. program.
doc Format the man pages with nroff
根据自己的需求选择make参数,一般选posix就可以
[root@localhost src]# make posix
cc -O -DPOSIX -DMD=2 rz.c -o rz
size rz
text data bss dec hex filename
31339 1088 10640 43067 a83b rz
rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
cc -O -DPOSIX sz.c -o sz
size sz
text data bss dec hex filename
37316 1224 43344 81884 13fdc sz
rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand ===============》提示安装成功ln sz zcommandi
[root@localhost src]# cp rz sz /usr/bin/ 复制到/usr/bin下方便使用
[root@localhost src]# rz 上传本地文件到linux系统下
rz ready. Type "sz file ..." to your modem program
提示如下图片:
Starting zmodem transfer. Press Ctrl+C to cancel.
Transferring 1.txt...
Transferring 1.txt...
?rz 3.48 01-27-98 finished.
**** UNREGISTERED COPY *****
Please read the License Agreement in rz.doc
提醒:如果Upload files as ASCII打√的话,你上传的文件的MD5值会有问题,那么应用文件也就不能运行.