Compile bochs2.3.5 in Ubuntu

Source: Internet
Author: User
In Windows under the role of bochsdbg habits, under Ubuntu, found that bochs bag did not bochsdbg, to compile their own $ apt-getsourcebochs $ cdbochs-2.3.7 $. /configure -- enable-debugger -- enable-disasm -- prefix =/usr $ make $ sudocpbochs/usr/bin/

Bochsdbg in Windows is used to it. In Ubuntu, it is found that bochsdbg does not exist in the bochs package. You need to compile it by yourself.

$ Apt-get source bochs

$ Bochs-2.3.7 cd

$./Configure -- enable-debugger -- enable-disasm -- prefix =/usr

$ Make

$ Sudo cp bochs/usr/bin/bochsdbg

Compilation error Solution

Error 1: iso c ++ forbids declaration of 'hash _ map' with no type

Modify: add the hash_map namespace and modify bx_debug/symbols. cc.

# Include

Using namespace _ gnu_cxx;

Error 2: The yacc command is not found.

Modify: Install the yacc package

Sudo apt-get install bison ++

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.