[mythtv-users] mythlink.pl
Klaus Becker
colonius at free.fr
Sun Jun 10 13:43:36 UTC 2018
Le dimanche 10 juin 2018, 15:24:35 CEST Andrew (AFPup) Stadt a écrit :
> On Sun, 2018-06-10 at 13:43 +0200, Klaus Becker wrote:
> > Le dimanche 10 juin 2018, 13:21:19 CEST Stephen Worthington a écrit :
> > > On Sun, 10 Jun 2018 12:41:44 +0200, you wrote:
> > > > Hi,
> > > >
> > > > $ ./mythlink.pl --link /home/klaus/....
> > > > Can't locate MythTV.pm in @INC (you may need to install the
> > > > MythTV module)
> > > > (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-
> > > > gnu/perl/5.26.2 /usr/
> > > > local/share/perl/5.26.2 /usr/lib/x86_64-linux-gnu/perl5/5.26
> > > > /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26
> > > > /usr/share/perl/5.26
> > > > /usr/local/lib/ site_perl /usr/lib/x86_64-linux-gnu/perl-base) at
> > > > ./mythlink.pl line 22. BEGIN failed--compilation aborted at
> > > > ./mythlink.pl
> > > > line 22.
> > > >
> > > > The line 22 is: "use MythTV;"
> > > >
> > > > Of course perl is installed.
> > > >
> > > > Whay is "MythTV.pm in @INC" ? I have no MythTV.pm. Which MythTV
> > > > module do I
> > > > have to install ?
> > >
> > > [snip]
> > >
> > > In Ubuntu, the package is libmythtv-perl. It contains the MythTV
> > > Perl
> > > bindings.
> >
> > I installed libmythtv-perl (in Debian) , but there is still a
> > problem:
> >
> >
> > $ ./mythlink.pl --link /home/klaus/...
> > DBI
> > connect('database=mythconverg:host=127.0.0.1;port=3306','mythtv',...)
> >
> > failed: Access denied for user 'mythtv'@'localhost' (using password:
> > YES) at /
> > usr/share/perl5/MythTV.pm line 375.
> > Cannot connect to database:
> >
> > However db is running and I can use the frontend for example.
> >
> > Klaus
>
> Assuming you're running mythlink.pl as the same user as
> myth[front|back]end runs as,
That's what I do, as user "klaus".
> it should be pulling the database host,
> user, and password from $HOME/.mythtv/config.xml.
It should, but obviously it does not. The password in $HOME/.mythtv/config.xml
is correct and works with frontend and setup.
Klaus
>
> If you are running as a different user, its probably easier to
> copy/link the myth user's ~/.mythtv/config.xml to your own home dir.
>
> Andrew.
More information about the mythtv-users
mailing list