[mythtv-users] Custom perl script in OSX

Michael T. Dean mtdean at thirdcontact.com
Thu Jul 3 15:36:32 UTC 2014


On 07/03/2014 11:22 AM, Dan Wilga wrote:
> On 7/3/14, 10:36 AM, Rob Miller wrote:
>> I'm attempting to create a custom user job using this script 
>> (http://www.mythtv.org/wiki/High_Quality_Transcode) as a basis.  I am 
>> getting an error on the "Use MythTV;" line.  Can anyone tell me where 
>> my custom scripts should be located for an OSX installation?  Is that 
>> my problem or is there something else?  I am running Lion, the latest 
>> version that works on this Mac Pro...
>>
>> Can't locate MythTV.pm in @INC (@INC contains: 
>> /opt/dvr/lib/perl5/site_perl/5.16.3/darwin-thread-multi-2level 
>> /opt/dvr/lib/perl5/site_perl/5.16.3 
>> /opt/dvr/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level 
>> /opt/dvr/lib/perl5/vendor_perl/5.16.3 
>> /opt/dvr/lib/perl5/5.16.3/darwin-thread-multi-2level 
>> /opt/dvr/lib/perl5/5.16.3 /opt/dvr/lib/perl5/site_perl 
>> /opt/dvr/lib/perl5/vendor_perl .) at mythtv_turbo264hd_encode.pl line 18.
>> BEGIN failed--compilation aborted at custom_script.pl line 18.
> The problem isn't the location of your script, it's the location of 
> the MythTV perl module. You need to find MythTV.pm, and then do 
> something like:
>
>   use lib '/path/to/MythTV';
>
> before "use MythTV". Of course, depending on how you installed MythTV, 
> it's quite possible that this perl module wasn't included.

And if it's inside an "application bundle" or whatever they call them, 
there may not be any easy way (any way at all?) to access it within there.

Mike


More information about the mythtv-users mailing list