感谢支持
我们一直在努力

openSUSE 安装Bochs 2.6

在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>

赞(0) 打赏
转载请注明出处:服务器评测 » openSUSE 安装Bochs 2.6
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏