Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

can't locate DBD/mysql.pm - Inventory doesn't work

Hello everyone,

I'm asking for your help.

I have just installed a server under RHEL9 with the latest OCS version.

The inventories are not being sent to the server with error messages “cannot establish communication: 500 can't connect to ocs server” on the ocsinventory-agent.log server.

Local inventory is functional.

This command “curl -vk https://ocs_serveur/ocsinventory” returns :

"install driver(mysql) failed: can't locate DBD/mysql.pm: /usr/local/lib64/perl5/5.32/DBD/mysql.pm: permission denied at (eval 114) line3 at /usr/local/share/perl5/5.32/Apache/OcsInventory/Server/System.pm line 217"

All PERL modules are installed, including perl::DBD:mysql and mariadb.

However, the DBD directory under /usr/local/lib64/perl5/5.32 does not exist. 

Mysql.pm is under /usr/lib64/perl5/vendor_perl

Thanks for your help

in OCS Inventory NG server for Unix by (310 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...