Unable to load dynamic library 'php_mongodb.dll' - Hack The Tech - Latest News related to Computer and Technology

logo

Get Daily Latest News related to Computer and Technology and hack the world.

Wednesday, January 10, 2024

demo-image

Unable to load dynamic library 'php_mongodb.dll'

Trying to add mongodb php extension from https://github.com/mongodb/mongo-php-driver/releases. so i can integrate mongodb to my laravel project.

I'm following this documentation but stuck at installing mongodb php driver as the prerequisite, https://github.com/mongodb/laravel-mongodb/blob/4.1/docs/install.md

everytime i use composer or php in terminal it return this warning

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

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

composer require mongodb/laravel-mongodb returned: Your requirements could not be resolved to an installable set of packages.

Problem 1

  • Root composer.json requires mongodb/laravel-mongodb 4.0.0 -> satisfiable by mongodb/laravel-mongodb[4.0.0].
  • mongodb/laravel-mongodb 4.0.0 requires ext-mongodb ^1.15 -> it is missing from your system. Install or enable PHP's mongodb extension.

I need help, this issue is corroding my mind X_X

Tried with version 1.17.2-8.0-ts-x64, 1.17.2-8.0-ts-x86, 1.17.1-7.4-ts-x64, 1.16.2-8.2-ts-x64, and 1.16.2-8.2-ts-x86 but still no luck.

My php version is 8.1.2, x64 architecture, thread safe. (Windows 11)

Tried using extension=mongodb instead of extension=php_mongodb.dll. Tried using pecl install mongodb.



source https://stackoverflow.com/questions/77788228/unable-to-load-dynamic-library-php-mongodb-dll

No comments:

Post a Comment