前幾天想寫寫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/