Error message in compiling boa-0.94-13 in Linux

Source: Internet
Author: User
Article Title: error message in compiling boa-0.94-13 in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Compile a c System in linux, including the lexical and syntax analysis modules.

Yacc is a generator of grammar analyzer. bison is the GNU version of yacc. Lex and YACC are tools used to construct lexical analyzer and syntax interpreter. With Lex and YACC, you can easily construct a syntax interpreter.

Make

Error 1:

Debian:/home/a/boa-0.94.13/src # make

Yacc-d boa_grammar.y

Make: yacc: Command not found

Make: *** [y. tab. c] Error 127

Solution:

Debian:/home/a/boa-0.94.13/src # apt-get install bison

Error 2:

Debian:/home/a/boa-0.94.13/src # make

Lex boa_lexer.l

Make: lex: Command not found

Make: *** [lex. yy. c] Error 127

Solution:

Debian:/home/a/boa-0.94.13/src # apt-get install flex

Error 3:

Debian:/home/a/sss/boa-0.94.13/src # make

Gcc-g-O2-pipe-Wall-I.-c-o util. o util. c

Util. c: 100: 1: error: pasting "t" and "->" does not give a valid preprocessing token

Make: *** [util. o] Error 1

Solution:

Modify src/compat. h

Find

# Define TIMEZONE_OFFSET (foo) foo #-> tm_gmtoff

Modify

# Define TIMEZONE_OFFSET (foo)-> tm_gmtoff

Then

Debian:/home/a/sss/boa-0.94.13/src # make clean

Debian:/home/a/sss/boa-0.94.13/src # make

Appears:

Debian:/home/a/sss/boa-0.94.13/src # make

Make: Nothing to be done for 'all '.

It indicates that make does not check what needs to be compiled. The library or application has been compiled.

Make mainly checks the timestamp. It does not need to be compiled as long as the target is later than the dependent file time.

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.