在centos上安裝lksctp

來源:互聯網
上載者:User

前幾天想寫寫sctp 代碼,發現在自己的centos上沒有相關的庫。於是找了一下。想下個安裝包,找了半天都是ubuntu的。

最後還是一招管用呵呵----yum

在http://sourceforge.net/projects/lksctp/files/ 網站上下載最新版本 lksctp-tools-1.0.13.tar.gz (當時最新的)

解壓該包,查看INSTALL 檔案,裡面有安裝方法:

1) Download and install the following binary RPMs from the lksctp sourceforge
   website at
        http://sourceforge.net/project/showfiles.php?group_id=26529
   * lksctp-tools-x.y.z-1.i386.rpm
   * lksctp-tools-x.y.z-devel-1.i386.rpm
   * lksctp-tools-x.y.z-doc-1.i386.rpm

   lksctp-tools-x.y.z-1.i386.rpm includes
   * SCTP run-time library.
   * Sample SCTP applications: sctp_darn and sctp_test.
   * withsctp: a tool when used with existing TCP binaries replaces TCP
               with SCTP.

   lksctp-tools-x.y.z-devel-1.i386.rpm includes
   * SCTP header file /usr/include/netinet/sctp.h
   * SCTP man pages.
   * Source code for sample SCTP applications.

   lksctp-tools-x.y.z-doc-1.i386.rpm includes
   * SCTP RFC's and internet drafts.

   If you want to run and play with the included sample SCTP applications or
   develop your own SCTP applications, you can skip the rest of the
   instructions.

.................................

另一個方法很簡單:

用yum 工具
yum list lksctp*   #查看相關的可用包

lksctp-tools.i686                              1.0.10-5.el6                         @base
lksctp-tools-devel.i686                        1.0.10-5.el6                         @base
lksctp-tools-doc.i686        


用yum install 把它們都安裝上,即可

還有一個方法:編譯源碼

首先解壓源碼:

#tar -xf  lksctp-tools-1.0.13.tar.gz

運行 ./bootstrap

運行 ./configure

此時產生makefie檔案

呵呵呵,接下來就知道了怎麼做了吧(make工具)

偶爾看到的一個資源網站----天津大學開源軟體鏡像,在此分享一下:

http://mirror.tju.edu.cn/centos/

參考:http://www.sctp.org/

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.