Recently, I want to see the implementation of an operating system in yuanzhi, Ubuntu, which is newly installed on the virtual machine, and install Bochs according to the instructions in the book. to ensure consistency with the book, download Bochs2.3.5 from the Bochs official website. Install sudoapt-getinstallbuild-essential to install the compilation environment tarvxzfbochs-2.3.5cdbochs-2.3.5
Recently, I want to see how to install Bochs in Ubuntu 12.04, a new virtual machine, in yuanzhi's implementation of an operating system. To ensure consistency with the book, download Bochs2.3.5 from the Bochs official website.
Install bochs with debugging Functions
Sudo apt-get install build-essential install the compiling environment
Tar vxzf bochs-2.3.5
Cd bochs-2.3.5
./Configure -- enable-debugger -- enable-disasm
Make
Sudo make install
Note: An error is reported at./configure.
1. configure: error: C ++ preprocessor "/lib/cpp" fails sanity check
Solution:
To solve the error de> C ++ preprocessor "/lib/cpp" fails sanity checkde> while compiling Subversion, you need to download GCC, CPP and G ++ by installing the following packages
Gcc cpp g ++
But that is for other Linux distribution system, my is Ubuntu, so we shoshould install the needed libs
Sudo apt-get install gcc cpp g ++
This will download and install the essential lib that is build related, such as gcc g ++
2,
Solution: add the -- with-nogui parameter to the configuration,./configure -- with-nogui; or apt-get install xorg-dev.
If apt-get reports an error, use sudo aptitude install xorg-dev.
3,