[mythtv-users] Custom perl script in OSX

Dan Wilga mythtv-users2 at dwilga-linux1.amherst.edu
Thu Jul 3 17:22:29 UTC 2014


On 7/3/14, 11:36 AM, Michael T. Dean wrote:
> 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.
On the contrary: Mac OS application bundles are wrapped up in a 
directory which the operating system uses to give the appearance to the 
end user that the whole thing is a monolithic unit. Apple assumes you 
really don't want to know what's inside the sausage, so they hide it in 
a pretty casing :-).

Perl and other programs can access individual files within a bundle as 
though they were any other file. One need only do an "ls -R 
/Applications/Calendar.app" to see what I mean.


More information about the mythtv-users mailing list