Project

General

Profile

Actions

Bug #4737

closed

Can't locate UNIVERSAL/require.pm in @INC

Added by Christophe Nowicki about 10 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
Matthieu CERDA
Category:
-
Target version:
-
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Hi,

Looks like libuniversal-require-perl is a missing ? ;-)

root@a456:/opt/rudder/bin# ./fusioninventory-agent 
Can't locate UNIVERSAL/require.pm in @INC (@INC contains: /opt/rudder/share/fusioninventory/lib /opt/rudder/lib/perl5/site_perl/5.12.4/x86_64-linux-thread-multi /opt/rudder/lib/perl5/site_perl/5.12.4 /opt/rudder/lib/perl5/5.12.4/x86_64-linux-thread-multi /opt/rudder/lib/perl5/5.12.4 .) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 8.
root@a456:/opt/rudder/bin# dpkg -l | grep rudder
ii  rudder-agent                       2.10.0~alpha1~git201403030130-wheezy0 amd64        Configuration management and audit tool - agent

Thanks,

Actions #1

Updated by François ARMAND about 10 years ago

Matthieu, could you look to that to qualify the problem ?

Thanks,

Actions #2

Updated by Matthieu CERDA about 10 years ago

  • Status changed from New to Discussion

Actually, you need to run fusion with the right perl environment, rudder's one:

/opt/rudder/bin/perl -I /opt/rudder/lib/perl5 /opt/rudder/bin/fusioninventory-agent --config=none --local=/tmp

Take a look at /opt/rudder/bin/run-inventory for an example :)

Actions #3

Updated by Matthieu CERDA about 10 years ago

Is it what you needed ?

Actions #4

Updated by Christophe Nowicki almost 10 years ago

Hi Matthieu,

Yes, thanks ! ;-)

Actions #5

Updated by Matthieu CERDA almost 10 years ago

  • Status changed from Discussion to Rejected
  • % Done changed from 0 to 100

Cool ! Since this is not really a bug, I'll reject it to consider it closed.

However, Christophe, you'll be happy to know that http://www.rudder-project.org/redmine/issues/4762 introduces a tool in /var/rudder/tools called "rudder_perl.sh" that enables you to quickly run anything using Rudder's perl instance, like:

/var/rudder/tools/rudder_perl.sh /opt/rudder/bin/fusioninventory-agent --config=none --local=/tmp
# Or
/var/rudder/tools/rudder_perl.sh my_test_script.pl

I think it will make your life easier !

Actions

Also available in: Atom PDF