[mythtv-users] Bindings not upgrading

Michael T. Dean mtdean at thirdcontact.com
Thu Sep 16 03:48:15 UTC 2010


  On 09/15/2010 11:09 PM, aaron wrote:
> On Wed, Sep 15, 2010 at 13:48, Michael T. Dean 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 ?

Well, you have a couple of options...

http://www.gossamer-threads.com/lists/mythtv/dev/299202#299202

(that, specifically being my post where I tried to stop this change from 
happening the first time it came up).  IMHO, all the options are ugly.

I've been considering making it so our configure only overrides Perl's 
preference when appropriate.  Maybe I'll do the patch tonight and see if 
I can get it approved for inclusion before 0.24 release.

Mike


More information about the mythtv-users mailing list