Linux中国  设为主页
 收藏本站
 
当前位置: > 首页 ->网络应用 ->Firefox专题 -> FreeBSD用ports安装Firefox不成功
  相关分类: 
Firefox专题
服务器
搜索引擎优化SEO
网管天地
网络安全
网络工程
网络技术
无线技术
邮件服务器
  站内搜索: 
热门文章排行
热门文章排行 Linux上五十个最佳的FireFox扩展插件(04-13)
为Firefox开辟下载快车道(04-21)
五个你不能不装的Firefox插件(04-21)
Firefox高级应用技巧大放送(04-21)
Firefox播放rtsp视频 调用Realplay(04-13)
精采文章排行
精采文章排行 巧设参数 改善Firefox的内存占用(04-21)
Mozilla是什么(04-21)
五个你不能不装的Firefox插件(04-21)
新IE7颇受用户好评 但速度仍慢于Fir(04-21)
网站设计者必备的20个FireFox扩展(04-21)
  ·微软“援手”Firefox的真实意图何在? · 驯服火狐:Firefox配置文件技巧· FreeBSD用ports安装Firefox不成功· Firefox 1.0.7 简体中文版·光标漏洞面前的平等 Firefox也受攻击 ·Firefox插件FireBug跨站脚本执行漏洞 ·Firefox2和IE7漏洞 黑客窃取用户帐号 ·Firefox 2出炉 Mozilla自夸安全速度 ·看15大漏洞软件排行榜 Firefox居首

FreeBSD用ports安装Firefox不成功

作者:Webmaster   来源:Linuxdby.com   点击:   日期:2007-05-05



  今天在FreeBSD 5.4 Release中安装Firefox, 先更新ports tree到最新版本:
  
  FreeBSD# cvsup -g -L 2 /root/ports-supfile
  
  然后到Firefox的目录中去执行make:
  
  FreeBSD# cd /usr/ports/www/firefox
  FreeBSD# make
  
  没多久,系统就爆出了编译错误:
  
  nsHostResolver.h:95: error: ISO C++ forbids declaration of `PRAddrInfo' with no type
  nsHostResolver.h:95: error: expected `;' before '*' token
  nsHostResolver.h: In member function `PRBool nsHostRecord::HasResult() const':
  nsHostResolver.h:99: error: `addr_info' undeclared (first use this function)
  nsHostResolver.h:99: error: (Each undeclared identifier is reported only once for each function it appears in.)
  nsHostResolver.h: At global scope:
  nsHostResolver.h:209: error: `PRAddrInfo' has not been declared
  nsHostResolver.h:209: error: ISO C++ forbids declaration of `parameter' with no type
  nsDNSService2.cpp: In member function `virtual nsresult nsDNSRecord::GetCanonicalName(nsACString&)':
  nsDNSService2.cpp:95: error: 'class nsDerivedSafe' has no member named 'addr_info'
  nsDNSService2.cpp:96: error: 'class nsDerivedSafe' has no member named 'addr_info'
  nsDNSService2.cpp:96: error: `PR_GetCanonNameFromAddrInfo' undeclared (first use this function)
  nsDNSService2.cpp: In member function `virtual nsresult nsDNSRecord::GetNextAddr(PRUint16, PRNetAddr*)':
  nsDNSService2.cpp:112: error: 'class nsDerivedSafe' has no member named 'addr_info'
  nsDNSService2.cpp:113: error: 'class nsDerivedSafe' has no member named 'addr_info'
  nsDNSService2.cpp:113: error: `PR_EnumerateAddrInfo' undeclared (first use this function)
  nsDNSService2.cpp: In member function `PRUint16 nsDNSService::GetAFForLookup(const nsACString&)':
  nsDNSService2.cpp:528: error: `PR_AF_UNSPEC' undeclared (first use this function)
  gmake[4]: *** [nsDNSService2.o] Error 1
  gmake[4]: Leaving directory `/usr/ports/www/firefox/work/mozilla/netwerk/dns/src'
  gmake[3]: *** [libs] Error 2
  gmake[3]: Leaving directory `/usr/ports/www/firefox/work/mozilla/netwerk/dns'
  gmake[2]: *** [libs] Error 2
  gmake[2]: Leaving directory `/usr/ports/www/firefox/work/mozilla/netwerk'
  gmake[1]: *** [tier_9] Error 2
  gmake[1]: Leaving directory `/usr/ports/www/firefox/work/mozilla'
  gmake: *** [default] Error 2
  *** Error code 2
  
  引起这个问题的原因是Firefox在老版本的nspr上会存在问题,无法通过编译!
  
  于是决定安装新版的依赖包:
  
  FreeBSD# cd /usr/ports
  FreeBSD# make search name=nspr
  
  查出来有如下几个:
  Port:  nspr-4.4.1_1
  Path:  /usr/ports/devel/nspr
  
  Port:  dnsproxy-1.13
  Path:  /usr/ports/dns/dnsproxy
  
  Port:  transproxy-1.5
  Path:  /usr/ports/www/transproxy
  
  对他们一一进行make, make install后,再来安装firefox即可!

立即开始下载使用Fixfox:

 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<


上一篇: Firefox 1.0.7 简体中文版   下一篇: 驯服火狐:Firefox配置文件技巧
文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【论坛讨论

   相关文章:
·Firefox升级 系统管理员必要的安全考虑

   文章评论:(1条)
  
 请留名: 匿名评论   点击查看所有评论 论坛讨论
 

 声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。