看板 NTUEE113HW 關於我們 聯絡資訊
這是今天很難過的灌了兩次 cygwin 灌了 4 次的 NS-2.35 所得到的小心得... 或許不是最好的解決方法,不過似乎可以解決無法安裝的問題 1. 使用者名稱 使用者名稱也好,資料夾路徑也好 不能有空格或是中文字 然而假如有的話也不用擔心,可以到 etc(在 cygwin 目錄底下,跟 home 同個地方) 去 vim passwd 把裡面跟使用者名稱相關的部分改成沒空格沒中文就 OK 了 假如像在下一樣是 vim 苦手 or 一開始忘了灌也沒關係 只要用檔案總管到 cygwin 底下的 etc 裡面用記事本開啟 passwd 進行修改 也可以達到同樣的效果 2. In file included from trace/cmu-trace.cc:56: ./mdart/mdart_function.h: In function `const char* bitString(nsaddr_t)': ./mdart/mdart_function.h:213: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc: In member function `void CMUTrace::format_mdart(Packet*, int)': trace/cmu-trace.cc:1087: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1089: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1102: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1104: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1106: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1119: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1121: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1123: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1125: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1138: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1140: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1142: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1155: error: no matching function for call to `std::bitset<16u>::to_string()' trace/cmu-trace.cc:1157: error: no matching function for call to `std::bitset<16u>::to_string()' Makefile:93: recipe for target `trace/cmu-trace.o' failed make: *** [trace/cmu-trace.o] Error 1 Ns make failed! 完全萬惡的一串錯誤指令,很有可能在進入等待約 20 分鐘的時候出現 這個問題似乎是只有 NS-2.35 才會出現的 原因根據 Google 大神表示 NS-2.35 非得使用 gcc4 compile 才可以通過 因此必須在一開始安裝 cygwin 的時候就要裝 gcc4 和 gcc4-g++ 這兩個套件 至於已經灌好的話...我也不知道 灌好以後我找不太到這兩個套件於是只好重灌了 這個部分有待強者補充 大致上個人遇到過這兩個問題 假如在安裝 NS-2.35 的時候,一開始沒有出現 " 你的名字有空白! " 或 " 你沒有 gcc4 唷! " 之類的訊息,大概...大概就會成功吧... 祝大家好運! -- 以上,純屬戲言 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.49.204
b98901056 :簽名檔XD 03/19 20:52
storym94374 :怒試一發 03/19 22:37
toshiba011 :推一個! 03/19 23:31
fu3mo6 :我的error和你不一樣QAQ 03/20 09:29
easypeng :推 03/21 20:24