Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.5 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Problem installation unix agent [closed]

Hello, I found an error while installing unix agent :

[stg06@v01hap16 Ocsinventory-Unix-Agent-2.1.1]$ sudo make install
Manifying 1 pod document
Manifying 4 pod documents
Appending installation info to /usr/lib64/perl5/perllocal.pod
[ ! -f run-postinst ] || /usr/bin/perl postinst.pl
Do you want to configure the agent
Please enter 'y' or 'n'?> [y] y
Where do you want to write the configuration file?
 0 -> /etc/ocsinventory
 1 -> /usr/local/etc/ocsinventory
 2 -> /etc/ocsinventory-agent
?>  2
Do you want to create the directory /etc/ocsinventory-agent?
Please enter 'y' or 'n'?> [y]
Should the old linux_agent settings be imported ?
Please enter 'y' or 'n'?> [y] n
[info] The config file will be written in /etc/ocsinventory-agent/ocsinventory-agent.cfg,
What is the address of your ocs server?>  10.1.100.66
Do you need credential for the server? (You probably don't)
Please enter 'y' or 'n'?> [n]
Do you want to apply an administrative tag on this machine
Please enter 'y' or 'n'?> [y] n
Do yo want to install the cron task in /etc/cron.d
Please enter 'y' or 'n'?> [y]
Where do you want the agent to store its files? (You probably don't need to change it)?> [/var/lib/ocsinventory-agent]
Do you want to create the /var/lib/ocsinventory-agent directory?

Please enter 'y' or 'n'?> [y]
Should I remove the old linux_agent
Please enter 'y' or 'n'?> [n]
Do you want to activate debug configuration option ?
Please enter 'y' or 'n'?> [y] n
Do you want to use OCS Inventory NG UNix Unified agent log file ?
Please enter 'y' or 'n'?> [y] n
Do you want disable SSL CA verification configuration option (not recommended) ?
Please enter 'y' or 'n'?> [n]
Do you want to set CA certificate chain file path ?
Please enter 'y' or 'n'?> [y] n
Do you want to use OCS-Inventory software deployment feature?
Please enter 'y' or 'n'?> [y]
Do you want to use OCS-Inventory SNMP scans feature?
Please enter 'y' or 'n'?> [y]
Do you want to send an inventory of this machine?
Please enter 'y' or 'n'?> [y]
Setting OCS Inventory NG server address...
Looking for OCS Invetory NG Unix Unified agent installation...
sorry, can't find ocsinventory-agent in $PATH
make: *** [install] Erreur 1

What does it means ?

When I want info about this variable :

[stg06@v01hap16 ~]$ $PATH
-bash: /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/LORIENT/stg06/bin: Aucun fichier ou dossier de ce type

I am a little bit lost..

 

closed with the note: Problem - solved
asked in OCS Inventory NG agent for Unix by (2k points)
closed by

5 Answers

0 votes
Bonjour,

Regarde le fichier /root/.bashrc. Commente et/ou supprime les lignes ci-après. Sauvegarde. Refais ton installation. Profites en pour supprimer le répertoire /root/perl5.

#PERL_MB_OPT="--install_base \"/root/perl5\""; export PERL_MB_OPT;
#PERL_MM_OPT="INSTALL_BASE=/root/perl5"; export PERL_MM_OPT;

Frank
answered by (63.8k points)
0 votes
Bonjour, je ne voi spas de répertoire perl5 dans root..

[stg06@v01hap16 backend]$ sudo ls /root/perl5
ls: impossible d'accéder à /root/perl5: Aucun fichier ou dossier de ce type

Ensuite dans le fichier .bashrc, il n'y a pas les lignes que vous citées...

[stg06@v01hap16 backend]$ sudo cat /root/.bashrc
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

Que faire du coup ?
answered by (2k points)
0 votes
Bonjour,

J'ai exactement le même soucis avec l'agent Unix 2.3. Des news sur ce point ?

D'avance merci
answered by (140 points)
0 votes

I am running Oracle Linux 7.3 and I am getting this issue as well:

 Do you want to use OCS-Inventory SNMP scans feature?
 Please enter 'y' or 'n'?> [y] 
 Do you want to send an inventory of this machine?
 Please enter 'y' or 'n'?> [y] 
 Setting OCS Inventory NG server address...
 Looking for OCS Invetory NG Unix Unified agent installation...
 sorry, can't find ocsinventory-agent in $PATH
 make: *** [install] Error 1

I found that when I downloaded the tarball it was not in the root ~ directory. I moved it to root's home and reran perl Makefile.PL and make install. This time around it installed correctly.

answered by (1.1k points)
0 votes
Another reason for this error is if "which" is not installed. After installing which the installation from source completed.
answered by (1.1k points)
 
Powered by Question2Answer
...