Install the LINUX/UUIX Platform Agent client
[Root@localhost ~]# yum install-y perl-xml-simple perl-compress-zlib perl-net-ip perl-digest-md5 Perl-Net-SSLeay Perl-C Rypt-ssleay perl-xml-sax perl-xml-libxml Perl-proc-daemon perl-pid-file
Installation prompts cannot yum to package
Setting up Install Process
No Package Perl-proc-daemon available.
No Package Perl-pid-file available.
Package Perl-digest-md5 is obsoleted from Perl, trying to install 4:perl-5.8.8-32.el5_5.2.i386
Resolving dependencies
Run the following command directly:
[root@localhost ~]# perl-mcpan-e ' install Proc::D Aemon '
Note: The first run Perl–mcpan command to implement the automatic installation module, will be prompted to install Cpam, go straight to the end of the set mirror, and then select Mirror address on OK
(Comprehensive Perl Archive Network (CPAN), CPAN can work in two ways: by interacting with the shell or through a series of functions, these functions can be used as part of a wider range of Perl-based scripting Solutions. To put it simply, you can use CPAN to install the module by entering perl-mcpan-e "Install ModuleName", where ModuleName is the name of the package, binding, or full Perl module to be installed.
[root@localhost ~]# perl-mcpan-e ' install Proc::P id::file '
Packages downloaded from the mirror point are saved in the following directory
[Root@localhost ~]# ll/root/.cpan/build/
Total 8
Drwxr-xr-x 4 root root 4096 03-01 01:22 proc-daemon-0.07
Drwxr-xr-x 2 users 4096 03-01 01:24 proc-pid-file-1.27
You can also download from http://search.cpan.org/modlist/Perl6 to a package that cannot be yum, and install it manually. Tar bag
[Root@localhost ~]# cd/root/soft/
[Root@localhostsoft] #Wget http://launchpad.net/ocsinventory-unix-agent/stable-2.0/2.0rc2/+download/ Ocsinventory-agent-2.0rc2.tar.gz
The speed is very slow! Have a little patience!
[Root@localhost soft]# TAR-ZXVF ocsinventory-agent-2.0rc2.tar.gz
[Root@localhost soft]# CD OCSINVENTORY-AGENT-2.0RC2
[Root@localhost ocsinventory-agent-2.0rc2]# LL
Total 436
-rw-r--r--1 1000 1000 289 02-12 04:27 AUTHORS
-rw-r--r--1 1000 1000 35114 02-12 04:27 Changes
Drwxr-xr-x 2 1000 1000 4096 02-12 04:29 contrib
Drwxr-xr-x 7 1000 1000 4096 02-12 04:29 etc
Drwxr-xr-x 3 1000 1000 4096 02-12 04:29 Inc
Drwxr-xr-x 3 1000 1000 4096 02-12 04:29 Lib
-rw-r--r--1 1000 1000 17987 02-12 04:27 LICENSE
-rw-r--r--1 1000 1000 3618 02-12 04:27 makefile.pl
-rw-r--r--1 1000 1000 12728 02-12 04:29 MANIFEST
-rw-r--r--1 1000 1000 291449 02-12 04:27 memconf
-rw-r--r--1 1000 1000 646 02-12 04:29 meta.yml
-rwxr-xr-x 1 1000 1000 8773 02-12 04:27 ocsinventory-agent
-rwxr-xr-x 1 1000 1000 10655 02-12 04:27 postinst.pl
-rw-r--r--1 1000 1000 5301 02-12 04:27 README
Drwxr-xr-x 4 1000 1000 4096 02-12 04:29 Resources
-rw-r--r--1 1000 1000 0 02-12 04:29 run-postinst
-rw-r--r--1 1000 1000 1474 02-12 04:27
Drwxr-xr-x 3 1000 1000 4096 02-12 04:29 Tools
[Root@localhost ocsinventory-agent-2.0rc2]# Perl makefile.pl
Please install Compress::zlib If your use is an OCS server prior 1.02.
Please install Crypt::ssleay If you are want to use SSL.
Please install Net::ssleay If you are want to use the software deployment.
Please install Nmap or ipdiscover If you are want to use the network discover.
NET::IP is strongly recommended since it's required to retrieve network
Please install Proc::D Aemon and Proc::P id::file If your want to use the Daemon monde.
Checking If your kit is complete ...
Looks Good
Warning:prerequisite Extutils::makemaker 6.42 not found. We have 6.30.
Warning:prerequisite LWP 0 not found.
Warning:prerequisite xml::simple 0 not found.
Writing Makefile for Ocsinventory::agent