免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1205 | 回复: 0
打印 上一主题 下一主题

成功编译aMule 都是flex惹的祸 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-28 04:44 |只看该作者 |倒序浏览

                                                                                                     在安装aMule的过程中,我遇到了非常棘手的问题,google了几天也没有找到解决的办法,老是出现下面的错误提示:
Compiling Scanner.cpp./Scanner.l: In function ‘void LexFree()’:./Scanner.l:191: 错误:‘yylex_destroy’ 在此作用域中尚未声明make[3]: *** [libmuleappcore_a-Scanner.o] 错误 1make[2]: *** [all-recursive] 错误 1make[1]: *** [all-recursive] 错误 1make: *** [all] 错误 2
   发出了很多的求救信号,还是没有人理会。痛苦,只能靠自己了。
   再次google,只有一个网站有人出现类似问题,http://forum.amule.org/index.php?topic=15247.0,英文不好,再看看,再看看。
   
I had the same problem on a Mandriva system.
I thus checked the version of Flex that I had and it was 2.5.4a
I
upgraded it to 2.5.35 and the error did not go away while compiling. I
thus edited the Scanner.l file and applied the suggested patch.
It compiled just fine and the link worked like a charm.
Thus I would suggest upgrading the requirements in configure to force having a version post 2.5.4a and add the fix in Scanner.l
于是下载安装flex-2.5.35,一切顺利,但如何才能"add the fix in Scanner.l",于是小心进入aMule下面的src目录,找到此文件,flex Scanner.l,没有出错提示,有一点希望了。
再次编译,提示没有找到libcryptopp.a,再次进入../cry目录,make,呵呵,成功了。没亏我半夜起来折腾!
多少次想放弃安装aMule,原来成功离我这么近!
                                               
                                       
                                       
                                               
                                                       
                                                               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/71976/showart_1018751.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP