Webklex / laravel-imap

Laravel IMAP is an easy way to integrate both the native php-imap module and an extended custom imap protocol into your Laravel app.
https://www.php-imap.com
MIT License
641 stars 182 forks source link

Unable to load dynamic library 'mcrypt' (tried: C:\xampp\php\ext\mcrypt (The specified module could not be found), C:\xampp\php\ext\php_mcrypt.dll (The specified module could not be found)) in Unknown on line 0 #462

Closed amitleuva1987 closed 1 year ago

amitleuva1987 commented 1 year ago

I am using XAMPP and php 8.1. When, I try to install Laravel Imap in my laravel project, It generated below error

Unable to load dynamic library 'mcrypt' (tried: C:\xampp\php\ext\mcrypt (The specified module could not be found), C:\xampp\php\ext\php_mcrypt.dll (The specified module could not be found)) in Unknown on line 0

To Reproduce Steps to reproduce the behavior:

  1. Creeate a fresh laravel project with XAMPP (php 8.1).
  2. Install 'laravel-imap' package into the project, it will generate the above mentioned error

Expected behavior It should install laravel-imap package successfully

Desktop / Server (please complete the following information):

please note that I have already get the mcrypt dll from https://pecl.php.net/package/mcrypt/1.0.2 and placed it in my ext folder in "xampp/php/ext" and I have place extension=mcrypt in php.ini

amitleuva1987 commented 1 year ago

just remove the mycript extension from php.ini. It works without mycript exntension.