ubuntu安装ns2 2.28出错
checking system version (for dynamic loading)... ./configure: line
5986: syntax error near unexpected token `('
./configure: line 5986: `echo "on `(hostname || uname -n) 2>/dev/null
| sed 1q`" >&5'
原因: "configure"文件有错.
解决: 用补丁
补丁:
--- configure 8 May 2005 22:37:17 -0000 1.1
+++ configure 8 Jun 2006 21:31:12 -0000 1.2
@@ -5082,7 +5082,7 @@
# results, and the version is kept in special file).
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
- system=MP-RAS-`awk '{print $3}' /etc/.relid'`
+ system=MP-RAS-`awk '{print $3}' /etc/.relid`
fi
echo "$as_me:$LINENO: result: $system" >&5
echo "${ECHO_T}$system" >&6
我不会用补丁,直接打开configure文件,找到2082行,把
system=MP-RAS-`awk '{print $3}' /etc/.relid'`改成
system=MP-RAS-`awk '{print $3}' /etc/.relid`即可。
改好后继续编译,又出错了,还是源代码有错,干脆下载新版的2.31编译,就没有这些问题了。
标签: Linux
0 条评论:
发表评论
订阅 博文评论 [Atom]
<< 主页