第一次安cygwin后安sipp源码

第一次安cygwin后安sipp源码。
cygwin下
make
no (g)make found
我就压根没有安make。。。。。。
重新安装,打开cygwin_setup.exe。
在package页面,筛选“make”等需要的包,尽量一次安完。

非常讨厌在linux下搞window,window下搞linux,mac下安window这类的。想哭。
参考了别人的博客 http://blog.csdn.net/paulluo0739/archive/2008/09/10/2910993.aspx

http://sipp.sourceforge.net/
https://sourceforge.net/projects/sipp/files/sipp/
相关的安装包的话,现在3.2版本有win32的安装包,根据上面那篇博客和官方提醒来缕一下步骤


  • Warning
SIPp compiles under CYGWIN on Windows, provided that you installed IPv6 extension for CYGWIN ( http://win6.jp/Cygwin/ ), as well as libncurses and (optionally OpenSSL and WinPcap). SCTP is not currently supported.
  • To compile SIPp on Windows with pcap (media support), you must:
    • Copy the WinPcap developer package to "C:\cygwin\lib\WpdPack"
    • Remove or rename "pthread.h" in "C:\cygwin\lib\WpdPack\Include", as it interfers with pthread.h from cygwin
    • Compile according to the instructions above.


所以:第一步,安装cygwin,记得加上所需的包;第二步,WpdPack添加进去;下载winSIPp的安装包,安装到上面说的位置。
不同的是:
1.下载的WpdPack(2010/06/25),已经没有“pthread.h”了。
2.暂时没有安IPv6支持

在官网放到sourceforge上的sipp-3.x其实也可以源码安装在crywin,具体应该像linux上安装那样。不过我安cygwin时漏了很多包。安完后索性用window的exe按了。
需要的package:
gcc-core
gcc-g++
libncurses-devel
Libncurses
openssl-devel
make
跟linux走的。(接下来的不要做,反正我用winexe是没成功)
按照上篇博客的方法安装winsipp:" 注意选择安装路径为Cygwin的安装路径加上/home/username/,这里的username是进入cygwin中显示的名字,也就是Windows的用户名"
使用的话进入cygwin安装目录下(在cygwin终端)的/home/username/sipp_3.x
然后./sipp.exe。。。。。。根本就**不行。在命令行直接sipp是不行的:
Error opening terminal:: xterm 或cygwin
$ xterm
xterm: Xt error: Can't open display:
xterm: DISPLAY is not set

cygwin warning:
MS-DOS style path detected: c:\usr\share\terminfo
Preferred POSIX equivalent is: /cygdrive/c/usr/share/terminfo
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Error opening terminal: cygwin.

网上说改环境变量也改了,新的window powershell也用了。
删了安装版,试回了源码版。


三个配置只有openSSL可以编译,反正就这样安上了。不过不能用pcap play做媒体流问题很大。


试了一下网上讲的pcap源码编译(参考阅读[5])
Administrator@Lenovo-PC ~/sipp-3.3.990
$ which packet.dll
/cygdrive/c/windows/system32/packet.dll

Administrator@Lenovo-PC ~/sipp-3.3.990
$ which wpcap.dll
/cygdrive/c/windows/system32/wpcap.dll
unrecognized command line option ‘-mno-cygwin’

pcap sctp的文件确认有了
但是无法编译,出现上述-mno-cygwin问题
把gcc软件包卸载后重新下载安装最新版本的
....未解决。。。。
google了下,国内的大部分都是说加上-mno-cygwin就可以不依赖cygwin1.dll库了,但是并没有说新版本的gcc不支持-mno-cygwin编译选项了。

REFERENCE:
[1] https://wenku.baidu.com/view/06dc785f770bf78a64295499.html
[2] https://lists.mcs.anl.gov/pipermail/mpich-discuss/2010-July/007509.html
[3] https://superuser.com/questions/901850/libpcap-on-cygwin
[4] https://stackoverflow.com/questions/2396251/help-installing-libpcap-on-cygwin
[5] https://www.winpcap.org/devel.htm
[6] http://blog.sina.com.cn/s/blog_81b434db0101f3jp.html


centOS7没什么大问题

你可能感兴趣的:(笔记)