Note: Some packages from the default update-source-list are broken or not exist I suggest you to change you apt source-list . USTC is fine.
1.
configure: error: DEPRECATED - enabled automatically for CPU_LEVEL >= 6
到底是哪里出了问题,我把--enable-smp删掉,运行还是那个错误。就怀疑是其他配置参数有问题。
运行./configure --help查看配置信息,--enable-pae enables PAE support (deprecated) 表明系统默认有这个选项,如果继续配置--pae就报错,还有很多这样的,通过help我们就知道那些参数不应该配置,那些必须配置。具体配置命令:
./configure --enable-disasm --enable-debugger --enable-all-optimizations --enable-new-pit --enable-4meg-pages --enable-cpu-level=6 --enable-smp --enable-cdrom --disable-docbook --disable-reset-on-triple-fault --with-all-libs
--with-x --with-x11 --with-nogui
2.
ERROR: X windows gui was selected, but X windows libraries were not found.后来解决了,sudo aptitude install xorg-dev
(参考http://blog.163.com/i.kenting/blog/static/1226902032009625102310341/)
When install bochs, While I compile come file with ./configure there give a msg:
> configure: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it
> checking for default gui on this platform... x11
> ERROR: X windows gui was selected, but X windows libraries were not found.
I just follow this :
You need to install the development libraries. To compile a wxWidgets
program you need libwxbase2.4-dev, libwxbase2.4-dev, and
libwxgtk2.4-contrib-dev (for a wx2.4 program) or libwxgtk2.6-dev (for a
wx2.6 program). For an X11 program you need x-window-system-dev, which
should pull in all the dependencies you need.
but I couldn't install the x-window-system-dev with: sudo apt-get install x-window-system-dev
the to solved this just:
sudo aptitude install xorg-dev everything is fine with the ./configure now .
sudo apt-get install xorg-dev无法安装,吼吼,又学到了个aptitude 。
再./configure 试试,晕,又有错误,错误提示是
checking for display libraries... X11
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 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).
这个安装了个 gtk就解决了
sudo aptitude install libgtk2.0-dev
3.
configure: WARNING: Bochs for wxWidgets
安装 libwxbase-2.8.dev
4。
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/home/lmy/Downloads/bochs-2.4.2':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
5.
make: ***[install_bin] 错误 1
解决方法:其实很简单,在命令前加上sudo就行,就是sudo make install