分页: 1 / 1

Ubuntu20.04安裝後,nam不顯示

发表于 : 2020-05-27 21:49
fis581
我是Ubuntu新手,因學習需要用到NS的部分,目前安裝完NS2.35,但最後執行nam會顯示圖1的狀態,
但就是沒有圖2的東西跑出來,請求各位大大協助..........

我的環境是Win10直接安裝Ubuntu,所以只有Terminal視窗能使用

Re: Ubuntu20.04安裝後,nam不顯示

发表于 : 2020-05-28 1:09
bzimage
我不懂这个nam工具,但是在win10下安装的ubuntu应该是不能直接显示图形界面的。
你可以试着在win10上安装virtualbox,然后在virtualbox里面装ubuntu,再试一下你这个工具。

Re: Ubuntu20.04安裝後,nam不顯示

发表于 : 2020-05-28 6:43
fis581
我有嘗試在Virtual box里面装Ubuntu,測試檔图形界面也可正常顯示,但我跑自己寫的就會出錯
附上錯誤碼、程式碼,請問我要怎麼修改呢?

Re: Ubuntu20.04安裝後,nam不顯示

发表于 : 2020-05-28 10:07
astolia
我没学过这个,但我从网上搜了一下相关的代码,别人是先执行 set val(chan) Channel/WirelessChannel,再执行 set chan [new $val(chan)]。你的错误提示也是说在执行new $val(chan)时chan还没有被赋值

Re: Ubuntu20.04安裝後,nam不顯示

发表于 : 2020-06-01 20:03
fis5812
原帳號不能登入,也收不到新密碼mail......

set val(chan) Channel/WirelessChannel
set chan [new $val(chan)]
關於這兩組指令,我有嘗試對調,但依舊產生錯誤,如下
set god_ [create-god $val(nn)]
這要怎麼修改呢?

Re: Ubuntu20.04安裝後,nam不顯示

发表于 : 2020-06-04 12:26
astolia
fis5812 写了: 2020-06-01 20:03 set val(chan) Channel/WirelessChannel
set chan [new $val(chan)]
關於這兩組指令,我有嘗試對調,但依舊產生錯誤,如下
set god_ [create-god $val(nn)]
這要怎麼修改呢?
要会举一反三嘛。一样是因为之前没有对nn进行赋值。在前面加一句 set val(nn) X,把X换成你需要的数值

Re: Ubuntu20.04安裝後,nam不顯示

发表于 : 2020-07-09 19:23
LeoD
astolia 写了: 2020-06-04 12:26
fis5812 写了: 2020-06-01 20:03 set val(chan) Channel/WirelessChannel
set chan [new $val(chan)]
關於這兩組指令,我有嘗試對調,但依舊產生錯誤,如下
set god_ [create-god $val(nn)]
這要怎麼修改呢?
要会举一反三嘛。一样是因为之前没有对nn进行赋值。在前面加一句 set val(nn) X,把X换成你需要的数值
Right :Cool

Re: Ubuntu20.04安裝後,nam不顯示

发表于 : 2021-02-16 6:02
sarahsmith95
you should try to install Ubuntu in the Virtual box

Re: Ubuntu20.04安裝後,nam不顯示

发表于 : 2022-10-25 11:32
cnkilior

Re: Ubuntu20.04安裝後,nam不顯示

发表于 : 2024-01-15 18:56
hahnrobert33
You must be able to extrapolate from a single occurrence. The same is true because nn has never had an assignment. Place the sentence set val(nn) X in front of it and change X to the appropriate value.