歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 10.10成功安裝Nachos

Ubuntu 10.10成功安裝Nachos

日期:2017/2/28 16:21:04   编辑:Linux教程

終於將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<T>::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<T>::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<T>::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

Copyright © Linux教程網 All Rights Reserved