[mythtv-users] Custom perl script in OSX
George Nassas
gnassas at mac.com
Thu Jul 3 18:51:23 UTC 2014
On Jul 3, 2014, at 11:22 AM, Dan Wilga <mythtv-users2 at dwilga-linux1.amherst.edu> 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.
>From all the /opt stuff it looks like you're using the MacPorts version. I don't know if Craig packages the perl bindings but you could verify by going into a terminal window and doing a:
find /Applications -name MythTV.pm
and if that turns up nothing try /opt instead of /Applications. The output will tell you what directory to use with Dan's advice but the "correct" solution is for Craig to patch the backend's startup sequence to add the folder to perl's library search path.
Usually Craig pops up when there's an OSX question, maybe he's on holidays.
- George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140703/5d5e8831/attachment.html>
More information about the mythtv-users
mailing list