can't install php-devel on centos

后端 未结 9 1119
天涯浪人
天涯浪人 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:31
    sudo yum --enablerepo=remi install php-devel
    
    0 讨论(0)
  • 2020-12-08 22:31

    Taking into consideration that I have different things installed from different repos, the only way was to delete all packages installed from Remi's repo and install standard packages with yum.

    1) List all packages installed from some strange repo (in my case @remi), e.g. yum list installed | grep remi.

    2) Remove all packages completely from the system with yum remove <package_name>

    NOTE: after httpd restarting - all sites will DIE!

    3) Quickly install all bunch of things you need, e.g. yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc etc.

    4) Restart httpd and start mysql server.

    5) Your sites are alive again.

    The only thing why I did all this is cause I wanted to install eAccelerator for php to speed it up a little bit (and it's installation was impossible because of remi's repo packages), and I'm happy that I did it! All scripts works 2-10 times faster (I could not even imagine that my sites can respond so fast).

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

    For PHP 7.2 and similar, the following works for me(notice the remi-php72)

    sudo yum --enablerepo=remi,remi-php72 install php-devel  
    

    if this is about installing xdebug requirements for centos then:

    sudo yum --enablerepo=remi,remi-php72 install php-devel autoconf automake
    
    0 讨论(0)
提交回复
热议问题