Solution to the bochs installation problem

Source: Internet
Author: User

Like most software, the process of installing bochs in different operating systems is different. In windows, the most convenient method is to obtain the installer from the official bochs website for installation (select "DLX Linux Demo" during installation so that you can refer to its configuration file ).

In Linux, different distributions may have different processing methods. For example, if you are using Debian GNU/Linux or a close friend (such as UBUNTU), you can use the following command:
$ Sudo apt-Get install vgabios bochs-x bximage
When you type such a command, it will be installed in a short time. Disadvantage: There is no debugging function, which obviously cannot meet our needs, so the best method is to install from the source code.

First download the latest bochs source code version to: http://bochs.sourceforge.net/getcurrent.html

Http://bochs.sourceforge.net/cgi-bin/to... _ ideq12580

Download bochs-2.4.5.tar.gz, so the installation process is similar to this:

$ Tar zxvf bochs-2.4.5.tar.gz

$ Bochs-2.4.5 CD

$./Configure -- enable-debugger -- enable-disasm

$ Make

$ Sudo make install

Error 1:

Checking how to run the C ++ Preprocessor.../lib/CPP
Configure: Error: In '/home/lmy/downloads/ADS ':
Configure: error: C ++ preprocessor "/lib/cpp" fails sanity check

Solution: Install build-essential

Error 2:

Checking for default gui on this platform... x11
ERROR: X windows gui was selected, but X windows libraries were not found.
Solution: Install xorg-dev
Error 3:
ERROR: pkg-config was not found, or unable to access the gtk +-2.0 package.
Solution: Install libgtk2.0-dev

3. Run Bochs
Download the Linux image file http://bochs.sourceforge.net/guestos/linux-img.tar.gz on the Bochs Home Page
Decompress the file and generate linux-img to the folder. Switch the command line to this folder and execute bochs to read bochsrc from the current directory to start the virtual machine configuration.
Lmy @ ubuntu :~ /Downloads/linux-img $ bochs

The following error may be prompted:
Bochs is exiting with the following message:
[] Bochsrc: 11: directive 'IP' not understood

Change the configuration file bochsrc and comment out the ips lines.

 

Reprinted: http://hi.baidu.com/reince/blog/item/ec32746e17c716ca81cb4a98.html

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.