ubuntu 安裝bochs

轉自: http://my.oschina.net/unclegeek/blog/56095

tar vxzf bochs-2.4.5.tar.gz 

cd bochs-2.4.5
./configure --enable-debugger   --enable-disasm
make 
sudo make install

結果出錯,解決的辦法是:

問題1:
   checking for C compiler default output file name… configure: error: C compiler cannot create       executables
   解決辦法:
   [thornbird@thornbird bochs-2.4]$ sudo apt-get install libc6-dev 
問題2: 
   ...
   checking how to run the C++ preprocessor... /lib/cpp
   configure: error: C++ preprocessor "/lib/cpp" fails sanity check
   See `config.log' for more details.
   解決方法:
   [thornbird@thornbird bochs-2.4]$ sudo apt-get install build-essential

  問題3: 
   [thornbird@thornbird bochs-2.4]$ make
   make: *** 沒有指明目標並且找不到 makefile.停止。
   解決方法:
   [thornbird@thornbird bochs-2.4]$ sudo apt-get install build-essential

   問題4: 
   ...
   checking for wxWidgets library version... 
   checking for default gui on this platform... x11
   ERROR: X windows gui was selected, but X windows libraries were not found.

   解決方法: 配置的時候加上"--with-nogui "
   或者改成:[thornbird@thornbird bochs-2.4]$sudo apt-get install xorg-dev (建議)

問題5:

    Package gtk+-2.0 was not found in the pkg-config search path.Perhaps you should add the directory         containing    `gtk+-2.0.pc'to the PKG_CONFIG_PATH environment variableNo package 'gtk+-2.0' foundERROR:      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).

    解決方法:

    [thornbird@thornbird bochs-2.4]$sudo apt-get install libgtk2.0-dev

  問題6:

    install: 無法獲取"./bochsdbg" 的文件狀態(stat): 沒有該文件或目錄

    解決辦法:需要在make後,將bochs拷貝一份,命名爲bochsdbg

    [thornbird@thornbird bochs-2.4]$ cp bochs bochsdbg

  問題7

   啓動出現黑屏

   在終端輸入c即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章