Senin, 29 Oktober 2018

Install apxs for httpd for fix apxs was not found on centos 7

  Tidak ada komentar
Some day i need to install php 5.6 from source, and the apache installed with httpd package, i get the following error on php installation process
Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)
Try to locate where is apxs executable file
[[email protected] php-5.6.27]# locate apxs
[[email protected] php-5.6.27]#
[[email protected] php-5.6.27]# which apxs
/usr/bin/which: no apxs in (/sbin:/bin:/usr/sbin:/usr/bin)
[[email protected] php-5.6.27]#
Finding out what httpd package installed 
[[email protected] php-5.6.27]# rpm -qa|grep httpd|sort
[[email protected] php-5.6.27]#
Install missing pakage, httpd-devel
[[email protected] php-5.6.27]# yum install httpd-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * ius:
 * remi-safe:
 * updates:
Resolving Dependencies
--> Running transaction check
---> Package httpd-devel.x86_64 0:2.4.6-80.el7.centos.1 will be installed
--> Processing Dependency: apr-util-devel for package: httpd-devel-2.4.6-80.el7.centos.1.x86_64
--> Processing Dependency: apr-devel for package: httpd-devel-2.4.6-80.el7.centos.1.x86_64
--> Running transaction check
---> Package apr-devel.x86_64 0:1.4.8-3.el7_4.1 will be installed
---> Package apr-util-devel.x86_64 0:1.5.2-6.el7 will be installed
--> Processing Dependency: openldap-devel(x86-64) for package: apr-util-devel-1.5.2-6.el7.x86_64
--> Processing Dependency: libdb-devel(x86-64) for package: apr-util-devel-1.5.2-6.el7.x86_64
--> Processing Dependency: expat-devel(x86-64) for package: apr-util-devel-1.5.2-6.el7.x86_64
--> Running transaction check
---> Package expat-devel.x86_64 0:2.1.0-10.el7_3 will be installed
---> Package libdb-devel.x86_64 0:5.3.21-24.el7 will be installed
---> Package openldap-devel.x86_64 0:2.4.44-15.el7_5 will be installed
--> Processing Dependency: cyrus-sasl-devel(x86-64) for package: openldap-devel-2.4.44-15.el7_5.x86_64
--> Running transaction check
---> Package cyrus-sasl-devel.x86_64 0:2.1.26-23.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package                            Arch                     Version                                  Repository                 Size
 httpd-devel                        x86_64                   2.4.6-80.el7.centos.1                    updates                   196 k
Installing for dependencies:
 apr-devel                          x86_64                   1.4.8-3.el7_4.1                          base                      188 k
 apr-util-devel                     x86_64                   1.5.2-6.el7                              base                       76 k
 cyrus-sasl-devel                   x86_64                   2.1.26-23.el7                            base                      310 k
 expat-devel                        x86_64                   2.1.0-10.el7_3                           base                       57 k
 libdb-devel                        x86_64                   5.3.21-24.el7                            base                       38 k
 openldap-devel                     x86_64                   2.4.44-15.el7_5                          updates                   803 k

Transaction Summary
Install  1 Package (+6 Dependent packages)

Total download size: 1.6 M
Installed size: 6.7 M
Is this ok [y/d/N]: y
Downloading packages:
(1/7): apr-util-devel-1.5.2-6.el7.x86_64.rpm                                                                   |  76 kB  00:00:00
(2/7): apr-devel-1.4.8-3.el7_4.1.x86_64.rpm                                                                    | 188 kB  00:00:00
(3/7): expat-devel-2.1.0-10.el7_3.x86_64.rpm                                                                   |  57 kB  00:00:00
(4/7): libdb-devel-5.3.21-24.el7.x86_64.rpm                                                                    |  38 kB  00:00:00
(5/7): cyrus-sasl-devel-2.1.26-23.el7.x86_64.rpm                                                               | 310 kB  00:00:00
(6/7): httpd-devel-2.4.6-80.el7.centos.1.x86_64.rpm                                                            | 196 kB  00:00:00
(7/7): openldap-devel-2.4.44-15.el7_5.x86_64.rpm                                                               | 803 kB  00:00:00
Total                                                                                                 5.2 MB/s | 1.6 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : apr-devel-1.4.8-3.el7_4.1.x86_64                                                                                   1/7
  Installing : expat-devel-2.1.0-10.el7_3.x86_64                                                                                  2/7
  Installing : cyrus-sasl-devel-2.1.26-23.el7.x86_64                                                                              3/7
  Installing : openldap-devel-2.4.44-15.el7_5.x86_64                                                                              4/7
  Installing : libdb-devel-5.3.21-24.el7.x86_64                                                                                   5/7
  Installing : apr-util-devel-1.5.2-6.el7.x86_64                                                                                  6/7
  Installing : httpd-devel-2.4.6-80.el7.centos.1.x86_64                                                                           7/7
  Verifying  : apr-devel-1.4.8-3.el7_4.1.x86_64                                                                                   1/7
  Verifying  : httpd-devel-2.4.6-80.el7.centos.1.x86_64                                                                           2/7
  Verifying  : apr-util-devel-1.5.2-6.el7.x86_64                                                                                  3/7
  Verifying  : libdb-devel-5.3.21-24.el7.x86_64                                                                                   4/7
  Verifying  : openldap-devel-2.4.44-15.el7_5.x86_64                                                                              5/7
  Verifying  : cyrus-sasl-devel-2.1.26-23.el7.x86_64                                                                              6/7
  Verifying  : expat-devel-2.1.0-10.el7_3.x86_64                                                                                  7/7

  httpd-devel.x86_64 0:2.4.6-80.el7.centos.1

Dependency Installed:
  apr-devel.x86_64 0:1.4.8-3.el7_4.1         apr-util-devel.x86_64 0:1.5.2-6.el7        cyrus-sasl-devel.x86_64 0:2.1.26-23.el7
  expat-devel.x86_64 0:2.1.0-10.el7_3        libdb-devel.x86_64 0:5.3.21-24.el7         openldap-devel.x86_64 0:2.4.44-15.el7_5

[[email protected] php-5.6.27]#
Find out where is apxs file installed
[[email protected] php-5.6.27]# which apxs
[[email protected] php-5.6.27]#

Find out that the needed package installed properly
[[email protected] php-5.6.27]# rpm -qa|grep httpd|sort
[[email protected] php-5.6.27]#

Tidak ada komentar :

Posting Komentar