惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
J
Java Code Geeks
雷峰网
雷峰网
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
Vulnerabilities – Threatpost
S
Securelist
The Hacker News
The Hacker News
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
AI
AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hacker News: Front Page
博客园 - 司徒正美
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
U
Unit 42
V
V2EX
V2EX - 技术
V2EX - 技术
L
LINUX DO - 最新话题
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
美团技术团队
小众软件
小众软件
F
Fortinet All Blogs

博客园 - 张少峰

设置pppoe时遇到“Oh, dear, I don't see the file '/etc/ppp/pppoe.conf' anywhere.”时的解决方法 安装ubuntu10.10时遇到ubi partman crashed,ubi-partman failed with exit code 141的解决方案 糗事的教训:做事一定要细心细心再细心 Reflector插件FileDisassembler汉化修改版 解压用Sixxpack2.2压缩过的程序,拿原始程序集 - 张少峰 - 博客园 利用网页挂马拿服务器的一种设想 第一次上首页,发一个玩具级的持久化工具~ python一些细微的东西 IndentationError: unindent does not match any outer indentation level Request的几种路径属性 一个方法返回多个值的解决方法 值类型与引用类型 用反射把程序集中一些泛型类实例化,怎么确定实例的类型? 父类实现IComparable<T>接口,子类无法使用~ [转载]谓词和操作(c#版) 静态变量的继承 XPath初学笔记(四) XPath初学笔记(三) XPath初学笔记(二)
在linuxdeepin10.12下源码安装bochs-2.4.6
张少峰 · 2011-03-08 · via 博客园 - 张少峰

 这是我在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安装完整过程