Summary of solution to the installation problems of the Virtual Machine Bochs in Ubuntu

Source: Internet
Author: User
I recently read "Implementation of an operating system" and encountered an N-plus ERROR when installing bochs on a virtual machine under Ubuntu. Now I have recorded the solution as follows (1): 1 "ERROR: xwindowsguiwasselected, butXwindowslibrarieswerenotfound. solution: 1sudoapt-getinstalllibx11-devxserver-xorg

I recently read "Implementation of an operating system" and encountered N errors when I installed bochs on a virtual machine under Ubuntu. Now I have recorded the following solutions:

(1) Appearance

1 "ERROR: X windows gui was selected, but X windows libraries were not found.

Solution:

1 sudo apt-get install libx11-dev xserver-xorg-dev

(2) Appearance

1 "ERROR: pkg-config was not found, or unable to access the gtk +-2.0 package. install pkg-config and the gtk + development package, or disable the gui debugger, or the wxWidgets display library (whichever is being used )."

2 ERROR: pkg-config was not found, or unable to access the gtk +-2.0 package. install pkg-config and the gtk + development package, or disable the gui debugger, or the wxWidgets display library (whichever is being used)

Solution:

1 sudo apt-get install libgtk2.0-dev

(3)

1 checking for C compiler default output file name... Configure: error: C compiler cannot create executables

Solution:

1 apt-get install libc6-dev

(4)

1 configure: error: C ++ preprocessor "/lib/cpp" fails sanity check

Solution:

1 apt-get install build-essential

(5)

1 X windows gui was selected, but X windows libraries were not found.

Solution: refer to the solution on the 04-year course forum and add-with-nogui during configuration (however, I tried it later and changed it to apt-get install xorg-dev)

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.