Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

mylvmbackup is a Perl script for quickly creating MySQL backups. It uses LVM's snapshot feature to do so. Following are the error I had when I tried to execute the mylvmbackup perl script. How can I resolve this issue ?

OS version : Cent OS 5.5

Perl Version: V5.8.8

[root@localhost mylvmbackup-0.13]# ./mylvmbackup --user=root --password=test --mycnf=/etc/mysql/my.cnf --vgname=vol_mygroup --lvname=mysql --backuptype=tar 
Can't locate Config/ in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./mylvmbackup line 20.
share|improve this question

You need to have Config-IniFiles installed for the script to work. Check your package repository for a package (better), or install via cpan (easier):

cpan install Config::IniFiles
share|improve this answer
While executing "cpan install Config::IniFiles" it gives the following error --> Can't locate Module/Build/ in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at Makefile.PL line 2. – Ahn Jul 31 '12 at 12:18
You need other modules... why not try installing it with yum? -> "yum install perl-Config-IniFiles" (hope it's there) – mulaz Jul 31 '12 at 12:22
No package perl-Config-IniFiles available. – Ahn Aug 1 '12 at 3:56
up vote 2 down vote accepted

Resolved it by following the step given below. :)

1) perl -MCPAN -e 'install Perl::OSType'

2) perl -MCPAN -e 'install Module::Build';

3) cpan install Config::IniFiles 
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.