CentOS下安裝SecureCRT的sz/rz工具包

來源:互聯網
上載者:User

yum自動安裝:

yum install lrzsz

手動安裝方法如下:

定製安裝的linux可能沒有把rzsz包安裝到系統,這對用securecrt這樣的windows工具傳輸檔案特別不方便。為了使用這個方便的法門,可以手動安裝之。

1、 下載軟體 rzsz-3.48.tar.gz。登入linux,用命令

wget http://freeware.sgi.com/source/rzsz/rzsz-3.48.tar.gz下載。



2、解壓 tar zxvf rzsz-3.48.tar.gz

3、安裝 cd rzsz-3.48 ; make posix 。注意:這個軟體安裝與常規的GNU軟體不同—沒有configure(配置)及make install (安裝過程)。先執行命令make,看下Makefile裡面的參數。

centos下選擇選posix或linux就 可以了。

我make了一下顯示:-bash: make: command not found。

貌似CentOS下預設系統沒有安裝編譯器,SSH下安裝一下:yum -y install gcc automake autoconf libtool make

查看原始碼列印協助01 [root@miao src]#make posix

02 cc -O -DPOSIX -DMD=2 rz.c -o rz

03 size rz

04 text data bss dec hex filename

05 25444 648 10464 36556 8ecc rz

06 rm -f rb rx rc

07 ln rz rb

08 ln rz rx

09 ln rz rc

10 cc -O -DPOSIX sz.c -o sz

11 size sz

12 text data bss dec hex filename

13 30565 708 43072 74345 12269 sz

14 rm -f sb sx zcommand zcommandi

15 ln sz sb

16 ln sz sx

17 ln sz zcommand

18 ln sz zcommandi

19 [root@miao src]#

為了方便使用這個工具,把相關檔案複製到目錄/usr/bin下面。這裡只需要拷貝2個檔案rz及sz,命令為:cp rz sz /usr/bin
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.