ODS on Mandriva
From Wiki Centreon
| Languages: |
English |
If you want to have ods (Oreon Data Storage) on your Linux with Centreon 1.4.x, you have to enable threads in perl. On mandriva threads are not enable on RPM package. So we'll recompile perl without removing the rpm perl
So We'll compile a last version of perl in another directory, for example : /usr2/products/perl/
Follow the differents steps
- Download la version of perl
- untar file
- Configure with this command
./Configure -Duseithreads -Dprefix=<prefix>
where <prefix> is the setup directory : /usr2/products/perl/ . The name of the directory is important in cases where one wishes to have a specific version of perl on the Machine in a different place than the standard package installed.
After launching this command, follow the differents steps :
Would you like to see the instructions? [n] n I see a config.sh file. Shall I use it to set the defaults? [y] n Questions suivantes : réponse par défaut sauf pour les questions suivantes qui concernent les répertoires : Directory <prefix> doesn't exist. Use that name anyway? [n] y Directory <prefix> doesn't exist. Use that name anyway? [n] y Directory <prefix>/bin doesn't exist. Use that name anyway? [n] y Directory <prefix>/bin doesn't exist. Use that name anyway? [n] y Directory <prefix>/bin doesn't exist. Use that name anyway? [n] y
At end the configure file is now created.
- now launch a compilation fore compiling binaries
make
- make install for installing files in directories
make install
Now You have to add require packages for centreon
* Perl-DBD * perl RRDTool
In order to use the good perl binary, change you shell path :
PATH=/usr2/products/perl/:$PATH
Configure Now CPAN to install perl DBI, DBD::mysql
go on /usr2/products/perl/
cd /usr2/products/perl/
and launch cpan
cd ./bin ./cpan
andswer to all question in order to configure you cpan. After that, install DBI and DBD::mysql
cpan > install DBI
cpan > install DBD::mysql
Install now new version of rrdtool for compiling RRDs.pm
Download the last version of rrdtool
untar it
tar -xvzf rrdtool-1.2.x.tar.gz
go on the created directory
cd rrdtool-1.2.x
configure you makefile in order to compile rrdtool in /usr2/products/rrdtool-1.2.x
./configure --prefixe=/usr2/products/rrdtool-1.2.x make make install make site-perl-install
Now you have a new version of rrdtool.
To finish, you have to change the path of perl ods. Go on ods directory and edit ods executable.
vi ods
change on to of file the perl path
#! /usr2/produits/perl/bin/perl -w
and change libraries paths for perl
use lib "/usr2/produits/rrdtool-1.2.x/lib/perl/5.8.8/-linux-thread-multi";
now start ods. It will be ods without any error in log file.

