can't install php-devel on centos

后端 未结 9 1117
天涯浪人
天涯浪人 2020-12-08 22:03

I need help with installation of php-devel (I need it, cause it has phpize, which is necessary to install eAccelerator). But when I try to install php-devel with yum i

相关标签:
9条回答
  • 2020-12-08 22:11
    yum --enablerepo=remi,remi-php55 install php55-devel 
    

    worked for me

    0 讨论(0)
  • 2020-12-08 22:13

    About the initial question (install eAccelerator).

    This project is dead, and have never work with PHP >= 5.4.

    So if you need an opcode cache, please choose a maintained one. I would recommend "opcache", the official cache maintained by the PHP project, included in php-src since 5.5, and available in pecl for 5.4.

    And if you use "remi" repository, before trying to build an extension, check first if it is available in the repository, as most of the PECL extensions are available as RPM, see http://blog.remirepo.net/pages/PECL-extensions-RPM-status

    0 讨论(0)
  • 2020-12-08 22:23

    What I did was:

    yum search php53
    

    and it showed the php-devel file to install. Once I did the search and found the correct devel package, I simply copied and pasted the entire name after yum install. I executed

    yum install php53-devel.x86_64
    

    to get it

    0 讨论(0)
  • 2020-12-08 22:24

    Rather than running yum install php-devel you needed to run yum --enablerepo=remi,remi-php54 install php-devel .

    In short, just specifying which php-devel version you wanted from the remi repo. In your case you had php54 installed from remi so you needed to add in "remi-php54" . That would have successfully installed php-devel without the downtime.

    0 讨论(0)
  • 2020-12-08 22:26

    If you have php 5.5.x, centos 6.5 64 try this

    yum install php55w-devel
    

    You will need also gcc

    yum install gcc.x86_64
    
    0 讨论(0)
  • 2020-12-08 22:26

    php was installed from Remi's repository. You will need to either downgrade to the stock php, or get php-devel from the same place.

    0 讨论(0)
提交回复
热议问题