The great God, please. To solve the Linux LAMP environment build extended compilation

Source: Internet
Author: User
Linux:ubuntu 14.04
php:5.5
Install PHP has been installed successfully and can phpinfo () output information, but in the compilation installation Pdo_mysql error (compiling other extensions is also the same problem) when generating configure I use the command is: sudo/usr/local/php/bin/ Phpize
This step is the system output is
Configuring for:
PHP Api version:20121113
Zend Module Api no:20121212
Zend Extension Api no:220121212
Then I execute the compile command:
sudo./configure--with-php-config =/usr/local/php/bin/php-config--with-pdo_mysql
The path to the Php-config file here is right, I promise.
Then the system outputs a bit more of the following information I marked the error message:

./configure:line 1290: =: Command not Found

Export colorterm= "Gnome-terminal"
Export config_shell= "/bin/bash"
Export display= ": 0"
Export dualcase= "1"
Export Home= "/HOME/PRG"
Export lang= "en_US. UTF-8 "
Export language= "C"
Export lc_address= "ZH_CN. UTF-8 "
Export lc_all= "C"
Export lc_identification= "ZH_CN. UTF-8 "
Export lc_measurement= "ZH_CN. UTF-8 "
Export lc_monetary= "ZH_CN. UTF-8 "
Export Lc_name= "ZH_CN. UTF-8 "
Export lc_numeric= "ZH_CN. UTF-8 "
Export lc_paper= "ZH_CN. UTF-8 "
Export Lc_telephone= "ZH_CN. UTF-8 "
Export Lc_time= "ZH_CN. UTF-8 "
Export Logname= "root"
Export ls_colors= "RS=0:DI=01;34:LN=01;36:MH=00:PI=40;33:SO=01;35:DO=01;35:BD=40;33;01:CD=40;33;01:OR=40;31;01: Su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31 :*. lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*. Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31 :*. deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:* . cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*. ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*. mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*. mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*. rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx= 01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3= 00;36:*.MPC=00;36:*.OGG=00;36:*.RA=00;36:*.WAV=00;36:*.AXA=00;36:*.OGA=00;36:*.SPX=00;36:*.XSPF=00;36: "
Export OLDPWD
Export path= "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Export pwd= "/home/prg/php/php-5.5.10/ext/pdo_mysql"
Export shell= "/bin/bash"
Export shlvl= "1"
Export sudo_command= "./configure--with-php-config =/usr/local/php/bin/php-config--with-pdo_mysql"
Export sudo_gid= "1000"
Export sudo_uid= "1000"
Export sudo_user= "PRG"
Export term= "Xterm"
Export user= "root"
Export Username= "root"
Export xauthority= "/var/run/gdm/auth-for-prg-nbd87m/database"
Export As_nl= "
"
Configure:WARNING:you should use--build,--host,--target
Configure:WARNING:invalid Host Type:/usr/local/php/bin/php-config

Checking for grep that handles long lines and-e .../bin/grep
Checking for egrep .../bin/grep-e
Checking for a sed this does not truncate output .../bin/sed
Checking for/usr/local/php/bin/php-config-cc ... No
Checking FOR/USR/LOCAL/PHP/BIN/PHP-CONFIG-GCC ... no
Checking for cc ... Cc
Checking for C compiler default output file name ... a.out
Checking whether the C compiler works ... yes
Checking whether we is cross compiling ... no
Checking for suffix of executables ...
Checking for suffix of object files ... o
Checking whether we are using the GNU C compiler ... yes
Checking whether cc accepts-g ... yes
Checking for CC option to accept ISO C89 ... none needed
Checking how to run the C preprocessor ... cc-e
Checking for ICC ... no
Checking for SUNCC ... no
Checking whether cc understands-c And-o together ... yes
Checking for System library directory ... lib
Checking if compiler supports-r ... no
Checking if compiler Supports-wl,-rpath,... Yes
Checking build system Type .../usr/local/php/bin/php-config

Configure:error:invalid value of canonical build

To finally stop compiling Google Baidu for a long time do not know how to solve the problem because the Linux real machine still do not know how to hope to describe the issue clearly, thank you to the great God


Reply to discussion (solution)

The Apt-get install method is recommended for automatic installation. No need to compile it yourself.

No one in Ubuntu under the source code installed??.

Strange, today re-boot can be ah haha

Rebooting can be estimated to be dependent on the library update.

  • 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.