ubuntu 升级后Modelsim无法使用的解决

把ubuntu升级到了11.10,感觉很不错,但是modelsim却无法使用。启动的时候后出现以下错误:

/home/oliver/altera/10.1sp1/modelsim_ase/bin/../linux_rh60/vsim".

  
检查了环境变量,跟以前没有变化,郁闷。。。
google 一番后找到这个帖子: Linux kernel 3.0 breaks Modelsim

Hello everyone!

Some people were arguing that the big version change from 2.6.39 to 3.0 is going to break some scripts. Guess what? They were right. 
The first thing i noticed after upgrading to Linux 3.0 rc1 (I'm on a x86_64) was something like "Error: cannot find /home/oliver/altera/10.1sp1/modelsim_ase/bin/../linux_rh60/vsim".

This is due to the following lines (beginning at line 198) in modelsim_ase/vco :
Code:
        case $utype in
          2.4.[7-9]*)       vco="linux" ;;
          2.4.[1-9][0-9]*)  vco="linux" ;;
          2.[5-9]*)         vco="linux" ;;
          2.[1-9][0-9]*)    vco="linux" ;;
          *)                vco="linux_rh60" ;;
        esac
As you can see 3.0 leads to vco="linux_rh60".

Simply add one line for 3.X and Modelsim is back working:
Code:
        case $utype in
          2.4.[7-9]*)       vco="linux" ;;
          2.4.[1-9][0-9]*)  vco="linux" ;;
          2.[5-9]*)         vco="linux" ;;
          2.[1-9][0-9]*)    vco="linux" ;;
	  3.[0-9]*)	    vco="linux" ;;
          *)                vco="linux_rh60" ;;
        esac
Kind regards,
Oliver
按照以上方法,modelsim正常。

转载于:https://www.cnblogs.com/quanqi/archive/2011/10/19/2217465.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值