LInux下的Bochs安装出现的问题

  $ tar zxvf bochs-2.4.2.tar.gz

    $ cd bochs-2.4.2

    $ ./configure --enable-debugger --enable-disasm

    $ make

    $ sudo make install

    错误1:

        checking how to run the C++ preprocessor... /lib/cpp
        configure: error: in `/home/lmy/Downloads/bochs-2.4.2':
        configure: error: C++ preprocessor "/lib/cpp" fails sanity check

    解决方法:sudo apt-get install build-essential

    错误2:

        checking for default gui on this platform... x11
        ERROR: X windows gui was selected, but X windows libraries were not found.
     解决方法:sudo apt-get install xorg-dev

     错误3:
        ERROR: pkg-config was not found, or unable to access the gtk+-2.0 package.
     解决方法:
sudo apt-get install libgtk2.0-dev

 

————————————————————————————

>history 查看终端历史

>sudo apt-get install bximage  装上虚拟软盘

>sudo apt-get install nasm

两篇有用的错误汇总:

http://blog.csdn.net/luobin1984/article/details/7775736

http://blog.csdn.net/kendyhj9999/article/details/6272334

原文地址:https://www.cnblogs.com/viviwind/p/2618607.html