2006年3月12日 星期日

Install Nachos in Ubuntu 6.04

Official Nachos 4.0 website
http://www.cs.washington.edu/homes/tom/nachos/

Unofficial Nachos 4.1
http://i30www.ira.uka.de/teaching/coursedocuments/nachos/index.php

Environment
OS:Ubuntu 6.04 dapper Flight 4
Kernel:Linux nature 2.6.15
Compiler:g++ 2.95

NOTE:
There is a problem with g++ version.4.0 about the flag ""-fwritable-strings"".
I can't sure other versions of g++ can work well.

Installation
$wget http://i30www.ira.uka.de/teaching/coursedocuments/nachos/NachOS-4.1_110.tgz
$tar xvf NachOS-4.1_110.tar
$cd NachOS-4.1/code/build.linux

Makefile, change two lines:

original
--------------------------
CC = g++
LD = g++

replace
-------------------------
CC = g++-2.95
LD = g++-2.95

edit ../lib/sysdep.cc, search for "" << "", and "" << errno << ""\n"";""
replace in to "" << "", and "" << ""\n"";""

then type
$make depend
$make

Enjoy it!

沒有留言: