注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

notes

@-@

 
 
 

日志

 
 
 
 

Ubuntu8,9安装g77  

2009-10-20 15:02:46|  分类: UNIX |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

安装termcap库文件,udo apt-get install libncurses5-dev

# echo "deb http://cz.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://cz.archive.ubuntu.com/ubuntu/ hardy universe
deb http://cz.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://cz.archive.ubuntu.com/ubuntu/ hardy-updates universe">>/etc/apt/sources.list

Then do

# apt-get update

to retrieve the updated package lists from the newly added repository.

You need to issue above commands as a root (hence the "#" sign as a shell prompt).

Then install g++-3.4 and g77.

# aptitude install g++-3.4 g77

Agian as root. You should be prompted for confirming downgrading of several packages. I did it with no harm yet. (Except that you will be warned you have partial upgrade available each time Update Manager will be looking for updates, simply cancel the prompt for partial upgrade.)

Update 08:08, 8 February 2009 (EST): Update Manager issue can be fixed by locking the version of those packages which are being prompted for update/upgrade - see this thread about how to do that.

Almost all of the externals support compiler of version 4.1, not higher. Default compiler in Intrepid is 4.3, so, you need to install it and then symlink gcc, cpp, and g++ to 4.1.

# aptitude install g++-4.1

and

# cd /usr/bin
# rm g++ gcc cpp
# ln -s g++-4.1 g++
# ln -s gcc-4.1 gcc


# ln -s cpp-4.1 cpp

That should be it.


  评论这张
 
阅读(799)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018