{"id":532,"date":"2006-09-16T03:52:32","date_gmt":"2006-09-16T08:52:32","guid":{"rendered":"http:\/\/blogs.law.harvard.edu\/hoanga\/2006\/09\/16\/mythtv-mysql5-ubuntu-dapper-busted\/"},"modified":"2006-09-16T03:52:32","modified_gmt":"2006-09-16T08:52:32","slug":"mythtv-mysql5-ubuntu-dapper-busted","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/hoanga\/2006\/09\/16\/mythtv-mysql5-ubuntu-dapper-busted\/","title":{"rendered":"Mythtv + Mysql5 + Ubuntu Dapper = Busted"},"content":{"rendered":"<p><a name='a655'><\/a><\/p>\n<h4>A little history&#8230;<\/h4>\n<p>I took another shot at getting mythtv setup again after trying it a few<\/p>\n<p>years ago and lashing myself a few times trying to get the ivtv driver<\/p>\n<p>patched into a mainline kernel.   After a bit of work back then I got it<\/p>\n<p>working but times changed and I ended up using the machine for different<\/p>\n<p>purposes.<\/p>\n<h4>Installing MythTV again&#8230;<\/h4>\n<p>Once again, I&#8217;ve decided to take another shot at a mythtv installation.<\/p>\n<p>This time I figured I&#8217;d piggyback onto a distribution that probably had<\/p>\n<p>packages for it available.  My choice was Ubuntu Dapper.  So I did the<\/p>\n<p>simple thing and tried:<\/p>\n<p><em><\/p>\n<p>sudo apt-get install mythtv<\/p>\n<p><\/em><\/p>\n<h4>Trying to configure MythTV<\/h4>\n<p>And soon I had a mythtv installation almost setup.   It seems that many<\/p>\n<p>of the Japanese patches have been merged into mythtv (Wow!) so I didn&#8217;t<\/p>\n<p>have to crawl all over the Japanese web space to figure out how to patch<\/p>\n<p>in Japanese patches to obscure_utility (TM) just to get this working.<\/p>\n<p>The first time I tried populating mythtv&#8217;s database with TV listing information<\/p>\n<p>I got errors siilar to:<\/p>\n<p><em><\/p>\n<p>Malformed UTF-8 character (1 byte, need 3, after start byte 0xe7) at<\/p>\n<p>\/usr\/lib\/perl5\/vendor_perl\/5.8.8\/Date\/Manip.pm line 7167.<\/p>\n<p><\/em><\/p>\n<p>Since I&#8217;m not a perl god nor am I intimately familiar with mythtv or any<\/p>\n<p>of its tools, I ended up searching on that error message and found a<\/p>\n<p><a href=\"http:\/\/www.freeml.com\/message\/mythtv-jp@freeml.com\/0000175;jsessionid=dt643pvqp1\">post<\/a> <\/p>\n<p>on a Japanese board basically saying this would not be a major problem<\/p>\n<p>with using mythtv in Japanese so I did what most people do&#8230; ignored it.<\/p>\n<p>After I got the base configuration done, I realized I&#8217;d be spending a lot<\/p>\n<p>of time not looking directly at this machine since it&#8217;s main job was to be<\/p>\n<p>a backend recording machine rather than a frontend so I installed mythweb<\/p>\n<p>to help me manage recordings:<\/p>\n<p><em><\/p>\n<p>sudo apt-get install mythweb<\/p>\n<p><\/em><\/p>\n<h4>The Killer Problem settles in<\/h4>\n<p>This is where problems started coming in.  After populating the TV listings<\/p>\n<p>database, mythweb still failed to show ANY listings whatsoever.   Needless<\/p>\n<p>to say, this makes it a little hard to schedule watching anything.<\/p>\n<p>After waiting a few days to see if this was just a transient problem<\/p>\n<p>I still had no TV listings so I decided to search on it.   What I found<\/p>\n<p>basically was Mysql 5 changed a keyword &#8216;repeat&#8217; to a reserved word which<\/p>\n<p>OF COURSE mythtv relied on using in one of its tables.  What this results<\/p>\n<p>in is a non-working setup for viewing TV listings on mythtv.   This problem<\/p>\n<p>affects mythtv 0.18.x and the mythtv developers have basically said &#8216;upgrade&#8217;<\/p>\n<p>if you want to fix it.  However the Ubuntu Dapper packages stay steady at<\/p>\n<p>0.18.x with a dependency on mysql-server which defaults to Mysql5.  It seems<\/p>\n<p>there are updated packages in Edgy (Why the f&#8217; is it always in the NEXT<\/p>\n<p>release rather than backported to THIS release????) but none for Dapper yet.<\/p>\n<p>I hope someone backports these packages.  In the meantime, I&#8217;ll try to see<\/p>\n<p>if the updated packages build cleanly on Dapper for my own purposes.<\/p>\n<h4>References<\/h4>\n<ul>\n<li><a href=\"https:\/\/launchpad.net\/distros\/ubuntu\/+source\/mythtv\/+bugs\">\n<p>All bugs logged against mythtv in Ubuntu<\/a><\/li>\n<li><a href=\"https:\/\/launchpad.net\/distros\/ubuntu\/+source\/mythtv\/+bug\/30593\">\n<p>One bug logged against Ubuntu mythtv<\/a><\/li>\n<li><a href=\"http:\/\/tsuttayo.sytes.net\/video\/mythtv\/mythsetup.html\">\n<p>Ubuntu source packages for updated Mythtv (0.20)<\/a><\/li>\n<li><a href=\"http:\/\/revu.tauware.de\/details.py?upid=3149\">The REVU page for\n<p>the MythTV package (A link on where to download all the source files for<\/p>\n<p>personal testing would be VERY helpful)<\/li>\n<p><\/a><\/p>\n<li><a href=\"http:\/\/www.mail-archive.com\/mythtv-commits%40mythtv.org\/msg06827.html\">\n<p>Mythtv&#8217;s trouble ticket on this problem<\/a><\/li>\n<li><a href=\"http:\/\/www.ubuntuforums.org\/showthread.php?t=236863\">\n<p>Installing Mythtv via SVN on Ubuntu (Not recommended since 0.20 of mythtv is<\/p>\n<p>alread released)<\/a><\/li>\n<li><a href=\"http:\/\/tsuttayo.sytes.net\/video\/mythtv\/mythsetup.html\">\n<p>Japanese instructions for setting up Myth TV<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A little history&#8230; I took another shot at getting mythtv setup again after trying it a few years ago and lashing myself a few times trying to get the ivtv driver patched into a mainline kernel. After a bit of work back then I got it working but times changed and I ended up using [&hellip;]<\/p>\n","protected":false},"author":704,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1212],"tags":[],"class_list":["post-532","post","type-post","status-publish","format-standard","hentry","category-tagme"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/posts\/532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/users\/704"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/comments?post=532"}],"version-history":[{"count":0,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/posts\/532\/revisions"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/media?parent=532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/categories?post=532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/tags?post=532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}