LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2017, 12:15 PM   #1
elsmandino
Member
 
Registered: Oct 2009
Posts: 54

Rep: Reputation: 0
How to install latest version of XMLTV on Debian Jessie (Openmediavault)


Apologies in advance if this is not the most appropriate sub-forum of this post - it also could have gone in multimedia, server and Debian.

I am running Openmediavault 3, which is based on Debian Jessie.

I have installed TVHeadend and want to import EPG data from Schedules Direct account.

The particular grabber that I need to use is tv_grab_zz_sdjson, which is available in the latest version of XMLTV (version 0.5.69).

Unfortunately, Jessie only provides a package for XMLTV with version 0.5.63-2.

I therefore need to install 0.5.69 manually - i.e. build it myself.

I am absolute Linux beginner and have managed to get so far with this:

Code:
sudo apt-get install libxml-treepp-perl
Code:
sudo apt-get install bzip2
Code:
sudo wget https://sourceforge.net/projects/xmltv/files/xmltv/0.5.69/xmltv-0.5.69.tar.bz2
Code:
tar xvf xmltv-0.5.69.tar.bz2
Code:
cd xmltv-0.5.69/
Code:
root@openmediavault:~/xmltv-0.5.69# perl Makefile.PL
 Can't locate Term/ReadKey.pm in @INC (you may need to install the Term::ReadKey module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at lib/Ask/Term.pm line 9.
 BEGIN failed--compilation aborted at lib/Ask/Term.pm line 9.
 Compilation failed in require at Makefile.PL line 254.
The readme for this version says the following:

XMLTV 0.5.69

Gather television listings, process them and organize your viewing.
XMLTV is a file format for storing TV listings, defined in xmltv.dtd.
Then there are several tools to produce and process these listings.

Please see doc/QuickStart for documentation on what each program does,
and xmltv.dtd for documentation on the file format.

* Major Changes in this release (0.5.69)

tv_grab_hr - removed broken grabber
tv_grab_pt - removed broken grabber
tv_grab_uk_atlas - removed due to new target site rules

tv_grab_fi - major changes, need to run configure again

tv_grab_sd_json/tv_grab_zz_sdjson - major speed improvements.
This grabber is replicated as tv_grab_zz_sdjson and will
only be available via the new name in the next release.
Please switch to the new name.

tv_grab_zz_sdjson_sqlite - additional grabber for Schedule
Direct's fee-based SD-JSON service. Supports 50+
countries. http://www.schedulesdirect.org/regions

And lots of other changes (see ChangeLog for details)

* Installation

Note: Windows users are strongly advised to use the pre-built EXE as installing
all the prerequisites is non-trivial. For those who want to give it a go,
instructions are in doc/exe_build.html. Those instructions can be used for both
building xmltv.exe as well as a local install.

Basic installation instructions (Linux/Unix):

% perl Makefile.PL
% make
% make test
% make install

To install in a custom directory, replace the first line with
something like

% perl Makefile.PL PREFIX=/wherever/

The system requirements are Perl 5.6 or later, and a few Perl modules.
You will be asked about some optional components; if you choose not to
install them then there are fewer dependencies. The full list of
required modules is:

LWP 5.65
XML::Parser 2.34
XML::Twig 3.10
XML::Writer 0.4.6
Date::Manip 5.42a
Memoize (included with Perl 5.8 and later)
Storable (included with Perl 5.8 and later)

Archive::Zip (if you want to run tv_grab_uk_bleb)
CGI (if you want to run tv_pick_cgi)
Compress::Zlib (if you want to run tv_grab_se_swedb)
Data:umper (if you want to run tv_grab_dk_dr)
DateTime (if you want to run tv_grab_dk_dr)
HTML::Parser 3.34 (for grabbers which use HTML::Entities)
HTML::TableExtract (if you want to run tv_grab_na_icons)
HTML::TreeBuilder (for many of the grabbers)
HTTP::Cache::Transparent (for several of the grabbers)
HTTP::Cookies (if you want to run tv_grab_br_net)
IO::File (if you want to run tv_grab_fr)
IO::Scalar (if you want to run tv_grab_uk_bleb, tv_grab_in)
IO::Stringy (if you want to run tv_grab_se_swedb)
JSON (if you want to run tv_grab_fi)
Parse::RecDescent (if you want to run tv_grab_dk_dr)
SOAP::Lite (if you want to run tv_grab_na_dd)
Term::ReadKey (if you want to run tv_grab_na_dd)
Text::Kakasi (if you want to run tv_grab_jp)
Tk (if you want to run tv_check)
Tk::TableMatrix (if you want to run tv_check)
WWW::Mechanize (if you want to run tv_grab_na_icons, tv_grab_br_net)
XML::LibXML (if you want to run tv_grab_se_swedb, tv_grab_in)
Unicode::UTF8simple (if you want to run tv_grab_pt)

You may have difficulty with the XML modules on Perl 5.8.0 - if so
send mail to the xmltv-users list. Other Perl versions should be OK.

The following modules are recommended, but the software still works
without them:

Term::ProgressBar (displays pretty progress meters)
PerlIO::gzip (for perl 5.8+) (makes tv_imdb a bit faster)
Lingua::Preferred 0.2.4 (helps with multilingual listings)
Unicode::String (non-ASCII chars in LaTeX output)
Lingua::EN::Numbers::Ordinate (not really needed, to be honest)

And the Log::TraceMessages module is useful for debugging, but not
needed for normal use.

All of these can be installed with tarballs downloaded from CPAN or
(hopefully) using the CPAN shell program: 'perl -MCPAN -e shell', then
'install XML::Twig' and so on. But you may find it easier to search
for packaged versions from your OS vendor or others - places which
distribute a packaged version of XMLTV will often provide the modules
it needs too.

* Proxy servers

Proxy server support is provide by the LWP modules.
You can define a proxy server via the HTTP_PROXY enviornment variable.
http_proxy=http://somehost.somedomainort

For more information, see the the following:
http://search.cpan.org/~gaas/libwww-perl-5.803/lib/LWP/UserAgent.pm#$ua->env_proxy

* Known issues

tv_grab_se_swedb sometimes fails to work on Windows if there are spaces
in the path to your home-directory. This can be avoided by setting
the environment variable HOME to a path without spaces (e.g. c:\home).

* Author and copying

This is free software distributed under the GPL, see COPYING. But if
you would like to use the code under some other conditions, please do
ask. There are many who have contributed code, they are credited in
individual source files.

There is a web page at http://www.xmltv.org and a Sourceforge
project 'XMLTV'. There are some mailing lists:

xmltv-announce@lists.sourceforge.net
xmltv-users@lists.sourceforge.net
xmltv-devel@lists.sourceforge.net

You ought to subscribe to the announce list at least. Contact the
users list with most problems.

-- Robert Eden, rmeden@yahoo.com, 2017-01-23
$Id: README,v 1.181 2017/01/24 04:59:45 rmeden Exp $


So it seems that I need to manually install some modules to get things working.

Unfortunately, I am now way out of my depth with this and any advice as to what to do would be very gratefully appreciated.

Thank you.
 
Old 02-27-2017, 02:20 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,663

Rep: Reputation: 118Reputation: 118
Code:
~$ apt-file search Term/ReadKey.pm
libterm-readkey-perl: /usr/lib/x86_64-linux-gnu/perl5/5.20/Term/ReadKey.pm
You need the libterm-readkey-perl package installed.
 
Old 02-28-2017, 08:28 AM   #3
elsmandino
Member
 
Registered: Oct 2009
Posts: 54

Original Poster
Rep: Reputation: 0
Many thanks for that - so if I cut and paste the code that you have printed above, am I then ok to proceed with this:

Code:
% perl Makefile.PL
% make
% make test
% make install
 
Old 02-28-2017, 08:49 AM   #4
elsmandino
Member
 
Registered: Oct 2009
Posts: 54

Original Poster
Rep: Reputation: 0
Sorry - scrap that.

Please forgive my ignorance - still trying to get to grips with Linux.

Just put the above into Google and realise that this:

Code:
~$ apt-file search Term/ReadKey.pm
libterm-readkey-perl: /usr/lib/x86_64-linux-gnu/perl5/5.20/Term/ReadKey.pm
is in fact the way that you can find out where to get the missing module - i.e. from libterm-readkey-perl

After a lot of searching, I found my self here: https://packages.debian.org/jessie/a...-perl/download

Which says:

"If you are running Debian, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website."

What do I do/type to install the package?
 
Old 02-28-2017, 02:41 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,663

Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by elsmandino View Post
What do I do/type to install the package?
apt-get install libterm-readkey-perl as root user.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installation of the latest bleeding edge PHP 7 on Debian 8 Jessie Linux LXer Syndicated Linux News 0 01-03-2017 12:45 AM
[SOLVED] Why can't install the latest version firefox-48.0.1 on debian? luofeiyu Linux - Newbie 5 08-23-2016 02:13 AM
LXer: How to integrate the latest Firefox in Gnome 3 on Debian Jessie LXer Syndicated Linux News 0 10-14-2015 03:42 PM
LXer: Install the Latest Version of digiKam on Debian LXer Syndicated Linux News 0 10-14-2013 10:30 AM
What is the latest version of debian with the 2.4.x kernel? abefroman Debian 3 11-22-2005 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration