暂时无题

还没想到

在linuxdeepin10.12下源码安装bochs-2.4.6

 这是我在linuxdeepin10.12下源码安装bochs-2.4.6的过程,其中遇到了不少错误,google了半天,终于安装成功,现在记录下来,方便下一次安装。ubuntu下应该也适用。

 首先进入源码目录,然后执行  ./configure --enable-debugger --enable-disasm。结果遇到了第一个错误:

checking host system type... i686-pc-linux-gnu
checking target system 
type... i686-pc-linux-gnu
checking 
if you are configuring for another platform... no
checking 
for standard CFLAGS on this platform... 
checking 
for gcc... gcc
checking whether the C compiler works
... no
configure: error: in `
/home/dczsf/bochs-2.4.6':
configure: error: C compiler cannot create executables
See `config
.log' for more details.

  解决方法: sudo apt-get install gcc libc6-dev 

 接着执行   ./configure --enable-debugger --enable-disasm,又出现一个错误:

checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `
/home/dczsf/bochs-2.4.6':
configure: error: C
++ preprocessor "/lib/cpp" fails sanity check
See `config
.log' for more details.

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

再次执行 ./configure --enable-debugger --enable-disasm,仍然提示有错误:

checking alsa/asoundlib.h usability... no
checking alsa
/asoundlib.h presence... no
checking 
for alsa/asoundlib.h... no
checking 
for Sound Blaster 16 support... no
checking 
for standard PC gameport support... no
checking 
for gdb stub enable... no
checking 
for I/O Interface to the debugger... yes
checking 
for docbook2html... not_found
checking whether to build docbook documentation
... no
checking 
for wx-config... not_found
checking 
for wxWidgets configuration script... not_found
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.
解决方法:sudo apt-get install xorg-dev ,这个安装过程很慢,可以去干点其他事。

好了之后继续执行 ./configure --enable-debugger --enable-disasm,好事多磨,又出错了:

Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 
'gtk+-2.0' found
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).

 解决方法:sudo apt-get install libgtk2.0-dev,又一个巨慢的过程。

 ok,再次执行  ./configure --enable-debugger --enable-disasm,这次终于没有错误了。

  接着make,顺利完成。

  最后一步 sudo make install。

    make  libiodev.a
make[
1]: 正在进入目录 `/home/dczsf/bochs-2.4.6/iodev'
make[1]: “libiodev.a”是最新的。
make[
1]:正在离开目录 `/home/dczsf/bochs-2.4.6/iodev'
echo done
done
cd bx_debug 
&& \
    make  libdebug.a
make[
1]: 正在进入目录 `/home/dczsf/bochs-2.4.6/bx_debug'
make[1]: “libdebug.a”是最新的。
make[
1]:正在离开目录 `/home/dczsf/bochs-2.4.6/bx_debug'
echo done
done
...
rm 
-/usr/local/share/doc/bochs/README
cat .
/build/linux/README.linux-binary ./README > /usr/local/share/doc/bochs/README
install 
-644 ./.bochsrc /usr/local/share/doc/bochs/bochsrc-sample.txt

虽然有点小错误,不过这一步还算顺利,安装成功了。试着运行一下bochs和bximage,都没问题。看来这次运气真的很不错,上次快折腾吐血了才搞定。

附  整体安装过程:

 bochs安装完整过程

posted on 2011-03-08 11:32  张少峰  阅读(1844)  评论(0编辑  收藏  举报

导航