I'm trying to install OCS Agent 2.3 on Ubuntu 17 But an error is happening when running the installer.
This is the error message:root@ubuntu:~/agent# perl Makefile.PL Can't locate inc/Module/Install.pm in @INC (you may need to install the inc::Module::Install module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at Makefile.PL line 2.BEGIN failed--compilation aborted at Makefile.PL line 2.
The repository version is 2.0.5 and does not collect much information.
Hi
For 2.3.0 agent make this correction => https://github.com/OCSInventory-NG/UnixAgent/commit/45656a9487e47e69f38800d5567b777122b9e15b
For 2.0.5 verify that 'Net::IP' perl module is installed.
Regards
Frank
Thank you very much Frank worked very well.
I will leave here the list of commands I used to perform my installation:
sudo su -apt updateapt upgrade -ywget https://launchpad.net/ubuntu/+source/ipmiutil/3.0.1-1/+build/11869455/+files/ipmiutil_3.0.1-1_amd64.debdpkg -i ipmiutil_3.0.1-1_amd64.debapt install libssl-dev nmap libmodule-install-perl pciutils dmidecode ipmitool rpcbind systemd ureadahead man-db libtirpc1 -ycpan -i CPANcpan -i Module::Install Digest::MD5 XML::Simple Net::IP Proc::Daemon Proc::PID::File nvidia::ml Compress::Zlib Crypt::SSLeay LWP::Protocol::https Net::CUPS Net::SNMP Net::Netmask Net::Ping Nmap::Parser Data::UUID Parse::EDIDwget https://github.com/OCSInventory-NG/UnixAgent/archive/master.zipunzip master.zipcd UnixAgent-master/perl Makefile.PLmakemake install
sudo su -
apt update
apt upgrade -y
wget https://launchpad.net/ubuntu/+source/ipmiutil/3.0.1-1/+build/11869455/+files/ipmiutil_3.0.1-1_amd64.deb
dpkg -i ipmiutil_3.0.1-1_amd64.deb
apt install libssl-dev nmap libmodule-install-perl pciutils dmidecode ipmitool rpcbind systemd ureadahead man-db libtirpc1 -y
cpan -i CPAN
cpan -i Module::Install Digest::MD5 XML::Simple Net::IP Proc::Daemon Proc::PID::File nvidia::ml Compress::Zlib Crypt::SSLeay LWP::Protocol::https Net::CUPS Net::SNMP Net::Netmask Net::Ping Nmap::Parser Data::UUID Parse::EDID
wget https://github.com/OCSInventory-NG/UnixAgent/archive/master.zip
unzip master.zip
cd UnixAgent-master/
perl Makefile.PL
make
make install
Even with this version and with the Net:: IP module I could not collect the information from the network interface, it seems that it is not the version.
I think I'd better open another post with dealing with this subject only.