[mythtv-users] Bindings not upgrading

aaron memoryguy at gmail.com
Thu Sep 16 03:09:37 UTC 2010


On Wed, Sep 15, 2010 at 13:48, Michael T. Dean <mtdean at thirdcontact.com> wrote:
>
> If that's the case, then the problem for the Perl bindings is you have 2
> copies of the bindings installed.  One old copy in the place it always used
> to install (the place where Perl said is the right place) and the other in
> the place you specified with --prefix (which may not be the right place,
> according to Perl--and, if nothing else, doesn't seem to be the first place
> checked by Perl on your setup).
>
> TTBOMK, that can't happen with the Python bindings because they still
> install to the place Python says is the right place.

Okay, we're on to something. I knew it was a problem on my end...

I searched my system for "MythTV.pm" and found that I do, indeed, have
it in two locations:

4.0K	/usr/lib/perl5/site_perl/5.10.0/IO/Socket/INET/MythTV.pm
36K	/usr/lib/perl5/site_perl/5.10.0/MythTV.pm
4.0K	/usr/local/lib/perl5/site_perl/5.10.0/IO/Socket/INET/MythTV.pm
36K	/usr/local/lib/perl5/site_perl/5.10.0/MythTV.pm

I removed MythTV.pm and the MythTV directory from
/usr/lib/perl5/site_perl/5.10.0/ and from /usr/local... then I went to
my tree and installed again. The messages said it was installing in
/usr/local... so far so good (huzzah!)

But now...

myth at myth:~$ bin/mythtv-status --colour --episode --recording-now
--next-recording --verbose
<snip>
Can't locate MythTV.pm in @INC (@INC contains:
/usr/lib/perl5/5.10.0/i486-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl/5.10.0/i486-linux-thread-multi
/usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.10.0/i486-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at
bin/mythtv-status line 580.
<snip>

... How hard is it to convince Perl to search for modules in
/usr/local ? Or should I just give in and let it install in /usr ?


I also followed Raymond's suggestion for Python... I uninstalled from
/usr and then ran make install again... it installed into
/usr/local... but then when I try to run a python program it
complains:

myth at myth:~/build/mythcal-read-only$ ./mythcal
Traceback (most recent call last):
  File "./mythcal", line 33, in <module>
    from MythTV import MythBE
ImportError: No module named MythTV

So then I ran "python setup.py install --prefix=/usr/local" and tried
again and then I got a different error, which indicated that it was
able to find the module but had other issues (I think that script
needs updates or something). But it did not complain about version
mismatches.

So it sounds like Myth is installing stuff to the right place
(/usr/local) but my Perl isn't configured to look for stuff there. How
do I make them get along? :)

Thanks for your help!
aaron


More information about the mythtv-users mailing list