<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:Arial,Helvetica,sans-serif">On Mon, Jan 13, 2020 at 9:42 PM Jeremy D. Eiden <<a href="mailto:theonlyrealperson@gmail.com">theonlyrealperson@gmail.com</a>> wrote:</span><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p><font face="Times New Roman">Looking for an answer to Greg
Oliver's question, I realized I cannot run <a href="http://optimize_mythdb.pl" target="_blank">optimize_mythdb.pl</a>
from command line on OpenSuse 15.1, mythtv version 29-fixes, and
I'd like to put it into cron. I get this error:</font></p></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:monospace,monospace">Thanks for looking into my question :)</div><br></div><div> <span style="font-family:"Times New Roman"">Base class package
"IO::Socket::INET6" is empty.</span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><p><font face="Times New Roman">
(Perhaps you need to 'use' the module which defines that
package first,<br>
or make that module available in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.26.1/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.26.1
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.26.1
/usr/lib/perl5/5.26.1/x86_64-linux-thread-multi
/usr/lib/perl5/5.26.1 /usr/lib/perl5/site_perl).<br>
at /usr/lib/perl5/vendor_perl/5.26.1/IO/Socket/INET/MythTV.pm
line 14.<br>
BEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.26.1/IO/Socket/INET/MythTV.pm line
14.<br>
Compilation failed in require at
/usr/lib/perl5/vendor_perl/5.26.1/MythTV.pm line 14.<br>
BEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.26.1/MythTV.pm line 14.<br>
Compilation failed in require at ./<a href="http://optimize_mythdb.pl" target="_blank">optimize_mythdb.pl</a> line 15.<br>
BEGIN failed--compilation aborted at ./<a href="http://optimize_mythdb.pl" target="_blank">optimize_mythdb.pl</a> line
15.<br>
</font></p>
<p>As to IPV6, I don't run that at all, I disable it completely.
I've never worked at all with Perl, so I'm not exactly sure what
to do. @INC, from the error message, already contains the Perl I
have installed. <br>
</p>
<p>However, it seems like I don't have "DBI" and "MythTV" defined
correctly, but I don't know how to correctly define them in Perl.</p>
<p>Thank you, and I apologize in advance for the silly question.</p></div></blockquote><div><br></div><div class="gmail_default" style="font-family:monospace,monospace">You do not really need to run that myth provided script. It is just running a few MySQL / MariadDB commands. This bash should get it done (change your user/pass and host as necessary):</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">for i in $(echo "show tables;" |mysql -u mythtv -pmythtv -h mysql mythconverg) ; do for j in repair optimize analyze ; do echo "$j table $i;"|mysql -u mythtv -pmythtv -h mysql mythconverg; done ; done<br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">echo "ALTER TABLE `recordedseek` ORDER BY chanid, starttime, type;"|mysql -u mythtv -pmythtv -h mysql mythconverg</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace"><div class="gmail_default">echo "ALTER TABLE `program` ORDER BY starttime, chanid;"|mysql -u mythtv -pmythtv -h mysql mythconverg</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default">echo "ALTER TABLE `filemarkup` ORDER BY filename;"|mysql -u mythtv -pmythtv -h mysql mythconverg</div><div class="gmail_default"></div></div></div></div></div>