歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> openSUSE 安裝Bochs 2.6

openSUSE 安裝Bochs 2.6

日期:2017/2/28 14:55:54   编辑:Linux教程

在openSUSE 下安裝Bochs 2.6筆記。

1.到Bochs官方下載源碼包,因為用到了調試功能。 Bochs 最新版 下載地址 http://sourceforge.net/projects/bochs/

2.安裝G++編譯器

如果不安裝G++編譯器, 在執行configure時就會出現一些錯誤。

3.執行配置,開啟調試和反匯編

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

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

出現這個錯誤時,請安裝xorg-dev包

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).

出現這個錯誤時,請運行:

sudo apt - get install libgtk2 . 0 - dev

6.重新執行配置(出錯處理如上)

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

然後運行make

make

再install

sudo make install

我試過不用sudo來直接執行,會出錯的,出錯提示不明確,應該是權限不夠

make :***[install_bin] 錯誤1

7.完成,執行bochs,嘻嘻,來個

www.linuxidc.com @linuxidc:~/Downloads/bochs-2.6> bochs
========================================================================
Bochs x86 Emulator 2.6
Built from SVN snapshot on September 2nd, 2012
Compiled on Nov 29 2012 at 18:01:48
========================================================================
00000000000i[ ] reading configuration from .bochsrc
00000000000p[ ] >>PANIC<< .bochsrc:190: unsupported CPU model option.
00000000000e[CTRL ] notify called, but no bxevent_callback function is registered
========================================================================
Bochs is exiting with the following message:
[ ] .bochsrc:190: unsupported CPU model option.
========================================================================
00000000000i[CPU0 ] CPU is in real mode (active)
00000000000i[CPU0 ] CS.mode = 16 bit
00000000000i[CPU0 ] SS.mode = 16 bit
00000000000i[CPU0 ] EFER = 0x00000000
00000000000i[CPU0 ] | EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000000
00000000000i[CPU0 ] | ESP=00000000 EBP=00000000 ESI=00000000 EDI=00000000
00000000000i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf ZF af PF cf
00000000000i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D
00000000000i[CPU0 ] | CS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | DS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | SS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | ES:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | FS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | GS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | EIP=00000000 (00000000)
00000000000i[CPU0 ] | CR0=0x00000000 CR2=0x00000000
00000000000i[CPU0 ] | CR3=0x00000000 CR4=0x00000000
bx_dbg_read_linear: physical memory read error (phy=0x0000000000000000, lin=0x00000000)
00000000000i[CTRL ] quit_sim called with exit code 1
www.linuxidc.com @linuxidc:~/Downloads/bochs-2.6>

Copyright © Linux教程網 All Rights Reserved