/Bin/bash: bison: commandnotfound solution

Source: Internet
Author: User
1. download source code android-2.1_r2, direct make2. error and solution: (1)/bin/bash: bison: commandnotfound solution: a @ ubuntu :~ /Work/android-2.1_r2 $ sudoapt-getinstallbison (2) make: *** Noruletomaketarget 'Pl

1. download the source code android-2.1_r2, directly make

2. Errors and solutions:

(1)/bin/bash: bison: command not found

Solution: a @ ubuntu :~ /Work/android-2.1_r2 $ sudo apt-get installbison

(2) make: *** No rule to make target 'Please-install-JDK-5.0,-update-12-or-higher, -which-you-can-download-from-java.sun.com ',

Needed by 'out/target/common/docs/api-stubs-timestamp'. Stop.

Solution: install JDK 5.0

1): According to the official document, the source code compilation must use JDK 5 to compile. Therefore, we use JDK 5 here.

2): update the source and run sudo vim/etc/apt/sources. list on the terminal.

3): Copy the following two lines to the end of the document in source. list:

Deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse

Deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updatesmultiverse

Save and exit.

4): execute sudo apt-get update to update the source.

5): configure the compiling environment and download the JDK5: sudo apt-get install sun-java5-jdk

(3)/bin/bash: g ++: command not found

Make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudo localize. o] Error 127

Solution: a @ ubuntu :~ /Work/android-2.1_r2 $ sudo apt-get installbuild-essential

(4) external/clearsilver/cgi. c: 22: 18: error: zlib. h: Nosuch file or directory

External/clearsilver/cgi. c: In function 'CGI _ compress ':

External/clearsilver/cgi. c: 885: error: 'Z _ stream' undeclared (first use in this function)

External/clearsilver/cgi. c: 885: error: (Each undeclaredidentifier is reported only once

External/clearsilver/cgi. c: 885: error: for each functionit appears in .)

External/clearsilver/cgi. c: 885: error: expected '; 'before' Stream'

External/clearsilver/cgi. c: 888: error: 'stream' undeclared (first use in this function)

External/clearsilver/cgi. c: 888: error: 'bytef' undeclared (first use in this function)

External/clearsilver/cgi. c: 888: error: expected expressionbefore ') 'token

External/clearsilver/cgi. c: 889: error: 'uint' undeclared (first use in this function)

External/clearsilver/cgi. c: 889: error: expected '; 'before' str'

External/clearsilver/cgi. c: 890: error: expected expressionbefore ') 'token

External/clearsilver/cgi. c: 892: error: 'ullong' undeclared (first use in this function)

External/clearsilver/cgi. c: 892: error: expected ') 'before' Stream'

External/clearsilver/cgi. c: 895: error: 'alloc _ func' undeclared (first use in this function)

External/clearsilver/cgi. c: 895: error: expected '; 'beforenumeric constant

External/clearsilver/cgi. c: 896: error: 'free _ func' undeclared (first use in this function)

External/clearsilver/cgi. c: 896: error: expected '; 'beforenumeric constant

External/clearsilver/cgi. c: 897: error: 'voidpf 'undeclared (first use in this function)

External/clearsilver/cgi. c: 897: error: expected '; 'beforenumeric constant

External/clearsilver/cgi. c: 900: error: 'Z _ DEFAULT_COMPRESSION 'undeclared (first use in this function)

External/clearsilver/cgi. c: 900: error: 'Z _ DEFLATED 'undeclared (first use in this function)

External/clearsilver/cgi. c: 900: error: 'max _ WBITS 'undeclared (first use in this function)

External/clearsilver/cgi. c: 900: error: 'Z _ DEFAULT_STRATEGY 'undeclared (first use in this function)

External/clearsilver/cgi. c: 901: error: 'Z _ OK 'undeclared (first use in this function)

External/clearsilver/cgi. c: 904: error: 'Z _ FINISH 'undeclared (first use in this function)

External/clearsilver/cgi. c: 905: error: 'Z _ STREAM_END 'undeclared (first use in this function)

External/clearsilver/cgi. c: In function 'CGI _ output ':

External/clearsilver/cgi. c: 1200: error: 'Z _ Null' undeclared (first use in this function)

External/clearsilver/cgi. c: 1201: error: expected ') 'before' bytef'

External/clearsilver/cgi. c: 1218: error: 'Z _ DEFLATED 'undeclared (first use in this function)

Make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi. o] Error 1

Solution: a @ ubuntu :~ /Work/android-2.1_r2 $ sudo apt-get installzlib1g-dev

(5)/bin/bash: flex: command not found

Make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 127

Solution: a @ ubuntu :~ /Work/android-2.1_r2 $ sudo apt-get installflex

(6)/usr/bin/ld: cannot find-lncurses

Collect2: ld returned 1 exit status

Make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error1

Solution: a @ ubuntu :~ /Work/android-2.1_r2 $ sudo apt-get installlibncurses-dev

(7) prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h: 55: 22: error: X11/Xlib. h: No such file or directory

Prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h: 56: 23: error: X11/Xatom. h: No such file or directory

In file encoded Ded fromexternal/qemu/android/skin/window. c: 19:

Prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h: 73: error: expected specifier-qualifier-list before 'xevent'

Prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h: 86: error: expected specifier-qualifier-list before 'display'

Make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/android/skin/window. o] Error 1

Solution: a @ ubuntu :~ /Work/android-2.1_r2 $ sudo apt-get installlibx11-dev

(8) sh: gperf: not found

Calling gperf failed: 32512 at./makeprop. pl line 96.

Make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/css/CSSPropertyNames. h]

Error 25

Make: *** Deleting file 'out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/css/CSSPropertyNames. h'

Solution: a @ ubuntu :~ /Work/android-2.1_r2 $ sudo apt-get installgperf

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.