CentOS php-devel 설치

  다른 뜻에 대해서는 우분투 php5-dev 설치 문서를 참조하십시오.

1 개요[ | ]

CentOS php-devel 설치
phpize: command not found
Cannot find config.m4
  • phpize를 실행했을 때 config.m4 파일을 찾을 수 없다는 메시지
  • config.m4 가 있는 위치로 이동하여 phpize를 실행하면 된다.

2 확인[ | ]

[root@zetawiki ~]# phpize
-bash: phpize: command not found
[root@zetawiki ~]# phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
[root@zetawiki ~]# rpm -qa | grep php-devel
[root@zetawiki ~]# yum list php-devel
... (생략)
Available Packages
php-devel.x86_64                                5.3.3-46.el6_6                                updates
→ php-devel 설치 안됨. yum으로 설치 가능

3 php-devel 설치[ | ]

[root@zetawiki ~]# yum install php-devel
... (생략)
======================================================================================================
 Package                Arch                Version                        Repository            Size
======================================================================================================
Installing:
 php-devel              x86_64              5.3.3-46.el6_6                 updates              512 k
Installing for dependencies:
 autoconf               noarch              2.63-5.1.el6                   base                 781 k
 automake               noarch              1.11.1-4.el6                   base                 550 k

Transaction Summary
======================================================================================================
Install       3 Package(s)

Total download size: 1.8 M
Installed size: 7.0 M
Is this ok [y/N]: y
... (생략)
Installed:
  php-devel.x86_64 0:5.3.3-46.el6_6                                                                   

Dependency Installed:
  autoconf.noarch 0:2.63-5.1.el6                    automake.noarch 0:1.11.1-4.el6                   

Complete!

4 확인 2[ | ]

[root@zetawiki ~]# rpm -qa php-devel
php-devel-5.3.3-46.el6_6.x86_64
[root@zetawiki ~]# phpize
Cannot find config.m4. 
Make sure that you run '/usr/bin/phpize' in the top level syntaxhighlight directory of the module

5 같이 보기[ | ]

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