<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Jul 3, 2014, at 11:22 AM, Dan Wilga &lt;<a href="mailto:mythtv-users2@dwilga-linux1.amherst.edu">mythtv-users2@dwilga-linux1.amherst.edu</a>&gt; wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 7/3/14, 10:36 AM, Rob Miller wrote:<br>
    </div>
    <blockquote cite="mid:CA+So5BV4-kpnwcXysU1KxMasi5g8YtfUwMar1bDj7h=ucVce=Q@mail.gmail.com" type="cite">
      <div dir="ltr">I'm attempting to create a custom user job using
        this script (<a moz-do-not-send="true" href="http://www.mythtv.org/wiki/High_Quality_Transcode">http://www.mythtv.org/wiki/High_Quality_Transcode</a>)
        as a basis. &nbsp;I am getting an error on the "Use MythTV;" line.
        &nbsp;Can anyone tell me where my custom scripts should be located
        for an OSX installation? &nbsp;Is that my problem or is there
        something else? &nbsp;I am running Lion, the latest version that
        works on this Mac Pro...
        <div>
          <br>
        </div>
        <div>
          <div>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 <a moz-do-not-send="true" href="http://mythtv_turbo264hd_encode.pl/">mythtv_turbo264hd_encode.pl</a>
            line 18.</div>
          <div>BEGIN failed--compilation aborted at <a moz-do-not-send="true" href="http://custom_script.pl/">custom_script.pl</a>
            line 18.</div>
        </div>
      </div>
    </blockquote>
    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:<br>
    <br>
    &nbsp; use lib '/path/to/MythTV';<br>
    <br>
    before "use MythTV". Of course, depending on how you installed
    MythTV, it's quite possible that this perl module wasn't included.</div></blockquote><br></div><div>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:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>find /Applications -name MythTV.pm</div><div><br></div><div>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.</div><div><br></div><div>Usually Craig pops up when there's an OSX question, maybe he's on holidays.</div><div><br></div><div>- George</div><br></body></html>