日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

nachos模拟linux,Ubuntu 10.10成功安装Nachos

發布時間:2023/12/10 linux 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 nachos模拟linux,Ubuntu 10.10成功安装Nachos 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

終于將nachos安裝成功 寫文一篇已示慶賀,自己的安裝過程:

1. 使用Ubuntu 10.10安裝

2. 由于自帶gcc4.4,版本太高,卸載之

3. 網上下載3.4手動安裝(這費了不少勁,最后還是選擇的deb包自動安裝……因為2.96沒裝上)

4. 安裝Nachos4.1。make depend成功,沒有提示錯誤,高興,成功近在咫尺

5 make。n多錯誤出現。不過有人已經將錯誤解決方法貼出

在此引用(原作者未知):

可能碰到的問題(抄安裝教程的)

在安裝的過程中,由于g++版本兼容性的問題,可能在編譯的時候出現以下的錯誤:

1.cc1plus: error: unrecognized command line option "-fwritable-strings"

解決方法:修改NachOS-4.1/code/build.linux/Makefile,第203行,將-fwritable-str

ings去掉,即:

CFLAGS = -ftemplate-depth-100 -Wno-deprecated -g -Wall $(INCPATH) $(DEFINES)

$(HOSTCFLAGS) –DCHANGED

2.在編譯NachOS-4.1/code/lib/list.cc時可能會出現很多如下的錯誤:

../lib/list.cc: In member function ‘void SortedList::Insert(T)’:

../lib/list.cc:240: error: there are no arguments to ‘IsEmpty’ that

depend on a template parameter, so a declaration of ‘IsEmpty’ must be

available?? www.linuxidc.com

../lib/list.cc:240: error: (if you use ‘-fpermissive’, G++ will accept

your code, but allowing the use of an undeclared name is deprecated)

../lib/list.cc:241: error: ‘first’ was not declared in this scope

../lib/list.cc:242: error: ‘last’ was not declared in this scope

../lib/list.cc:243: error: ‘first’ was not declared in this scope

../lib/list.cc:251: error: ‘numInList’ was not declared in this scope

../lib/list.cc:255: error: ‘last’ was not declared in this scope

../lib/list.cc:258: error: ‘numInList’ was not declared in this scope

../lib/list.cc: In member function ‘void SortedList::SanityCheck() const

’:

../lib/list.cc:341: error: ‘first’ was not declared in this scope

../lib/list.cc:341: error: ‘last’ was not declared in this scope

../lib/list.cc: In member function ‘void SortedList::SelfTest(T*, int)’:

../lib/list.cc:371: error: there are no arguments to ‘RemoveFront’ that

depend on a template parameter, so a declaration of ‘RemoveFront’ must be

available

../lib/list.cc:374: error: there are no arguments to ‘IsEmpty’ that

depend on a template parameter, so a declaration of ‘IsEmpty’ must be

available

解決方法:修改NachOS-4.1/code/lib/list.cc文件,將錯誤信息中所出現的所有函數(如IsEmpty())和變量(first,last等)增加this指針,即:this->IsEmpty(),this->first,this->last等。 ”

將其提到的問題解決,再make

總結

以上是生活随笔為你收集整理的nachos模拟linux,Ubuntu 10.10成功安装Nachos的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。