Ubuntu12.04 install Bochs with debugging Functions

Source: Internet
Author: User
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,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.