"ZTS와 pthreads를 지원하는 PHP 컴파일 설치"의 두 판 사이의 차이

(새 문서: ;Compiling PHP 5.5 with ZTS and pthreads Support ;ZTS와 pthreads를 지원하는 PHP 컴파일 설치 ==준비== * http://php.net/downloads.php 에서 최신 버전 확인 * 아래 ...)
 
1번째 줄: 1번째 줄:
;Compiling PHP 5.5 with ZTS and pthreads Support
;Compiling PHP 5.5 with ZTS and pthreads Support
;ZTS와 pthreads를 지원하는 PHP 컴파일 설치
;ZTS와 pthreads를 지원하는 PHP 컴파일 설치
==libxml2-devel 설치==
* 아래에서 ./configure 수행시 이 패키지가 필요하므로 미리 설치한다.
<source lang='dos'>
[root@jmnote ~]# yum install libxml2-devel
====================================================================================
Package              Arch          Version                    Repository      Size
====================================================================================
Installing:
libxml2-devel        x86_64        2.7.6-14.el6_5.2          updates        1.1 M
Updating for dependencies:
libxml2              x86_64        2.7.6-14.el6_5.2          updates        800 k
Transaction Summary
====================================================================================
Install      1 Package(s)
Upgrade      1 Package(s)
Total download size: 1.8 M
Is this ok [y/N]: y
</source>
<source lang='dos'>
... (생략)
Installed:
  libxml2.x86_64 0:2.7.6-14.el6_5.2    libxml2-devel.x86_64 0:2.7.6-14.el6_5.2   
Complete!
</source>


==준비==
==준비==
29번째 줄: 57번째 줄:


2014-07-17 16:25:18 (4.72 MB/s) - “php-5.5.14.tar.gz” saved [17160225/17160225]
2014-07-17 16:25:18 (4.72 MB/s) - “php-5.5.14.tar.gz” saved [17160225/17160225]
</source>
<source lang='dos'>
[root@jmnote src]# tar zxvf php-$VERSION.tar.gz
... (생략)
php-5.5.14/server-tests.php
php-5.5.14/README.EXT_SKEL
php-5.5.14/UPGRADING
</source>
<source lang='dos'>
[root@jmnote src]# cd /usr/local/src/php-$VERSION
[root@jmnote php-5.5.14]# ./configure --prefix=/usr --with-config-file-path=/etc --enable-maintainer-zts
... (생략)
config.status: creating ext/phar/phar.phar.1
config.status: creating main/php_config.h
config.status: executing default commands
</source>
</source>



2014년 7월 17일 (목) 16:28 판

Compiling PHP 5.5 with ZTS and pthreads Support
ZTS와 pthreads를 지원하는 PHP 컴파일 설치

1 libxml2-devel 설치

  • 아래에서 ./configure 수행시 이 패키지가 필요하므로 미리 설치한다.
[root@jmnote ~]# yum install libxml2-devel
====================================================================================
 Package              Arch          Version                    Repository      Size
====================================================================================
Installing:
 libxml2-devel        x86_64        2.7.6-14.el6_5.2           updates        1.1 M
Updating for dependencies:
 libxml2              x86_64        2.7.6-14.el6_5.2           updates        800 k

Transaction Summary
====================================================================================
Install       1 Package(s)
Upgrade       1 Package(s)

Total download size: 1.8 M
Is this ok [y/N]: y
... (생략)
Installed:
  libxml2.x86_64 0:2.7.6-14.el6_5.2     libxml2-devel.x86_64 0:2.7.6-14.el6_5.2    

Complete!

2 준비

VERSION=5.5.14
cd /usr/local/src
wget http://www.php.net/distributions/php-$VERSION.tar.gz
tar zxvf php-$VERSION.tar.gz
cd /usr/local/src/php-$VERSION
./configure --prefix=/usr --with-config-file-path=/etc --enable-maintainer-zts
make
make install
cp php.ini-development /etc/php.ini

3 실행

[root@jmnote ~]# VERSION=5.5.14
[root@jmnote ~]# cd /usr/local/src
[root@jmnote src]# wget http://www.php.net/distributions/php-$VERSION.tar.gz
--2014-07-17 16:26:17--  http://www.php.net/distributions/php-5.5.14.tar.gz
... (생략)
Saving to: “php-5.5.14.tar.gz”

100%[==========================================>] 17,160,225  4.72M/s   in 3.5s    

2014-07-17 16:25:18 (4.72 MB/s) - “php-5.5.14.tar.gz” saved [17160225/17160225]
[root@jmnote src]# tar zxvf php-$VERSION.tar.gz
... (생략)
php-5.5.14/server-tests.php
php-5.5.14/README.EXT_SKEL
php-5.5.14/UPGRADING
[root@jmnote src]# cd /usr/local/src/php-$VERSION
[root@jmnote php-5.5.14]# ./configure --prefix=/usr --with-config-file-path=/etc --enable-maintainer-zts
... (생략)
config.status: creating ext/phar/phar.phar.1
config.status: creating main/php_config.h
config.status: executing default commands

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}