My composer won't update completely with Laravel 4 it gets stuck with artisan

前端 未结 6 960
无人共我
无人共我 2020-12-31 06:00

Here is the error I am getting:

Script php artisan optimize handling the post-update-cmd event returned with an error

[RuntimeException]  
Error Output:

up         


        
6条回答
  •  醉梦人生
    2020-12-31 06:30

    I believe this error results from not being able to find mcrypt.

    Script php artisan optimize handling the post-update-cmd event returned with an error

    Apparently it is not quite that easy to install mcrypt.

    1. Install the php5-mcrypt package, or verify that it has been installed correctly.

      sudo apt-get install php5-mcrypt
      
    2. Check whether mcrypt has been installed and enabled for PHP:

      php --ri mcrypt
      
    3. You're done if it says:

      mcrypt support => enabled
      

      Otherwise, continue if it says:

      Extension 'mcrypt' not present.
      
    4. Verify that mcrypt.ini is present in PHP's mods-available directory.

      ls /etc/php5/mods-available/mcrypt.ini
      
    5. If it says No such file or directory, create a symbolic link from mcrypt.ini to PHP's mods-available directory.

      sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
      
    6. Enable the mod.

      sudo php5enmod mcrypt
      
    7. Restart apache.

      sudo service apache2 restart
      
    8. Check again whether mcrypt is enabled.

      php --ri mcrypt
      

    The final steps were inspired by Vuk Stanković.

提交回复
热议问题