<div dir="ltr">Thanks all. You got me over the first hurdle, but I am working through several more now with this knowledge. Not even getting <a href="http://optimize_mythdb.pl">optimize_mythdb.pl</a> to run, I wonder if this macports install is working properly with perl. I'll keep experimenting.<div>
<br></div><div>For the record there are two Myth.pm files in the following paths:</div><div>
<p class="">/opt/dvr/lib/perl5/site_perl/5.12.5/IO/Socket/INET</p>
<p class="">/opt/dvr/lib/perl5/site_perl/5/12/5</p><p class="">And now I'm trying to get DBI to work.</p><p class="">Rob<br></p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 3, 2014 at 11:51 AM, George Nassas <span dir="ltr"><<a href="mailto:gnassas@mac.com" target="_blank">gnassas@mac.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div class="h5">On Jul 3, 2014, at 11:22 AM, Dan Wilga <<a href="mailto:mythtv-users2@dwilga-linux1.amherst.edu" target="_blank">mythtv-users2@dwilga-linux1.amherst.edu</a>> wrote:<br>
<div><br><blockquote type="cite">
<div bgcolor="#FFFFFF" text="#000000">
<div>On 7/3/14, 10:36 AM, Rob Miller wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I'm attempting to create a custom user job using
this script (<a href="http://www.mythtv.org/wiki/High_Quality_Transcode" target="_blank">http://www.mythtv.org/wiki/High_Quality_Transcode</a>)
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...
<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 href="http://mythtv_turbo264hd_encode.pl/" target="_blank">mythtv_turbo264hd_encode.pl</a>
line 18.</div>
<div>BEGIN failed--compilation aborted at <a href="http://custom_script.pl/" target="_blank">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>
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></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 style="white-space:pre-wrap">        </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><span class="HOEnZb"><font color="#888888"><div><br></div><div>- George</div><br></font></span></div>
<br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
<br></blockquote></div><br></div>