Thank you for you answer.
I did install "brew and perl modules", restarted the workstation, reinstalled OCS agent.
However I still have getting this message os the log files:
classroom5:~ worshipguest$ cat /var/log/ocs*
"[Wed Oct 18 12:33:30 2017][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.3.1
[Wed Oct 18 12:33:30 2017][debug] Log system initialised (File)
[Wed Oct 18 12:33:30 2017][debug] --scan-homedirs missing. Don't scan user directories
[Wed Oct 18 12:33:30 2017][debug] Accountinfo file: /var/lib/ocsinventory-agent/http:__remote.broadpc.com:88_ocsinventory/ocsinv.adm
[Wed Oct 18 12:33:30 2017][debug] OCS Agent initialised
[Wed Oct 18 12:33:30 2017][debug] Turns hooks on for /etc/ocsinventory-agent/modules.conf
[Wed Oct 18 12:33:30 2017][debug] Calling handlers : `start_handler'
[Wed Oct 18 12:33:30 2017][debug] Compress::Zlib is not available! The data will be compressed with
gzip instead but won't be accepted by server prior 1.02
[Wed Oct 18 12:33:30 2017][debug] Calling handlers : `prolog_writer'
[Wed Oct 18 12:33:31 2017][debug] sending XML
[Wed Oct 18 12:33:31 2017][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<DEVICEID>classroom5-2017-10-18-12-26-55</DEVICEID>
<QUERY>PROLOG</QUERY>
</REQUEST>
[Wed Oct 18 12:33:31 2017][error] Cannot establish communication : 400 Bad Request"