PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so'

前端 未结 6 1322
广开言路
广开言路 2021-01-05 11:19

I am trying to update laravel using composer update on ubuntu 06.04 but everytime i run composer update this warning always comes up.

PHP Warnin         


        
6条回答
  •  春和景丽
    2021-01-05 12:05

    First, open up a terminal window and install the necessary dependencies with the commands:

    sudo apt-get -y install gcc make autoconf libc-dev pkg-config
    sudo apt-get -y install php7.2-dev
    sudo apt-get -y install libmcrypt-dev
    

    Once the dependencies have been installed, you can install mcrypt with the command:

    sudo pecl install mcrypt-1.0.1
    

    And there you go. Mcrypt is now installed. Go back to the process of installing whatever server software that depends upon this extension and you should be good to go.

提交回复
热议问题