Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of installing and configuring bochs in ubuntu14.04 (1)

2025-04-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "method of installing and configuring bochs in ubuntu14.04 (1)". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the method of installing and configuring bochs in ubuntu14.04 (1)".

First talk about their own configuration: the system is ubuntu14.04LTS64 bit, installed is: bochs-2.4.5, using the source code to compile the way to install (ps: originally intended to directly sudo apt-get install bochs in the command line, tried several times, it seems not to work, did not get it. It is said that there is no debugging function installed under the command line.

No more nonsense, start the installation:

1. Go to http://nchc.dl.sourceforge.net/project/bochs/bochs/2.4.5/bochs-2.4.5.tar.gz to download bochs-2.4.5.tar.gz first.

two。 Extract the downloaded source code:

Sudo tar zxvf bochs-2.4.5.tar.gz

3. Go to the bochs-2.4.5 directory and run the configure script, which will test your machine, the Cripple + compiler, and some libraries to determine which configuration is right for your machine. Run:

Sudo. / configure-enable-debugger-enable-disasm

(above-- enable-debugger-- enable-disasm is optional, these two are to enable debugging and disassembly functions)

4. When step 3 runs correctly, a Makefile file is generated, and then:

Sudo make

5. Installation:

Sudo make install

At this point, the bochs installation is complete. Here are some problems and solutions that may arise during compilation and installation:

Error A.configure: error: C++ preprocessor "/ lib/cpp" fails sanity check

Because Bochs is written in C++, the GNU gcc/g++ compiler will be installed here.

Solution:

Sudo apt-get install build-essentialsudo apt-get install gathers +

Error B.checking for default gui on this platform... X11

ERROR: X windows gui was selected, but X windows libraries were not found.

Solution:

Sudo apt-get install xorg-dev

Error C.ERROR: pkg-config was not found, or unable to access the gtk+-2.0 package.

Solution:

Sudo apt-get install libgtk2.0-dev

Error D.

Prompt for make / usr/bin/ld: gui/libgui.a (gtk_enh_dbg_osdep.o): undefined reference to symbol pthread_create@@GLIBC_2.1 / / lib/i386-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld r

Solution method

Add the following to the libs of makefile:

-lz-lrt-lm-lpthread

to be continued.

Thank you for your reading, the above is the content of "the method of installing and configuring bochs in ubuntu14.04 (1)". After the study of this article, I believe you have a deeper understanding of the method of installing and configuring bochs in ubuntu14.04. The specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report