首页 > 代码库 > centos 7.0 PHP 5.6.5 安装过程 (php+nginx)
centos 7.0 PHP 5.6.5 安装过程 (php+nginx)
php网址
http://php.net/downloads.php
首先下载
php-5.6.5.tar.gz
[root@localhost src]# wget http://cn2.php.net/distributions/php-5.6.5.tar.gz--2015-01-24 18:51:49-- http://cn2.php.net/distributions/php-5.6.5.tar.gz正在解析主机 cn2.php.net (cn2.php.net)... 202.108.5.184, 202.108.5.133正在连接 cn2.php.net (cn2.php.net)|202.108.5.184|:80... 已连接。已发出 HTTP 请求,正在等待回应... 200 OK长度:17601599 (17M) [application/x-gzip]正在保存至: “php-5.6.5.tar.gz”100%[======================================>] 17,601,599 2.99MB/s 用时 5.4s2015-01-24 18:51:54 (3.09 MB/s) - 已保存 “php-5.6.5.tar.gz” [17601599/17601599])
然后解压到指定目录
[root@localhost src]# tar zxvf php-5.6.5.tar.gz -C /usr/local/bin
太多文件 不能返回到顶部了~。。。。 就没截图了
[root@localhost src]# cd /usr/local/bin/php-5.6.5[root@localhost php-5.6.5]# lsacinclude.m4 php.ini-productionaclocal.m4 README.EXT_SKELbuild README.GIT-RULESbuildconf README.input_filterbuildconf.bat README.MAILINGLIST_RULESCODING_STANDARDS README.mdconfig.guess README.namespacesconfig.sub README.NEW-OUTPUT-APIconfigure README.PARAMETER_PARSING_APIconfigure.in README.REDIST.BINSCREDITS README.RELEASE_PROCESSext README.SELF-CONTAINED-EXTENSIONSEXTENSIONS README.STREAMSfooter README.SUBMITTING_PATCHgenerated_lists README.TESTINGgenfiles README.TESTING2header README.UNIX-BUILD-SYSTEMINSTALL README.WIN32-BUILD-SYSTEMinstall-sh run-tests.phpLICENSE sapiltmain.sh scriptsmain server-tests-config.phpmakedist server-tests.phpMakefile.frag snapshotMakefile.gcov stamp-h.inMakefile.global stub.cmakerpm testsmissing travismkinstalldirs TSRMnetware UPGRADINGNEWS UPGRADING.INTERNALSpear vcscleanphp5.spec.in win32php.gif Zendphp.ini-development
安装最基础的模块
libxml2-devel
[root@localhost php-5.6.5]# yum -y install libxml2-devel已加载插件:fastestmirrorbase | 3.6 kB 00:00extras | 3.4 kB 00:00updates | 3.4 kB 00:00Loading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.hustunique.com * updates: mirrors.skyshe.cn正在解决依赖关系--> 正在检查事务---> 软件包 libxml2-devel.x86_64.0.2.9.1-5.el7_0.1 将被 安装--> 正在处理依赖关系 libxml2 = 2.9.1-5.el7_0.1,它被软件包 libxml2-devel-2.9.1-5.el7_0.1.x86_64 需要--> 正在处理依赖关系 xz-devel,它被软件包 libxml2-devel-2.9.1-5.el7_0.1.x86_64 需要--> 正在检查事务---> 软件包 libxml2.x86_64.0.2.9.1-5.el7 将被 升级---> 软件包 libxml2.x86_64.0.2.9.1-5.el7_0.1 将被 更新---> 软件包 xz-devel.x86_64.0.5.1.2-8alpha.el7 将被 安装--> 解决依赖关系完成依赖关系解决================================================================================ Package 架构 版本 源 大小================================================================================正在安装: libxml2-devel x86_64 2.9.1-5.el7_0.1 updates 1.0 M为依赖而安装: xz-devel x86_64 5.1.2-8alpha.el7 base 44 k为依赖而更新: libxml2 x86_64 2.9.1-5.el7_0.1 updates 664 k事务概要================================================================================安装 1 软件包 (+1 依赖软件包)升级 ( 1 依赖软件包)总下载量:1.7 MDownloading packages:Delta RPMs disabled because /usr/bin/applydeltarpm not installed.(1/3): xz-devel-5.1.2-8alpha.el7.x86_64.rpm | 44 kB 00:00(2/3): libxml2-devel-2.9.1-5.el7_0.1.x86_64.rpm | 1.0 MB 00:00(3/3): libxml2-2.9.1-5.el7_0.1.x86_64.rpm | 664 kB 00:01--------------------------------------------------------------------------------总计 1.0 MB/s | 1.7 MB 00:01Running transaction checkRunning transaction testTransaction test succeededRunning transaction 正在更新 : libxml2-2.9.1-5.el7_0.1.x86_64 1/4 正在安装 : xz-devel-5.1.2-8alpha.el7.x86_64 2/4 正在安装 : libxml2-devel-2.9.1-5.el7_0.1.x86_64 3/4 清理 : libxml2-2.9.1-5.el7.x86_64 4/4 验证中 : libxml2-devel-2.9.1-5.el7_0.1.x86_64 1/4 验证中 : xz-devel-5.1.2-8alpha.el7.x86_64 2/4 验证中 : libxml2-2.9.1-5.el7_0.1.x86_64 3/4 验证中 : libxml2-2.9.1-5.el7.x86_64 4/4已安装: libxml2-devel.x86_64 0:2.9.1-5.el7_0.1作为依赖被安装: xz-devel.x86_64 0:5.1.2-8alpha.el7作为依赖被升级: libxml2.x86_64 0:2.9.1-5.el7_0.1完毕!
编译php 安装目录
/usr/etc/php
[root@localhost php-5.6.5]# ./configure --prefix=/usr/etc/phpchecking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for a sed that does not truncate output... /usr/bin/sedchecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking target system type... x86_64-unknown-linux-gnuchecking for cc... ccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether cc accepts -g... yeschecking for cc option to accept ISO C89... none neededchecking how to run the C preprocessor... cc -Echecking for icc... nochecking for suncc... nochecking whether cc understands -c and -o together... yeschecking how to run the C preprocessor... cc -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking minix/config.h usability... nochecking minix/config.h presence... nochecking for minix/config.h... nochecking whether it is safe to define __EXTENSIONS__... yeschecking whether ln -s works... yeschecking for system library directory... libchecking whether to enable runpaths... yeschecking if compiler supports -R... nochecking if compiler supports -Wl,-rpath,... yeschecking for gawk... gawkchecking for bison... nochecking for byacc... nochecking for bison version... invalidconfigure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).checking for re2c... noconfigure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.checking whether to enable computed goto gcc extension with re2c... nochecking whether to force non-PIC code in shared modules... nochecking whether /dev/urandom exists... yeschecking for pthreads_cflags... -pthreadchecking for pthreads_lib...Configuring SAPI moduleschecking for AOLserver support... nochecking for Apache 1.x module support via DSO through APXS... nochecking for Apache 1.x module support... nochecking whether to enable Apache charset compatibility option... nochecking for Apache 2.0 filter-module support via DSO through APXS... nochecking for Apache 2.0 handler-module support via DSO through APXS... nochecking for Apache 1.x (hooks) module support via DSO through APXS... nochecking for Apache 1.x (hooks) module support... nochecking whether to enable Apache charset compatibility option... nochecking for Caudium support... nochecking for setproctitle... nochecking sys/pstat.h usability... nochecking sys/pstat.h presence... nochecking for sys/pstat.h... nochecking for PS_STRINGS... nochecking for CLI build... yeschecking for Continuity support... nochecking for embedded SAPI library support... nochecking for FPM build... nochecking for Zeus ISAPI support... nochecking for LiteSpeed support... nochecking for Milter support... nochecking for NSAPI support... nochecking for phpdbg support... nochecking for phpdbg debug build... nochecking for PHTTPD support... nochecking for Pi3Web support... nochecking whether Roxen module is build using ZTS... nochecking for Roxen/Pike support...checking for thttpd... nochecking for TUX... nochecking for webjames... nochecking for CGI build... yeschecking for socklen_t in sys/socket.h... yeschecking for sun_len in sys/un.h... nochecking whether cross-process locking is required by accept()... nochecking for chosen SAPI module... nonechecking for executable SAPI binaries... cli cgiRunning system checkschecking for sendmail... /usr/sbin/sendmailchecking whether system uses EBCDIC... nochecking whether byte ordering is bigendian... nochecking whether writing to stdout works... This is the test message -- yeschecking for socket... yeschecking for socketpair... yeschecking for htonl... yeschecking for gethostname... yeschecking for gethostbyaddr... yeschecking for yp_get_default_domain... nochecking for __yp_get_default_domain... nochecking for yp_get_default_domain in -lnsl... yeschecking for dlopen... nochecking for __dlopen... nochecking for dlopen in -ldl... yeschecking for sin in -lm... yeschecking for inet_aton... yeschecking for ANSI C header files... (cached) yeschecking for dirent.h that defines DIR... yeschecking for library containing opendir... none requiredchecking for inttypes.h... (cached) yeschecking for stdint.h... (cached) yeschecking for dirent.h... yeschecking for ApplicationServices/ApplicationServices.h... nochecking for sys/param.h... yeschecking for sys/types.h... (cached) yeschecking for sys/time.h... yeschecking for netinet/in.h... yeschecking for alloca.h... yeschecking for arpa/inet.h... yeschecking for arpa/nameser.h... yeschecking for assert.h... yeschecking for crypt.h... yeschecking for dns.h... nochecking for fcntl.h... yeschecking for grp.h... yeschecking for ieeefp.h... nochecking for langinfo.h... yeschecking for limits.h... yeschecking for locale.h... yeschecking for monetary.h... yeschecking for netdb.h... yeschecking for pwd.h... yeschecking for resolv.h... yeschecking for signal.h... yeschecking for stdarg.h... yeschecking for stdlib.h... (cached) yeschecking for string.h... (cached) yeschecking for syslog.h... yeschecking for sysexits.h... yeschecking for sys/ioctl.h... yeschecking for sys/file.h... yeschecking for sys/mman.h... yeschecking for sys/mount.h... yeschecking for sys/poll.h... yeschecking for sys/resource.h... yeschecking for sys/select.h... yeschecking for sys/socket.h... yeschecking for sys/stat.h... (cached) yeschecking for sys/statfs.h... yeschecking for sys/statvfs.h... yeschecking for sys/vfs.h... yeschecking for sys/sysexits.h... nochecking for sys/varargs.h... nochecking for sys/wait.h... yeschecking for sys/loadavg.h... nochecking for termios.h... yeschecking for unistd.h... (cached) yeschecking for unix.h... nochecking for utime.h... yeschecking for sys/utsname.h... yeschecking for sys/ipc.h... yeschecking for dlfcn.h... yeschecking for assert.h... (cached) yeschecking for fopencookie... yeschecking for broken getcwd... nochecking for broken libc stdio... yeschecking whether struct tm is in sys/time.h or time.h... time.hchecking for struct tm.tm_zone... yeschecking for missing declarations of reentrant functions... donechecking for fclose declaration... okchecking for tm_gmtoff in struct tm... yeschecking for struct flock... yeschecking for socklen_t... yeschecking size of size_t... 8checking size of long long... 8checking size of long long int... 8checking size of long... 8checking size of int... 4checking size of intmax_t... 8checking size of ssize_t... 8checking size of ptrdiff_t... 8checking size of short... 2checking size of int... (cached) 4checking size of long... (cached) 8checking size of long long... (cached) 8checking for int8... nochecking for int16... nochecking for int32... nochecking for int64... nochecking for int8_t... yeschecking for int16_t... yeschecking for int32_t... yeschecking for int64_t... yeschecking for uint8... nochecking for uint16... nochecking for uint32... nochecking for uint64... nochecking for uint8_t... yeschecking for uint16_t... yeschecking for uint32_t... yeschecking for uint64_t... yeschecking for u_int8_t... yeschecking for u_int16_t... yeschecking for u_int32_t... yeschecking for u_int64_t... yeschecking for struct stat.st_blksize... yeschecking for struct stat.st_blocks... yeschecking for struct stat.st_rdev... yeschecking for size_t... yeschecking for uid_t in sys/types.h... yeschecking for struct sockaddr_storage... yeschecking for field sa_len in struct sockaddr... nochecking for IPv6 support... yeschecking for vprintf... yeschecking for _doprnt... nochecking for alphasort... yeschecking for asctime_r... yeschecking for chroot... yeschecking for ctime_r... yeschecking for cuserid... yeschecking for crypt... nochecking for flock... yeschecking for ftok... yeschecking for funopen... nochecking for gai_strerror... yeschecking for gcvt... yeschecking for getloadavg... yeschecking for getlogin... yeschecking for getprotobyname... yeschecking for getprotobynumber... yeschecking for getservbyname... yeschecking for getservbyport... yeschecking for gethostname... (cached) yeschecking for getrusage... yeschecking for gettimeofday... yeschecking for gmtime_r... yeschecking for getpwnam_r... yeschecking for getgrnam_r... yeschecking for getpwuid_r... yeschecking for grantpt... yeschecking for inet_ntoa... yeschecking for inet_ntop... yeschecking for inet_pton... yeschecking for isascii... yeschecking for link... yeschecking for localtime_r... yeschecking for lockf... yeschecking for lchown... yeschecking for lrand48... yeschecking for memcpy... yeschecking for memmove... yeschecking for mkstemp... yeschecking for mmap... yeschecking for nl_langinfo... yeschecking for perror... yeschecking for poll... yeschecking for ptsname... yeschecking for putenv... yeschecking for realpath... yeschecking for random... yeschecking for rand_r... yeschecking for scandir... yeschecking for setitimer... yeschecking for setlocale... yeschecking for localeconv... yeschecking for setenv... yeschecking for setpgid... yeschecking for setsockopt... yeschecking for setvbuf... yeschecking for shutdown... yeschecking for sin... yeschecking for snprintf... yeschecking for srand48... yeschecking for srandom... yeschecking for statfs... yeschecking for statvfs... yeschecking for std_syslog... nochecking for strcasecmp... yeschecking for strcoll... yeschecking for strdup... yeschecking for strerror... yeschecking for strftime... yeschecking for strnlen... yeschecking for strptime... yeschecking for strstr... yeschecking for strtok_r... yeschecking for symlink... yeschecking for tempnam... yeschecking for tzset... yeschecking for unlockpt... yeschecking for unsetenv... yeschecking for usleep... yeschecking for utime... yeschecking for vsnprintf... yeschecking for vasprintf... yeschecking for asprintf... yeschecking for nanosleep... yeschecking for nanosleep in -lrt... yeschecking for getaddrinfo... yeschecking for __sync_fetch_and_add... yeschecking for strlcat... nochecking for strlcpy... nochecking for getopt... yeschecking for utime.h... (cached) yeschecking whether utime accepts a null argument... yeschecking for working alloca.h... yeschecking for alloca... yeschecking for declared timezone... yeschecking for type of reentrant time-related functions... POSIXchecking for readdir_r... yeschecking for type of readdir_r... POSIXchecking for in_addr_t... yeschecking for crypt_r... noGeneral settingschecking whether to include gcov symbols... nochecking whether to include debugging symbols... nochecking layout of installed files... PHPchecking path to configuration file... DEFAULTchecking where to scan for configuration files...checking whether to enable PHP‘s own SIGCHLD handler... nochecking whether to explicitly link against libgcc... nochecking whether to enable short tags by default... yeschecking whether to enable dmalloc... nochecking whether to enable IPv6 support... yeschecking whether to enable DTrace support... nochecking how big to make fd sets... using system defaultConfiguring extensionschecking size of long... (cached) 8checking size of int... (cached) 4checking for int32_t... yeschecking for uint32_t... yeschecking for sys/types.h... (cached) yeschecking for inttypes.h... (cached) yeschecking for stdint.h... (cached) yeschecking for string.h... (cached) yeschecking for stdlib.h... (cached) yeschecking for strtoll... yeschecking for atoll... yeschecking for strftime... (cached) yeschecking which regex library to use... phpchecking whether to enable LIBXML support... yeschecking libxml2 install dir... nochecking for xml2-config path... /usr/bin/xml2-configchecking whether libxml build works... yeschecking for OpenSSL support... nochecking for Kerberos support... nochecking whether to use system default cipher list instead of hardcoded value... nochecking for PCRE library to use... bundledchecking whether to enable the SQLite3 extension... yeschecking bundled sqlite3 library... yeschecking for ZLIB support... nochecking if the location of ZLIB install directory is defined... nochecking whether to enable bc style precision math functions... nochecking for BZip2 support... nochecking whether to enable calendar conversion support... nochecking whether to enable ctype functions... yeschecking for cURL support... nochecking for QDBM support... nochecking for GDBM support... nochecking for NDBM support... nochecking for TCADB support... nochecking for Berkeley DB4 support... nochecking for Berkeley DB3 support... nochecking for Berkeley DB2 support... nochecking for DB1 support... nochecking for DBM support... nochecking for CDB support... nochecking for INI File support... nochecking for FlatFile support... nochecking whether to enable DBA interface... nochecking whether to enable DOM support... yeschecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking for ENCHANT support... nochecking whether to enable EXIF (metadata from images) support... nochecking for fileinfo support... yeschecking for strcasestr... yeschecking for utimes... yeschecking for strndup... yeschecking whether to enable input filter support... yeschecking pcre install prefix... nochecking whether to enable FTP support... nochecking OpenSSL dir for FTP... nochecking for GD support... nochecking for the location of libvpx... nochecking for the location of libjpeg... nochecking for the location of libpng... nochecking for the location of libXpm... nochecking for FreeType 2... nochecking for T1lib support... nochecking whether to enable truetype string function in GD... nochecking whether to enable JIS-mapped Japanese font support in GD... nochecking for GNU gettext support... nochecking for GNU MP support... nochecking for mhash support... nochecking whether to enable hash support... yeschecking whether byte ordering is bigendian... (cached) nochecking size of short... (cached) 2checking size of int... (cached) 4checking size of long... (cached) 8checking size of long long... (cached) 8checking for iconv support... yeschecking for iconv... yeschecking if iconv is glibc‘s... yeschecking if iconv supports errno... yeschecking if your cpp allows macro usage in include lines... yeschecking for IMAP support... nochecking for IMAP Kerberos support... nochecking for IMAP SSL support... nochecking for InterBase support... nochecking whether to enable internationalization support... nochecking whether to enable JavaScript Object Serialization support... yeschecking for ANSI C header files... (cached) yeschecking for LDAP support... nochecking for LDAP Cyrus SASL support... nochecking whether to enable multibyte string support... nochecking whether to enable multibyte regex support... yeschecking whether to check multibyte regex backtrack... yeschecking for external libmbfl... nochecking for external oniguruma... nochecking for mcrypt support... nochecking for MSSQL support via FreeTDS... nochecking for MySQL support... nochecking for specified location of the MySQL UNIX socket... nochecking for MySQLi support... nochecking whether to enable embedded MySQLi support... nochecking for Oracle Database OCI8 support... nochecking whether to enable Zend OPcache support... yeschecking for mprotect... yeschecking for sysvipc shared memory support... yeschecking for mmap() using MAP_ANON shared memory support... yeschecking for mmap() using /dev/zero shared memory support... yeschecking for mmap() using shm_open() shared memory support... yeschecking for mmap() using regular file shared memory support... yeschecking "whether flock struct is linux ordered"... "yes"checking "whether flock struct is BSD ordered"... "no"checking whether to enable pcntl support... nochecking whether to enable PDO support... yeschecking for PDO_DBLIB support via FreeTDS... nochecking for Firebird support for PDO... nochecking for MySQL support for PDO... nochecking Oracle OCI support for PDO... nochecking for ODBC v3 support for PDO... nochecking for PostgreSQL support for PDO... nochecking for sqlite 3 support for PDO... yeschecking for PDO includes... checking for PDO includes... /usr/local/bin/php-5.6.5/extchecking for usleep... (cached) yeschecking for nanosleep... (cached) yeschecking time.h usability... yeschecking time.h presence... yeschecking for time.h... yeschecking for fdatasync in -lrt... yeschecking for PostgreSQL support... nochecking for phar archive support... yeschecking for phar openssl support... nochecking whether to enable POSIX-like functions... yeschecking sys/mkdev.h usability... nochecking sys/mkdev.h presence... nochecking for sys/mkdev.h... nochecking for seteuid... yeschecking for setegid... yeschecking for setsid... yeschecking for getsid... yeschecking for setpgid... (cached) yeschecking for getpgid... yeschecking for ctermid... yeschecking for mkfifo... yeschecking for mknod... yeschecking for getrlimit... yeschecking for getlogin... (cached) yeschecking for getgroups... yeschecking for makedev... nochecking for initgroups... yeschecking for getpwuid_r... (cached) yeschecking for getgrgid_r... yeschecking for working ttyname_r() implementation... no, posix_ttyname() will be thread-unsafechecking for utsname.domainname... yeschecking for PSPELL support... nochecking for libedit readline replacement... nochecking for readline support... nochecking for recode support... nochecking whether to enable PHP sessions... yeschecking for mm support... nochecking whether pwrite works... yeschecking whether pread works... yeschecking whether to enable shmop support... nochecking whether to enable SimpleXML support... yeschecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking for SNMP support... nochecking OpenSSL dir for SNMP... nochecking whether to enable SOAP support... nochecking whether to enable sockets support... nochecking whether zend_object_value is packed... nochecking whether flush should be called explicitly after a buffered io... nochecking for crypt in -lcrypt... yeschecking for standard DES crypt... yeschecking for extended DES crypt... nochecking for MD5 crypt... yeschecking for Blowfish crypt... nochecking for SHA512 crypt... yeschecking for SHA256 crypt... yeschecking whether the compiler supports __alignof__... yeschecking whether the compiler supports aligned attribute... yeschecking for getcwd... yeschecking for getwd... yeschecking for asinh... yeschecking for acosh... yeschecking for atanh... yeschecking for log1p... yeschecking for hypot... yeschecking for glob... yeschecking for strfmon... yeschecking for nice... yeschecking for fpclass... nochecking for isinf... yeschecking for isnan... yeschecking for mempcpy... yeschecking for strpncpy... nochecking for working POSIX fnmatch... yeschecking for fork... yeschecking if your OS can spawn processes with inherited handles... yeschecking for res_nsearch... nochecking for __res_nsearch... nochecking for res_nsearch in -lresolv... nochecking for __res_nsearch in -lresolv... yeschecking for dns_search... nochecking for __dns_search... nochecking for dns_search in -lresolv... nochecking for __dns_search in -lresolv... nochecking for dns_search in -lbind... nochecking for __dns_search in -lbind... nochecking for dns_search in -lsocket... nochecking for __dns_search in -lsocket... nochecking for dn_expand... nochecking for __dn_expand... yeschecking for dn_skipname... nochecking for __dn_skipname... yeschecking for res_search... nochecking for __res_search... yeschecking whether atof() accepts NAN... yeschecking whether atof() accepts INF... yeschecking whether HUGE_VAL == INF... yeschecking whether HUGE_VAL + -HUGEVAL == NAN... yeschecking whether strptime() declaration fails... yeschecking wchar.h usability... yeschecking wchar.h presence... yeschecking for wchar.h... yeschecking for mblen... yeschecking for mbrlen... yeschecking for mbsinit... yeschecking for mbstate_t... yeschecking atomic.h usability... nochecking atomic.h presence... nochecking for atomic.h... nochecking for Sybase-CT support... nochecking whether to enable System V IPC support... nochecking whether to enable System V semaphore support... nochecking whether to enable System V shared memory support... nochecking for TIDY support... nochecking whether to enable tokenizer support... yeschecking whether to enable WDDX support... nochecking libexpat dir for WDDX... nochecking whether to enable XML support... yeschecking libexpat install dir... nochecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking whether to enable XMLReader support... yeschecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking for XMLRPC-EPI support... nochecking libexpat dir for XMLRPC-EPI... nochecking iconv dir for XMLRPC-EPI... nochecking whether to enable XMLWriter support... yeschecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking for XSL support... nochecking for zip archive read/writesupport... nochecking pcre install prefix... nochecking libzip... nochecking whether to enable mysqlnd... nochecking whether to disable compressed protocol support in mysqlnd... yeschecking whether whether compiler supports Decimal32/64/128 types... yesConfiguring PEARchecking whether to install PEAR... yesConfiguring Zendchecking for bison version... (cached) invalidconfigure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).checking for inttypes.h... (cached) yeschecking for stdint.h... (cached) yeschecking for limits.h... (cached) yeschecking malloc.h usability... yeschecking malloc.h presence... yeschecking for malloc.h... yeschecking for string.h... (cached) yeschecking for unistd.h... (cached) yeschecking for stdarg.h... (cached) yeschecking for sys/types.h... (cached) yeschecking for sys/time.h... (cached) yeschecking for signal.h... (cached) yeschecking for unix.h... (cached) nochecking for stdlib.h... (cached) yeschecking for dlfcn.h... (cached) yeschecking for size_t... (cached) yeschecking return type of signal handlers... voidchecking for uint... yeschecking for ulong... yeschecking for int32_t... yeschecking for uint32_t... yeschecking for vprintf... (cached) yeschecking for _doprnt... (cached) nochecking for working memcmp... yeschecking for working alloca.h... (cached) yeschecking for alloca... (cached) yeschecking for memcpy... (cached) yeschecking for strdup... (cached) yeschecking for getpid... yeschecking for kill... yeschecking for strtod... yeschecking for strtol... yeschecking for finite... yeschecking for fpclass... (cached) nochecking for sigsetjmp... nochecking whether sprintf is broken... nochecking for finite... (cached) yeschecking for isfinite... nochecking for isinf... (cached) yeschecking for isnan... (cached) yeschecking whether fp_except is defined... nochecking for usable _FPU_SETCW... yeschecking for usable fpsetprec... nochecking for usable _controlfp... nochecking for usable _controlfp_s... nochecking whether FPU control word can be manipulated by inline assembler... yeschecking whether double cast to long preserves least significant bits... nochecking for dlfcn.h... (cached) yeschecking whether dlsym() requires a leading underscore in symbol names... nochecking virtual machine dispatch method... CALLchecking whether to enable thread-safety... nochecking whether to enable inline optimization for GCC... yeschecking whether to enable Zend debugging... nochecking for inline... inlinechecking target system is Darwin... nochecking for MM alignment and log values... donechecking for memory allocation using mmap(MAP_ANON)... yeschecking for memory allocation using mmap("/dev/zero")... yeschecking for mremap... yeschecking for sigaction... yeschecking whether to enable zend signal handling... noConfiguring TSRMchecking for stdarg.h... (cached) yeschecking for sigprocmask... yesConfiguring libtoolchecking for ld used by cc... /usr/bin/ldchecking if the linker (/usr/bin/ld) is GNU ld... yeschecking for /usr/bin/ld option to reload object files... -rchecking for BSD-compatible nm... /usr/bin/nm -Bchecking how to recognize dependent libraries... pass_allchecking the maximum length of command line arguments... 1572864checking command to parse /usr/bin/nm -B output from cc object... okchecking for objdir... .libschecking for ar... archecking for ranlib... ranlibchecking for strip... stripchecking if cc supports -fno-rtti -fno-exceptions... nochecking for cc option to produce PIC... -fPICchecking if cc PIC flag -fPIC works... yeschecking if cc static flag -static works... nochecking if cc supports -c -o file.o... yeschecking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yeschecking whether -lc should be explicitly linked in... nochecking dynamic linker characteristics... GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... yeschecking whether to build shared libraries... yeschecking whether to build static libraries... yescreating libtoolappending configuration tag "CXX" to libtoolGenerating filesconfigure: creating ./config.statuscreating main/internal_functions.ccreating main/internal_functions_cli.c+--------------------------------------------------------------------+| License: || This software is subject to the PHP License, available in this || distribution in the file LICENSE. By continuing this installation || process, you are bound by the terms of this license agreement. || If you do not agree with the terms of this license, you must abort || the installation process at this point. |+--------------------------------------------------------------------+Thank you for using PHP.config.status: creating php5.specconfig.status: creating main/build-defs.hconfig.status: creating scripts/phpizeconfig.status: creating scripts/man1/phpize.1config.status: creating scripts/php-configconfig.status: creating scripts/man1/php-config.1config.status: creating sapi/cli/php.1config.status: creating sapi/cgi/php-cgi.1config.status: creating ext/phar/phar.1config.status: creating ext/phar/phar.phar.1config.status: creating main/php_config.hconfig.status: executing default commands
make
[root@localhost php-5.6.5]# make过程太长 就省略了 下面结果Generating phar.phpGenerating phar.pharPEAR package PHP_Archive not installed: generated phar will require PHP‘s phar extension be enabled.clicommand.incdirectorytreeiterator.incinvertedregexiterator.incdirectorygraphiterator.incpharcommand.incphar.incBuild complete.Don‘t forget to run ‘make test‘.
make install
[root@localhost php-5.6.5]# make installInstalling shared extensions: /usr/etc/php/lib/php/extensions/no-debug-non-zts-20131226/Installing PHP CLI binary: /usr/etc/php/bin/Installing PHP CLI man page: /usr/etc/php/php/man/man1/Installing PHP CGI binary: /usr/etc/php/bin/Installing PHP CGI man page: /usr/etc/php/php/man/man1/Installing build environment: /usr/etc/php/lib/php/build/Installing header files: /usr/etc/php/include/php/Installing helper programs: /usr/etc/php/bin/ program: phpize program: php-configInstalling man pages: /usr/etc/php/php/man/man1/ page: phpize.1 page: php-config.1Installing PEAR environment: /usr/etc/php/lib/php/[PEAR] Archive_Tar - installed: 1.3.12[PEAR] Console_Getopt - installed: 1.3.1[PEAR] Structures_Graph- installed: 1.0.4[PEAR] XML_Util - installed: 1.2.3[PEAR] PEAR - installed: 1.9.5Wrote PEAR system config file at: /usr/etc/php/etc/pear.confYou may want to add: /usr/etc/php/lib/php to your php.ini include_path/usr/local/bin/php-5.6.5/build/shtool install -c ext/phar/phar.phar /usr/etc/php/binln -s -f /usr/etc/php/bin/phar.phar /usr/etc/php/bin/pharInstalling PDO headers: /usr/etc/php/include/php/ext/pdo/
centos 7.0 PHP 5.6.5 安装过程 (php+nginx)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。