linux下如何安装rzsz
1.登陆linux,下载rzsz安装包
wget http://freeware.sgi.com/source/rzsz/rzsz-3.48.tar.gz
2.tar zxvf rzsz-3.48.tar.gz解压安装包
3.解压后生成scr目录,这个软件安装与常规的GNU软件不同—没有configure(配置)及make install (安装过程)。先执行命令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
4.根据自己的系统选择make的位置参数,一般情况下,选posix或linux就可以了。执行命令make posix
lnxxt@suse10-1085:~/rzsz/src> make posix
cc -O -DPOSIX -DMD=2 rz.c -o rz
size rz
text data bss dec hex filename
25726 648 10404 36778 8faa 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
30899 708 43084 74691 123c3 sz
rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
5.把相关文件复制到目录/usr/bin下面。这里只需要拷贝2个文件rz及sz,命令为:cp rz sz /usr/bin
6.现在可以测试一下rz sz命令是否可用了
7、如果用户出现权限错误,请参照如下修改
[root@test125 bin]# su - test
[test@test125 ~]$ rz -y
/dev/pts/3: Permission denied
[root@test125 bin]# cd /dev/pts
[root@test125 pts]# ll
总计 0
crw--w---- 1 root tty 136, 1 12-13 12:00 1
crw--w---- 1 root tty 136, 2 12-13 10:55 2
crw--w---- 1 root tty 136, 3 12-13 11:10 3
[root@test125 pts]# chmod 777 1 #同理为其他虚拟终端赋权即可