OCSInventory-NG / UnixAgent

This is the OCS unified agent for Unix operating systems
http://www.ocsinventory-ng.org/en/
GNU General Public License v2.0
90 stars 83 forks source link

ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xc400080, needed 0xf880080) #460

Closed GillesRonsin closed 5 months ago

GillesRonsin commented 5 months ago

Hi all,

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Sonoma 14.4 Perl version : perl 5 version 34

OCS Inventory informations

Unix agent version : Unix Agent 2.10.1 (Mac version)

Problem's description

After installation, well configured (like all other machine and another old mac) no data is transfered to ocs serveur. admin interface is available, so connection is ok. running in a console:

sudo /Applications/OCSNG.app/Contents/Resources/ocsinventory-agent

Password: ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xc400080, needed 0xf880080)

I don't know a lot about macos.. could you tell me what I have to do ? please

cainatplugify commented 5 months ago

I finally figured out the solution to this problem on Sonoma OSX 14.4+, and to be honest it's quite simple to fix.

you need to change the first line of the following file: /Applications/OCSNG.app/Contents/Resources/ocsinventory-agent

the first line will have the content:

!/usr/bin/perl

and you need to update it to:

!/usr/bin/perl5.30

and that is it, fixed

GillesRonsin commented 5 months ago

Hi cainatplugify

nice. it is effectivally fixed

thank you

GillesRonsin commented 5 months ago

The fix forcing perl version works well