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)