Mongodb Error: Unable to LoadDynamic Library’ MongoDB.so’

  mongodb, question

I installed php on centos7.47.2And mongodb3.4But there was an error when running the php command. What happened?

[root@vagrant-dev ~]# php artisan migrate
 PHP Warning:  PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/lib64/php/modules/mongodb.so (/usr/lib64/php/modules/  mongodb.so: cannot open shared object file: No such file or directory),   /usr/lib64/php/modules/mongodb.so.so (/usr/lib64/php/modules/mongodb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
 Could not open input file: artisan

This error also occurs when running the install mongodb driver command:

[root@vagrant-dev ~]# pecl install mongodb
 PHP Warning:  PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/lib64/php/modules/mongodb.so (/usr/lib64/php/modules/  mongodb.so: cannot open shared object file: No such file or directory),   /usr/lib64/php/modules/mongodb.so.so (/usr/lib64/php/modules/mongodb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Installation documentationHas everyone followed suit? In particular

Add the following line to your php.ini file:
extension=mongodb.so