[mythtv-users] Can't locate MythTV.pm in @INC

Brad DerManouelian myth at dermanouelian.com
Wed Oct 22 13:57:33 UTC 2008


On Oct 22, 2008, at 5:08 AM, James Pifer wrote:

> Yesterday I upgraded my mythbackend and frontends using yum. I  
> normally
> run optimize_mythdb.pl on a regular basis. After the upgrade I'm  
> getting
> an error in the backend:
> Database error was:
> Table './mythconverg/recordedseek' is marked as crashed and should  
> be repaired

For this error, you should be able to run a repair in MySQL.
http://dev.mysql.com/doc/refman/5.0/en/repair-table.html

> When I try to run optimize_mythdb.pl I get this error:
> Can't locate MythTV.pm in @INC (@INC contains: /usr/lib/perl5/ 
> site_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/ 
> 5.10.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/ 
> lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/ 
> vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/ 
> vendor_perl/5.10.0 /usr/lib/perl5/5.10.0/i386-linux-thread-multi / 
> usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/i386-linux- 
> thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/ 
> site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/ 
> site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/ 
> site_perl /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi / 
> usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.8.8 / 
> usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 / 
> usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .) at / 
> usr/share/doc/mythtv-docs-0.21/contrib/optimize_mythdb.pl line 15.
> BEGIN failed--compilation aborted at /usr/share/doc/mythtv-docs-0.21/ 
> contrib/optimize_mythdb.pl line 15.
>
> [root at mythtv ~]# locate MythTV.pm
> /usr/local/lib/perl5/site_perl/5.10.0/MythTV.pm
> /usr/local/lib/perl5/site_perl/5.10.0/IO/Socket/INET/MythTV.pm

You have two versions of perl installed. It looks like the mythtv perl  
bindings are installed in 5.10.0, but you're using 5.8.x. to fix this,  
copy the bindings directory to one of the paths listed in @INC. (You  
posted the list of paths in which it's trying to find the bindings.)

-Brad



More information about the mythtv-users mailing list