Sometimes, if your MythTV server dies badly enough, you might lose some recordings
(
e.g. if database partition fills up or that disk dies, but recordings partition is OK).
There used to be a script myth.rebuilddatabase.pl
It now is located at
https://www.mythtv.org/wiki/Myth.rebuilddb.pl, but if you install that, it needs an extra Perl module to run on LinHES:
Code:
[nigel@mythtv-server ~]$ perl ./myth.rebuilddb.pl
Can't locate Time/Format.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at ./myth.rebuilddb.pl line 55.
BEGIN failed--compilation aborted at ./myth.rebuilddb.pl line 55.
I tried to install it the ArchLinux way:
Code:
sudo pacman-key --init
sudo pacman -U https://www.archlinux.org/packages/community/any/perl-time-format/download
but that failed - someone with pacman knowledge will have to document that. I also tried the Perl way:
Code:
[nigel@mythtv-server ~]$ sudo perl -MCPAN -e shell
[sudo] password for nigel:
CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.
Would you like to configure as much as possible automatically? [yes]
ALERT: 'make' is an essential tool for building perl Modules.
Please make sure you have 'make' (or some equivalent) working.
Autoconfigured everything but 'urllist'.
Now you need to choose your CPAN mirror sites. You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.
Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes]
Trying to fetch a mirror list from the Internet
Fetching with LWP:
http://www.perl.org/CPAN/MIRRORED.BY
Looking for CPAN mirrors near you (please be patient)
......................... done!
New urllist
http://mirror.intergrid.com.au/cpan/
http://cpan.mirror.digitalpacific.com.au/
http://mirror.optusnet.com.au/CPAN/
Autoconfiguration complete.
commit: wrote '/root/.cpan/CPAN/MyConfig.pm'
You can re-run configuration any time with 'o conf init' in the CPAN shell
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.
cpan[1]> install CPAN
but that fails also:
Code:
Warning: Prerequisite 'CPAN::Meta::Requirements => 2.121' for 'ANDK/CPAN-2.14.tar.gz' failed when processing 'DAGOLDEN/CPAN-Meta-Requirements-2.140.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Can't exec "make": No such file or directory at /usr/share/perl5/core_perl/CPAN/Distribution.pm line 2084.
ANDK/CPAN-2.14.tar.gz
make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
ANDK/CPAN-2.14.tar.gz : make NO
Giving up for tonight
_________________
| Nigel Pearson,
nigel.pearson.au@gmail.com| "Things you own end up owning you" - Tyler, Fight Club