STEP 1. PHP 설치를 한다.


[root@localhost download]# tar xvfz php-5.6.16.tar.gz 

..... 중략 .....

php-5.6.16/EXTENSIONS

php-5.6.16/README.namespaces

php-5.6.16/pear/

php-5.6.16/pear/install-pear.txt

php-5.6.16/pear/install-pear-nozlib.phar

php-5.6.16/pear/fetch.php

php-5.6.16/pear/Makefile.frag

php-5.6.16/README.SUBMITTING_PATCH

[root@localhost download]# 

[root@localhost download]# cd php-5.6.16
[root@localhost php-5.6.16]# 


[root@localhost php-5.6.16]# ./configure --prefix=/usr/local/server/php --with-apxs2=/usr/local/server/apache/bin/apxs --with-mysql=/usr/local/server/mysql --with-config-file-path=/usr/local/server/apache/conf --disable-debug --enable-safe-mode --enable-track-vars --enable-sockets --with-mod_charset --with-charset=utf8 --with-xml --with-language=korean --enable-mailparse --enable-calender --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-url-includes --enable-trans-id --enable-inline-optimization --enable-bcmath --with-jpeg --with-png --with-zlib --with-jpeg-dir=/usr --with-png-dir=/usr/lib --with-freetype-dir=/usr --with-libxml-dir=/usr --enable-exif --with-gd --with-ttf --with-gettext --enable-sigchild --enable-mbstring
..... 중략 .....

checking libxml2 install dir... /usr

checking for xml2-config path... 

configure: error: xml2-config not found. Please check your libxml2 installation.

[root@localhost php-5.6.16]# 

[root@localhost php-5.6.16]# 

[root@localhost php-5.6.16]# 

[root@localhost php-5.6.16]# 

[root@localhost php-5.6.16]# yum -y install xml2-config

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Loading mirror speeds from cached hostfile

 * base: mirror.premi.st

 * extras: mirror.premi.st

 * updates: mirror.premi.st

No package xml2-config available.

Error: Nothing to do

[root@localhost php-5.6.16]# yum -y install xml2

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Loading mirror speeds from cached hostfile

 * base: mirror.premi.st

 * extras: mirror.premi.st

 * updates: mirror.premi.st

No package xml2 available.

Error: Nothing to do

[root@localhost php-5.6.16]# 





STEP 2. libxml2, libxml2-devel을 설치한다.

[root@localhost php-5.6.16]# yum -y install libxml2 libxml2-devel

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Loading mirror speeds from cached hostfile

 * base: mirror.premi.st

 * extras: mirror.premi.st

 * updates: mirror.premi.st

Resolving Dependencies

--> Running transaction check

---> Package libxml2.x86_64 0:2.7.6-14.el6_5.2 will be updated

--> Processing Dependency: libxml2 = 2.7.6-14.el6_5.2 for package: libxml2-python-2.7.6-14.el6_5.2.x86_64

---> Package libxml2.x86_64 0:2.7.6-20.el6_7.1 will be an update

---> Package libxml2-devel.x86_64 0:2.7.6-20.el6_7.1 will be installed

--> Running transaction check

---> Package libxml2-python.x86_64 0:2.7.6-14.el6_5.2 will be updated

---> Package libxml2-python.x86_64 0:2.7.6-20.el6_7.1 will be an update

--> Finished Dependency Resolution


Dependencies Resolved


=====================================================================================================================

 Package                       Arch                  Version                            Repository              Size

=====================================================================================================================

Installing:

 libxml2-devel                 x86_64                2.7.6-20.el6_7.1                   updates                1.1 M

Updating:

 libxml2                       x86_64                2.7.6-20.el6_7.1                   updates                803 k

Updating for dependencies:

 libxml2-python                x86_64                2.7.6-20.el6_7.1                   updates                323 k


Transaction Summary

=====================================================================================================================

Install       1 Package(s)

Upgrade       2 Package(s)


Total download size: 2.2 M

Downloading Packages:

(1/3): libxml2-2.7.6-20.el6_7.1.x86_64.rpm                                                    | 803 kB     00:00     

(2/3): libxml2-devel-2.7.6-20.el6_7.1.x86_64.rpm                                              | 1.1 MB     00:00     

(3/3): libxml2-python-2.7.6-20.el6_7.1.x86_64.rpm                                             | 323 kB     00:00     

---------------------------------------------------------------------------------------------------------------------

Total                                                                                1.0 MB/s | 2.2 MB     00:02     

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Updating   : libxml2-2.7.6-20.el6_7.1.x86_64                                                                   1/5 

  Updating   : libxml2-python-2.7.6-20.el6_7.1.x86_64                                                            2/5 

  Installing : libxml2-devel-2.7.6-20.el6_7.1.x86_64                                                             3/5 

  Cleanup    : libxml2-python-2.7.6-14.el6_5.2.x86_64                                                            4/5 

  Cleanup    : libxml2-2.7.6-14.el6_5.2.x86_64                                                                   5/5 

  Verifying  : libxml2-python-2.7.6-20.el6_7.1.x86_64                                                            1/5 

  Verifying  : libxml2-2.7.6-20.el6_7.1.x86_64                                                                   2/5 

  Verifying  : libxml2-devel-2.7.6-20.el6_7.1.x86_64                                                             3/5 

  Verifying  : libxml2-2.7.6-14.el6_5.2.x86_64                                                                   4/5 

  Verifying  : libxml2-python-2.7.6-14.el6_5.2.x86_64                                                            5/5 


Installed:

  libxml2-devel.x86_64 0:2.7.6-20.el6_7.1                                                                            


Updated:

  libxml2.x86_64 0:2.7.6-20.el6_7.1                                                                                  


Dependency Updated:

  libxml2-python.x86_64 0:2.7.6-20.el6_7.1                                                                           


Complete!

[root@localhost php-5.6.16]# 










'Linux tools' 카테고리의 다른 글

CentOS 6.6 x64에 OpenSSL 1.0.2e 설치하기  (3) 2016.01.04
APM 다운로드 링크 찾는 법  (0) 2016.01.04
블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,