【请教】config.sub的解析

feirly 2009-06-06 12:30:39
我在Ubuntu 9.04上面,编译net-snmp出现了下面的这个错误。
大概是config.sub无法解析。
我安装了autoconf和automake的。
还差什么么?

是怎么回事?

chensc@chensc-desktop:~/Code/net-snmp/net-snmp$ ./configure
checking what to build and install... agent apps man local mibs
using default persistent mask 077
using default temporary file pattern /tmp/snmpdXXXXXX
using default AgentX socket /var/agentx/master
using default "enterprise.net-snmp"
using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
using default notifications "NET-SNMP-MIB::netSnmpNotifications"
using OS default send buffer size for server sockets
using OS default recv buffer size for server sockets
using OS default send buffer size for client sockets
using OS default recv buffer size for client sockets
checking if I need to feed myself to ksh... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a sed that does not truncate output... /bin/sed
checking for find... find
checking for whoami... whoami
checking for autoconf... /usr/bin/autoconf
checking for autoheader... /usr/bin/autoheader
checking for perl... /usr/bin/perl
checking for ps... /bin/ps
checking for python... /usr/bin/python
checking for uname... /bin/uname
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 ISO C89... none needed
checking how to run the C preprocessor... gcc -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
configure: error: cannot run /bin/bash ./config.sub
chensc@chensc-desktop:~/Code/net-snmp/net-snmp$ ./config.sub
bash: ./config.sub:/bin/sh^M:损坏的解释器: 没有该文件或目录
chensc@chensc-desktop:~/Code/net-snmp/net-snmp$
...全文
1751 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
..楼主自问自答?
feirly 2009-06-07
  • 打赏
  • 举报
回复
嗯 在Ubuntu里重新用svn checkout就ok
估计是之前从windows里拷贝的时候,什么信息丢失了。
feirly 2009-06-07
  • 打赏
  • 举报
回复
又出现了新问题

chensc@chensc-desktop:~/Code/net-snmp/net-snmp/snmplib$ make
/bin/bash ../libtool --mode=compile gcc -I../include -I. -I../snmplib -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -Wall -Winline -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts -c -o snmp_client.lo snmp_client.c
:找不到命令line 399:
:找不到命令line 402:
:找不到命令line 406:
:找不到命令line 427:
:找不到命令line 470:
:找不到命令line 476:
../libtool: line 486: 在未预料的“newline”附近出现语法错误
../libtool: line 486: ` case `(set -o) 2>/dev/null` in *posix*) set -o posix;; 'sac
make: *** [snmp_client.lo] 错误 2

chensc@chensc-desktop:~/Code/net-snmp/net-snmp/snmplib$


真是搞不懂这个。。。。
feirly 2009-06-06
  • 打赏
  • 举报
回复
终于找到了solution:


解决方案:
把 /usr/share/libtool/config.guess 覆盖到相关软件自带的config.guess
把 /usr/share/libtool/config.sub 覆盖到相关软件自带的config.sub


http://linux.chinaunix.net/bbs/thread-1044471-1-1.html

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧