Perl bindings

From MythTV Official Wiki
Jump to navigation Jump to search

Certain scripts have been converted to use the perl bindings in accessing the Mythconverg database. (Explain here the good reasons this was done...) (When did this happen; which version of MythTV?)

Scripts converted to use bindings

  • optimize_mythdb.pl
  • (list others here)

Prerequisites

You must have the MySQL DBD and the DBI interface modules installed. If not, running a converted script will result in an error message similar to the following:

Can't locate DBI.pm in @INC

Installation

(Do virtually all Linux systems come with this pre-installed?)

Ubuntu

Just install libmythtv-perl BEFORE compiling

Macintosh OS X Install

The instructions from http://www.quicomm.com/apm_dbddbi.htm worked for me.

Note: I tried installing via CPAN and MacPorts but perl still could not find the DBI/DBD modules. I don't know why.