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正常。
posted @ 2011-10-19 12:01  全齐  阅读(765)  评论(0编辑  收藏  举报