LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1483|回复: 7

关于 xsupplicant安装的问题求助!

[复制链接]
发表于 2005-12-12 18:20:35 | 显示全部楼层 |阅读模式
我装的linux版本是 Mandrake 10.1 linux的,我在装上网客户端Xsupplicant的时候出现了以下问题,还请高手解答,谢谢先。
[drivers@localhost xsupplicant-1.2.2]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking whether byte ordering is bigendian... no
checking whether to build with OpenSSL support...
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Operating System... Linux
checking for CRYPTO_new_ex_data in -lcrypto... no
configure: error: library 'crypto' is required for Open1x
[drivers@localhost xsupplicant-1.2.2]$
发表于 2007-5-8 09:10:08 | 显示全部楼层
很久以前的帖子了,还是回一下吧,我以前好像也遇到过这个问题,记得不清楚了,需要安装另外一个包才行,好像是:
libcrypto++-dev
回复 支持 反对

使用道具 举报

发表于 2007-5-8 09:24:25 | 显示全部楼层
可是在的Everest Linux 0.4u1上安装也出现问题,在./configure的时候提示如下:
  1. [root@localhost xsupplicant-1.2.8]# ./configure
  2. checking for a BSD-compatible install... /usr/bin/install -c
  3. checking whether build environment is sane... yes
  4. checking for gawk... gawk
  5. checking whether make sets $(MAKE)... yes
  6. checking whether to enable maintainer-specific portions of Makefiles... no
  7. checking build system type... i686-pc-linux-gnu
  8. checking host system type... i686-pc-linux-gnu
  9. checking for ranlib... ranlib
  10. checking for gcc... gcc
  11. checking for C compiler default output file name... a.out
  12. checking whether the C compiler works... yes
  13. checking whether we are cross compiling... no
  14. checking for suffix of executables...
  15. checking for suffix of object files... o
  16. checking whether we are using the GNU C compiler... yes
  17. checking whether gcc accepts -g... yes
  18. checking for gcc option to accept ANSI C... none needed
  19. checking for style of include used by make... GNU
  20. checking dependency style of gcc... gcc3
  21. checking for bison... bison -y
  22. checking for flex... flex
  23. checking for yywrap in -lfl... yes
  24. checking lex output file root... lex.yy
  25. checking whether yytext is a pointer... yes
  26. checking how to run the C preprocessor... gcc -E
  27. checking for egrep... grep -E
  28. checking for ANSI C header files... yes
  29. checking whether byte ordering is bigendian... no
  30. checking user defined path to OpenSSL...
  31. checking user defined path to OpenSSL libraries...
  32. checking user defined path to OpenSSL headers...
  33. checking for sys/types.h... yes
  34. checking for sys/stat.h... yes
  35. checking for stdlib.h... yes
  36. checking for string.h... yes
  37. checking for memory.h... yes
  38. checking for strings.h... yes
  39. checking for inttypes.h... yes
  40. checking for stdint.h... yes
  41. checking for unistd.h... yes
  42. checking Operating System... Linux
  43. checking sys/socket.h usability... yes
  44. checking sys/socket.h presence... yes
  45. checking for sys/socket.h... yes
  46. checking for iwlib.h... no
  47. configure: error: header file <iwlib.h> is required for Xsupplicant
复制代码
似乎是提示没有iwlib.h这个文件,可是系统中的/usr/include目录下面明明是有这个文件的啊:
  1. [root@localhost xsupplicant-1.2.8]# ls /usr/include/ | grep iwlib
  2. iwlib.h
复制代码

我查了一下,这个文件是wireless-tools-devel这个包包含的,我系统里面也确实有装这个包的:
  1. #rpm -qa | grep wireless-tools
  2. wireless-tools-devel-29-1.pre20
  3. wireless-tools-29-1.pre20
复制代码

请问这是为什么呢?
回复 支持 反对

使用道具 举报

发表于 2007-5-8 13:07:59 | 显示全部楼层
用xrgsu吧
suse10.2系统,
先装expect,用yast即可。
cp xrgsu /usr/local/bin
chmod a+x /usr/local/bin/xrgsu
编写文本:
vi myxrgsu
#!/usr/bin/expect
set timeout 10
spawn xrgsu -a
expect "lease input your user name:"
send "sll4029409701c\r"
expect "lease input your password:"
send "1234\r"
expect "Use DHCP,1-Use,0-UnUse(Default: 0):"
send "0\r"
expect "Use default auth parameter,0-Use 1-UnUse(Default: 0):"
send "0\r"
sleep .2
set timeout 10
expect "lease input 'unauth' to LogOff:"
set timeout 360000
expect "xrgsu exit!"
sleep .2
send_user "Reconnect please.\r\r"
close
#end


   cp myxrgsu /usr/local/bin/
   chmod  a+x /usr/local/bin/myxrgsu
vi netlogin
#!/bin/bash
for ((i=1;i<=27;i++))
do
myxrgsu
done

其中27为重试次数。
cp netlogin /usr/local/bin/
chmod a+x /usr/local/bin/netlogin
echo netlogin >> /etc/init.d/boot.local
以后只要开机就自动运行了,还会自动重连,哈哈。
注意我的机子是固定IP。
回复 支持 反对

使用道具 举报

发表于 2007-5-8 14:00:58 | 显示全部楼层
谢谢,我试试看。我以前一直用的是xsupplicant,这里是以前写的具体过程:
http://www.lupaworld.com/912/viewspace_2630.html

我们公司内使用的验证类型是:PEAP-MSCHAPv2,不知道xrgsu是否支持。
回复 支持 反对

使用道具 举报

发表于 2007-5-8 18:28:33 | 显示全部楼层
刚才试了xrgsu,无法获得IP。
这个xrgsu是锐捷出的软件吧,它是使用的什么验证方法呢?
可能锐捷的产品和我们公司用的802.1x验证不一样,估计我还是要用xsupplicant,这个可以自定义验证类型,比如:
eap_tls, eap_md5, eap_gtc, eap-otp,eap-peap等等
回复 支持 反对

使用道具 举报

发表于 2007-5-8 19:51:43 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2007-5-8 19:52:36 | 显示全部楼层
刚才发帖子时卡住了,多点了一下“提交”,结果重复发帖了……
很高兴又可以在Linux下面上网了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表