Author |
Message |
albyone
|
Posted: Tue Mar 10, 2009 6:39 am |
|
Joined: Fri Oct 05, 2007 10:35 pm
Posts: 14
Location:
Avoca Beach, NSW, Australia
|
Hello all,
Previously on r5.5 etc I have been using Shepherd ( http://svn.whuffy.com/) and loving it.
After moving to R6, I have ran into a hole in getting Shepherd installed. I initially received the following error:
Code: ERROR: Mandatory module 'Algorithm::Diff' not found.
After some googling I found the package "perl-algorithm-diff-1.1902-1", installed that, then moved onto the next error: Code: ERROR: Mandatory module 'List::Compare' not found.
And this is as far as I got...
Has anyone had any success installing Shepherd on R6?
Thanks,
Al
|
|
Top |
|
|
bigB
|
Posted: Wed Mar 11, 2009 5:19 pm |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi,
Install Perl Module
First you need to update the CPAN sources (similar to apt-get sources)
nano /etc/perl/CPAN/Config.pm
and change the urllist (around line 50) to be:
Code: 'urllist' => [q[http://www.perl.com/CPAN/]],
To install the new module type this as root:
cpan Algorithm::Diff
Hope this helps.
|
|
Top |
|
|
Truck
|
Posted: Wed Mar 11, 2009 6:05 pm |
|
Joined: Wed Mar 19, 2008 5:26 pm
Posts: 14
Location:
Brisbane, QLD, Australia
|
I had the same issues - I found this useful http://www.xpmediacentre.com.au/community/mythtv-backend-only/32332-arch-linux-backend-server-build-mythtv-media-sharing-etc-12.html#post223732.
The steps listed did not work so well for me using LinHES. Unfortunately I kind of suck at documenting what I do, but the general process was as follows:
Login as root user.
Use the pacman command from the above URL to install as much as possible (I think I did them one at a time) - if it does not install try it again with extra/<module> (this was needed for extra/perl-digest-sha1 from memory).
NOTE that you will need to enable the standard Arch Linux pacman repositories to do all this and many people will say this is VERY bad ( http://mysettopbox.tv/phpBB2/viewtopic.php?t=19592&highlight=arch+linux), but there is not much choice to get Shepherd working. Edit /etc/pacman.conf or something I think to do this - the standard repositories are commented out. Try to get as many of the modules you can from this list using pacman - you can check if a module exists by searching the Arch Linux repositories ( http://www.archlinux.org/packages/?q=sha1)
Any remaining packages will be handled via CPAN.
Install gcc (# pacman -Sy gcc) as this is not part of LinHES and will be required by CPAN.
Run CPAN as root (# cpan)
Install each Perl Module as it generates an error using for example: CPAN> install List::Compare (as bigB advised).
In another shell logged in as mythtv user run shepherd again ($ shepherd --check) and get the next missing module.
Install each module as you hit it.
I would like to check with Cecil at some point to work out how to package this for inclusion in LinHES (if licence and copyrights permit).
Hope this helps a little.
|
|
Top |
|
|
Truck
|
Posted: Wed Mar 11, 2009 6:17 pm |
|
Joined: Wed Mar 19, 2008 5:26 pm
Posts: 14
Location:
Brisbane, QLD, Australia
|
|
Top |
|
|
Girkers
|
Posted: Wed Mar 11, 2009 10:57 pm |
|
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location:
Brisbane, Queensland, Australia
|
|
Top |
|
|
techman83
|
Posted: Thu Mar 12, 2009 12:22 am |
|
Joined: Tue Aug 22, 2006 9:11 am
Posts: 127
Location:
Perth
|
http://svn.whuffy.com/index.cgi/wiki/Installation
That's the site i've been looking at, haven't got it working yet as I thought I'd give it 30 mins, if I couldn't get it to work I'd stick with IceTV until I build an R6 vm.
for the cpan modules I just did the following(taken from above site):
Code: cpan XMLTV::Ask Algorithm::Diff Compress::Zlib Cwd Data::Dumper Date::Manip Getopt::Long List::Compare \ LWP::UserAgent POSIX Digest::SHA1 cpan DateTime::Format::Strptime File::Basename File::Path GD HTML::Entities \ HTML::TokeParser HTML::TreeBuilder IO::File Storable Time::HiRes XML::DOM \ XML::DOM::NodeList XML::Simple Storable HTTP::Cookies File::Basename \ LWP::ConnCache GD Digest::MD5 Archive::Zip IO::String \ DateTime::Format::Strptime JavaScript
Does shepherd get the 9 guides properly as that's really my only drama with IceTV.
_________________ DRM 'manages access' in the same way that jail 'manages freedom.'
_________________
Intel P4 2.6
Intel Desktop Board
2GB DDR400
nVidia 6600GT
Dvico HDTV+
Dvico Dual 4
200GB WD for Swap /boot & /
2x 500GB WD with LVM & XFS for /myth/tv
|
|
Top |
|
|
Girkers
|
Posted: Thu Mar 12, 2009 5:17 am |
|
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location:
Brisbane, Queensland, Australia
|
I finally got it working, but the Javascript will not compile, the result of this is that the grabber news does not work.
I didn't have to change the cpan repositories either as listed previously. It is installed and currently running, seems to be going OK at the moment.
_________________ Girkers
|
|
Top |
|
|
Girkers
|
Posted: Thu Mar 12, 2009 5:50 am |
|
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location:
Brisbane, Queensland, Australia
|
It worked but ended with the following error:
Code: :::::: Output from augment_timezone : augment_timezone v0.21 : Reading MythTV DB settings from: /usr/share/mythtv/mysql.txt : MythTV's TimeOffset is "+1000". : - Target timezone is "+1000". Adding timezones. : - parsing: /home/mythtv/.shepherd/postprocessors/imdb_augment_data/output.xmltv : /home/mythtv/.shepherd/postprocessors/imdb_augment_data/output.xmltv: : unclosed token at line 33421, column 26, byte 1396730 at /usr/lib/perl5/vendor_perl/XML/Parser.pm line 187 :::::: End output from augment_timezone
postprocessor exited with non-zero code 1: assuming it failed. Last message: unclosed token at line 33421, column 26, byte 1396730 at Parser.pm line 187 SHEPHERD: XML data from postprocessor augment_timezone rejected, using XML from previous stage * Caught a die() within eval{} from file /usr/share/perl5/core_perl/Carp.pm line 44 Final output stored in /home/mythtv/.shepherd/output.xmltv. Cached output stored in /home/mythtv/.shepherd/output.xmltv. Posting anonymous usage statistics. Done.
It also didn't update all the Channel IDs, it missed two but that was easy to fix.
_________________ Girkers
|
|
Top |
|
|
albyone
|
Posted: Thu Mar 12, 2009 7:23 am |
|
Joined: Fri Oct 05, 2007 10:35 pm
Posts: 14
Location:
Avoca Beach, NSW, Australia
|
bigB,
Thanks for you advice, but there is no /etc/perl/ directory.
Truck,
Thanks for your informative post as well, I did manage to install a few further modules using pacman with the standard Arch pacman repo's. However CPAN continuously fails on install of "List::Compare" with the following error:
Code: Checking if your kit is complete... Looks good Writing Makefile for List::Compare Can't exec "make": No such file or directory at /usr/share/perl5/core_perl/CPAN.pm line 7698. JKEENAN/List-Compare-0.37.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: JKEENAN/List-Compare-0.37.tar.gz : make NO So I installed 'make' using pacman (wasn't there) and still had no joy: Code: Running install for module 'List::Compare' Running make for J/JK/JKEENAN/List-Compare-0.37.tar.gz Has already been unwrapped into directory /root/.cpan/build/List-Compare-0.37-EBzPvd Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible So, frustrated, I moved onto the JS installation instructions on the xpmediacentre link you posted. Once again I ran into problems. All worked according to plan until the "perl Makefile.PL" command which failed with: Code: Checking if your kit is complete... Looks good Warning: prerequisite Test::Exception 0 not found. Writing Makefile for JavaScript So, I then installed the 'Test::Exception' module using cpan (cpan also installed 'Sub::Uplevel' automatically) and 'perl Makefile.PL' worked. 'make install' now failed with: Code: Files found in blib/arch: installing files in blib/lib into architecture dependent library tree !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR: Can't create '/usr/lib/perl5/site_perl/5.10.0' Do not have write permissions on '/usr/lib/perl5/site_perl/5.10.0' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! at -e line 1 make: *** [pure_site_install] Error 2 But once I ran 'make install' as root (don't know if I should have done this or not...) it installed! So, back to my old friend 'List::Compare'. I finally got that to install by forcing it with: Code: sudo cpan -fi List::Compare
I then ran shepherd and bang - it seems to have worked! (well it installed at least. No guide data has been populated as yet, but I will keep you posted.)
Girkers,
Thanks for making this 'problem' official - it warrants it.
techman83,
I don't know how you managed to install the modules so easily - I'm sure I did something wrong along the way though . And, yes. Shepherd has provided good guide data for all channels for me in the past.[/b]
|
|
Top |
|
|
techman83
|
Posted: Thu Mar 12, 2009 7:27 am |
|
Joined: Tue Aug 22, 2006 9:11 am
Posts: 127
Location:
Perth
|
Easy in hindsight really
It would have been quicker if I had of realised how cpan works. (Build essential is something I always install on my Deb/Ubunt boxen, so I'd never come across an error)
You need gcc + make, not sure if you installed both?
Code: pacman -S gcc make EDIT: I also opened cpan (just type cpan as root) and updated it before doing anything else. Code: install CPAN reload CPAN
_________________ DRM 'manages access' in the same way that jail 'manages freedom.'
_________________
Intel P4 2.6
Intel Desktop Board
2GB DDR400
nVidia 6600GT
Dvico HDTV+
Dvico Dual 4
200GB WD for Swap /boot & /
2x 500GB WD with LVM & XFS for /myth/tv
|
|
Top |
|
|
albyone
|
Posted: Thu Mar 12, 2009 7:43 am |
|
Joined: Fri Oct 05, 2007 10:35 pm
Posts: 14
Location:
Avoca Beach, NSW, Australia
|
Yeah, I installed gcc as well as suggested by Truck. If the currently running shepherd instance fails, I'll try the CPAN updates that you mention.
I'm gunna down tools now and sleep in hope that my R6 box will be filled with TV listings in the morning...
Thanks,
Al
|
|
Top |
|
|
albyone
|
Posted: Thu Mar 12, 2009 7:48 am |
|
Joined: Fri Oct 05, 2007 10:35 pm
Posts: 14
Location:
Avoca Beach, NSW, Australia
|
Hold that thought - It is a thing of beauty! I have a fully populated TV guide once more!
I am now going to be a VERY happy man!
Now I just gotta try and get my Leadtek DTV1000T remote to work
Thanks to all!
Al
|
|
Top |
|
|
techman83
|
Posted: Thu Mar 12, 2009 7:49 am |
|
Joined: Tue Aug 22, 2006 9:11 am
Posts: 127
Location:
Perth
|
Good luck!
I learnt a lot last night before I downed tools! Was a bit tired at work today
_________________ DRM 'manages access' in the same way that jail 'manages freedom.'
_________________
Intel P4 2.6
Intel Desktop Board
2GB DDR400
nVidia 6600GT
Dvico HDTV+
Dvico Dual 4
200GB WD for Swap /boot & /
2x 500GB WD with LVM & XFS for /myth/tv
|
|
Top |
|
|
Truck
|
Posted: Fri Mar 13, 2009 5:54 pm |
|
Joined: Wed Mar 19, 2008 5:26 pm
Posts: 14
Location:
Brisbane, QLD, Australia
|
I just noticed last night that I was running out of TV guide data even though shepherd was running properly from the command line. This is something all you shepherd users should probably keep an eye on. The problem turns out that I am running mythfilldatabase automatically from the mythTV configuration. It looks like the mythfilldatabase command is actually executed by the mythbackend process. Under LinHES the mythbackend process is started by ROOT and therefore the mythfilldatabase (and in turn the execution of shepherd) is done as ROOT as well. This results in an error from shepherd along the lines of "You are running as ROOT are you sure want to do this...10sec delay...". Then it appears to start running, but some error must occur that I have now lost since I ran mythfilldatabase manually and overwrote the log file.
I have currently resolved it by creating a shell script (e.g. /usr/LH/bin/mythtv_filldatabase) in the PATH that executes the following command: Code: #!/bin/sh # Format options for use in su -c "..." command OPTIONS="" while [ -n "$*" ] do echo "Adding option '$1'" OPTIONS="$OPTIONS '$1'" shift done
su -c "mythfilldatabase $OPTIONS " mythtv I have then set the mythfilldatabase command in the automatically run mythfilldatabase screen (under setup->general) to Code: sudo mythtv_filldatabase The options and log file can be set to whatever you like... I use the following: OPTIONS Code: --graboptions "--notquiet" LOG Code: /var/log/mythtv/mythfilldatabase
Because mythfilldatabase is now run as MYTHTV you will need to ensure that mythtv user has write permission or ownership for the log file you use.
I have tested this by using the "Menu->RunMythfilldatabase" option in MythWelcome and checking the log file for updates. It seems to work OK, but it seems to be a little bit dodgy - a better way may be to write a small shell script for tv_grab_au (instead of just linking to shepherd script) that simply runs shepherd as the mythtv user.
|
|
Top |
|
|
Girkers
|
Posted: Sat Mar 14, 2009 1:40 am |
|
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location:
Brisbane, Queensland, Australia
|
Truck,
Firstly mythfilldatabase should not be running as when you install Shepherd it turns it off and installs a cron job to do the work. When you set up Shepherd it would have asked you to do this and it worked for me in R5.5 and now it R6, my guide data is up to date.
You can "re-do" this via Code: ~/.shepherd/shepherd --configure-mythtv
_________________ Girkers
|
|
Top |
|
|