歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 10.04 源碼編譯安裝bochs 2.4.5

Ubuntu 10.04 源碼編譯安裝bochs 2.4.5

日期:2017/2/28 16:31:59   编辑:Linux教程

成功在Ubuntu 10.04下源碼編譯安裝bochs 2.4.5,主要是在配置Bochs的過程中出現了太多錯誤了。

如果出現

1、checking for C compiler default output file name… configure: error: C compiler cannot create executables

解決方法: apt-get install libc6-dev

2、configure: error: C++ preprocessor "/lib/cpp" fails sanity check

解決方法:apt-get install build-essential

3、X windows gui was selected, but X windows libraries were not found.

解決方法:參照04年課程論壇上的解決方法,配置的時候加上--with-nogui(不過後來試了,改成apt-get install xorg-dev也行 )

4、make: ***[install_bin] 錯誤 1

解決方法:其實很簡單,在命令前加上sudo就行,就是sudo make install

-------------------------分割線-------------------------

首先得到 bochs-2.4.5.tar.gz 安裝包,同樣可以從 www.bochs.sourceforget.net 上得到。

1. sudo apt-get install build-essential

2. sudo aptitude install xorg-dev

3. sudo aptitude install libgtk2.0-dev

4. tar vxzf bochs-2.4.5.tar.gz

5. cd bochs-2.4.5/

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

7. make

8. make install

Copyright © Linux教程網 All Rights Reserved