Quantcast
Channel: Ocsinventory Q&A - Recent questions without answers
Viewing all articles
Browse latest Browse all 4599

Make standalone Agent => Error about "$VERSION"

$
0
0
Hello,

i would like to build a "standalone-standalone" Agent for Linux.

Try to build it with Ubuntu 14.04 and Debian Wheezy...i got on both the same error.

I have installed all Perl Modules as discribed in wiki and it seems to work. But i got an error when I try to start building with "standalone.sh". :-(

################################################################

 sh ./tools/standalone.sh
WARNINGS: Very experimental tool
/usr/bin/pp: Packing ocsinventory-agent
/usr/bin/pp: Writing PAR on ocsinventory-agent.par
Could not get version from /root/Ocsinventory-Unix-Agent-2.1.1/lib/Ocsinventory/Agent/Modules/Snmp/3375.pm by executing:
BEGIN { my $dummy = q#  Hide from _packages_inside()
    #; package Module::Metadata::_version::p2;
    use version;
    no strict;

      $vsub = sub {
        local $VERSION;
        $VERSION=undef;
          my $VERSION=$session->get_request ( -varbindlist => [ $snmp_sysProductVersion] );;
        $VERSION
      };
  }

The fatal error was: Can't call method "get_request" on an undefined value at (eval 16) line 9, <GEN185> line 45.

 at /usr/share/perl5/Module/ScanDeps.pm line 547.
/usr/bin/pp: Input file ocsinventory-agent.par was not found
Failed to generate ocsinventory-agent.bin!

################################################################

 

I didn´t find any solution for this and i´m a little frustrated..:-(

Hope anyone has an idea to fix this problem. I´ll need a standalone Agent version because I can´t install Perl on every system.

 

Thanks and regards

Fox

Viewing all articles
Browse latest Browse all 4599

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>