<div dir="ltr"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">So i&#39;m at a lose.&nbsp; I&#39;ve been trying to get the perl bindings to work for a week now.&nbsp; I even posted to the Gentoo forums but am not getting any good feedback.&nbsp; Here is the forum post: <a href="http://forums.gentoo.org/viewtopic-t-707272.html" target="_blank">http://forums.gentoo.org/viewtopic-t-707272.html</a><br>

<br>I&#39;ll repost it here too:<br><span>I&#39;m trying to run /usr/share/mythtv/contrib/ipodexport.pl script from within Mythtv backend as a user job.
<br>

<br>
But it fails with 
<br>
</span><table width="90%" align="center" border="0" cellpadding="3" cellspacing="1"><tbody><tr>           <td><span><b>Code:</b></span></td>        </tr>        <tr>          <td>Net::UPnP::ControlPoint is not installed!
<br>
Please install Net::UPnP or copy ~/.mythtv/config.xml
<br>
from a working MythTV installation to /home/mythtv/.mythtv/config.xml.
<br>
Compilation failed in require at /usr/share/mythtv/contrib/ipodexport.pl line 19.
<br>
BEGIN failed--compilation aborted at /usr/share/mythtv/contrib/ipodexport.pl line 19.</td>        </tr></tbody></table><span>
<br>

<br>
Line 17-20 of ipodexport.pl:
<br>
</span><table width="90%" align="center" border="0" cellpadding="3" cellspacing="1"><tbody><tr>           <td><span><b>Code:</b></span></td>        </tr>        <tr>          <td>
<br>
&nbsp; use DBI;
<br>
&nbsp; use DBD::mysql;
<br>
&gt; use MythTV;
<br>
&nbsp; &nbsp; 
<br>
</td>        </tr></tbody></table><span>
<br>

<br>
So i&#39;m assuming it can&#39;t find the perl bindings.  Here is everything I know:
<br>

<br>
1) If I run ipodexport.pl from command line as &#39;root&#39; it works perfect.
<br>

<br>
2) I changed my mythtv user login from:
<br>
</span><table width="90%" align="center" border="0" cellpadding="3" cellspacing="1"><tbody><tr>           <td><span><b>Code:</b></span></td>        </tr>        <tr>          <td>mythtv:x:102:27:added by portage for mythtv:/dev/null:/bin/false</td>

        </tr></tbody></table><span>
<br>
TO
<br>
</span><table width="90%" align="center" border="0" cellpadding="3" cellspacing="1"><tbody><tr>           <td><span><b>Code:</b></span></td>        </tr>        <tr>          <td>mythtv:x:102:27:added by portage for mythtv:/home/mythtv:/bin/bash
<br>
</td>        </tr></tbody></table><span>
<br>
so I could login as the mythtv user and run from command line, this also fails with the same error.
<br>

<br>

<br>
3) perl -V (as root)
<br>
</span><table width="90%" align="center" border="0" cellpadding="3" cellspacing="1"><tbody><tr>           <td><span><b>Code:</b></span></td>        </tr>        <tr>          <td>Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
<br>
&nbsp; Platform:
<br>
&nbsp; &nbsp; osname=linux, osvers=2.6.19-gentoo-r5, archname=i686-linux
<br>
&nbsp; &nbsp; uname=&#39;linux livecd 2.6.19-gentoo-r5 #1 smp tue apr 3 01:19:22 utc
2007 i686 intel(r) pentium(r) 4 cpu 2.40ghz genuineintel gnulinux &#39;
<br>&nbsp; &nbsp; config_args=&#39;-des -Darchname=i686-linux -Dcccdlflags=-fPIC
-Dccdlflags=-rdynamic -Dcc=i686-pc-linux-gnu-gcc -Dprefix=/usr
-Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=&nbsp; -Doptimize=-O2
-march=i686 -funroll-loops -pipe -Duselargefiles -Dd_semctl_semun
-Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1
-Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1
-Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm
-Dinc_version_list=5.8.0 5.8.0/i686-linux 5.8.2 5.8.2/i686-linux 5.8.4
5.8.4/i686-linux 5.8.5 5.8.5/i686-linux 5.8.6 5.8.6/i686-linux 5.8.7
5.8.7/i686-linux&nbsp; -Dcf_by=Gentoo -Ud_csh -Dusenm -Di_ndbm -Di_gdbm
-Di_db&#39;
<br>
&nbsp; &nbsp; hint=recommended, useposix=true, d_sigaction=define
<br>
&nbsp; &nbsp; usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
<br>
&nbsp; &nbsp; useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
<br>
&nbsp; &nbsp; use64bitint=undef use64bitall=undef uselongdouble=undef
<br>
&nbsp; &nbsp; usemymalloc=n, bincompat5005=undef
<br>
&nbsp; Compiler:
<br>&nbsp; &nbsp; cc=&#39;i686-pc-linux-gnu-gcc&#39;, ccflags =&#39;-fno-strict-aliasing
-pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64&#39;,
<br>
&nbsp; &nbsp; optimize=&#39;-O2 -march=i686 -funroll-loops -pipe&#39;,
<br>
&nbsp; &nbsp; cppflags=&#39;-fno-strict-aliasing -pipe -Wdeclaration-after-statement&#39;
<br>
&nbsp; &nbsp; ccversion=&#39;&#39;, gccversion=&#39;4.1.2 (Gentoo 4.1.2 p1.1)&#39;, gccosandvers=&#39;&#39;
<br>
&nbsp; &nbsp; intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
<br>
&nbsp; &nbsp; d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
<br>
&nbsp; &nbsp; ivtype=&#39;long&#39;, ivsize=4, nvtype=&#39;double&#39;, nvsize=8, Off_t=&#39;off_t&#39;, lseeksize=8
<br>
&nbsp; &nbsp; alignbytes=4, prototype=define
<br>
&nbsp; Linker and Libraries:
<br>
&nbsp; &nbsp; ld=&#39;i686-pc-linux-gnu-gcc&#39;, ldflags =&#39; -L/usr/local/lib&#39;
<br>
&nbsp; &nbsp; libpth=/usr/local/lib /lib /usr/lib
<br>
&nbsp; &nbsp; libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
<br>
&nbsp; &nbsp; perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
<br>
&nbsp; &nbsp; libc=/lib/<a href="http://libc-2.6.1.so" target="_blank">libc-2.6.1.so</a>, so=so, useshrplib=false, libperl=libperl.a
<br>
&nbsp; &nbsp; gnulibc_version=&#39;2.6.1&#39;
<br>
&nbsp; Dynamic Linking:
<br>
&nbsp; &nbsp; dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=&#39;-rdynamic&#39;
<br>
&nbsp; &nbsp; cccdlflags=&#39;-fPIC&#39;, lddlflags=&#39;-shared -L/usr/local/lib&#39;
<br>

<br>

<br>
Characteristics of this binary (from libperl):
<br>
&nbsp; Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
<br>
&nbsp; Built under linux
<br>
&nbsp; Compiled at Aug 30 2008 12:13:30
<br>
&nbsp; @INC:
<br>
&nbsp; &nbsp; /etc/perl
<br>
&nbsp; &nbsp; /usr/lib/perl5/vendor_perl/5.8.8/i686-linux
<br>
&nbsp; &nbsp; /usr/lib/perl5/vendor_perl/5.8.8
<br>
&nbsp; &nbsp; /usr/lib/perl5/vendor_perl/5.8.2
<br>
&nbsp; &nbsp; /usr/lib/perl5/vendor_perl/5.8.2/i686-linux
<br>
&nbsp; &nbsp; /usr/lib/perl5/vendor_perl
<br>
&nbsp; &nbsp; /usr/lib/perl5/site_perl/5.8.8/i686-linux
<br>
&nbsp; &nbsp; /usr/lib/perl5/site_perl/5.8.8
<br>
&nbsp; &nbsp; /usr/lib/perl5/site_perl/5.8.0
<br>
&nbsp; &nbsp; /usr/lib/perl5/site_perl/5.8.0/i686-linux
<br>
&nbsp; &nbsp; /usr/lib/perl5/site_perl
<br>
&nbsp; &nbsp; /usr/lib/perl5/5.8.8/i686-linux
<br>
&nbsp; &nbsp; /usr/lib/perl5/5.8.8
<br>
&nbsp; &nbsp; /usr/local/lib/site_perl
<br>
&nbsp; &nbsp; .
<br>
</td>        </tr></tbody></table><span>
<br>

<br>
4) perl -V (as mythtv)
<br>
</span><table width="90%" align="center" border="0" cellpadding="3" cellspacing="1"><tbody><tr>           <td><span><b>Code:</b></span></td>        </tr>        <tr>          <td>
<br>
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
<br>
&nbsp; Platform:
<br>
&nbsp; &nbsp; osname=linux, osvers=2.6.19-gentoo-r5, archname=i686-linux
<br>&nbsp; &nbsp; uname=&#39;linux livecd 2.6.19-gentoo-r5 #1 smp tue apr 3 01:19:22
utc 2007 i686 intel(r) pentium(r) 4 cpu 2.40ghz genuineintel gnulinux &#39;
<br>&nbsp; &nbsp; config_args=&#39;-des -Darchname=i686-linux -Dcccdlflags=-fPIC
-Dccdlflags=-rdynamic -Dcc=i686-pc-linux-gnu-gcc -Dprefix=/usr
-Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=&nbsp; -Doptimize=-O2
-march=i686 -funroll-loops -pipe -Duselargefiles -Dd_semctl_semun
-Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1
-Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1
-Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm
-Dinc_version_list=5.8.0 5.8.0/i686-linux 5.8.2 5.8.2/i686-linux 5.8.4
5.8.4/i686-linux 5.8.5 5.8.5/i686-linux 5.8.6 5.8.6/i686-linux 5.8.7
5.8.7/i686-linux&nbsp; -Dcf_by=Gentoo -Ud_csh -Dusenm -Di_ndbm -Di_gdbm
-Di_db&#39;
<br>
&nbsp; &nbsp; hint=recommended, useposix=true, d_sigaction=define
<br>
&nbsp; &nbsp; usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
<br>
&nbsp; &nbsp; useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
<br>
&nbsp; &nbsp; use64bitint=undef use64bitall=undef uselongdouble=undef
<br>
&nbsp; &nbsp; usemymalloc=n, bincompat5005=undef
<br>
&nbsp; Compiler:
<br>&nbsp; &nbsp; cc=&#39;i686-pc-linux-gnu-gcc&#39;, ccflags =&#39;-fno-strict-aliasing
-pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64&#39;,
<br>
&nbsp; &nbsp; optimize=&#39;-O2 -march=i686 -funroll-loops -pipe&#39;,
<br>
&nbsp; &nbsp; cppflags=&#39;-fno-strict-aliasing -pipe -Wdeclaration-after-statement&#39;
<br>
&nbsp; &nbsp; ccversion=&#39;&#39;, gccversion=&#39;4.1.2 (Gentoo 4.1.2 p1.1)&#39;, gccosandvers=&#39;&#39;
<br>
&nbsp; &nbsp; intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
<br>
&nbsp; &nbsp; d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
<br>
&nbsp; &nbsp; ivtype=&#39;long&#39;, ivsize=4, nvtype=&#39;double&#39;, nvsize=8, Off_t=&#39;off_t&#39;, lseeksize=8
<br>
&nbsp; &nbsp; alignbytes=4, prototype=define
<br>
&nbsp; Linker and Libraries:
<br>
&nbsp; &nbsp; ld=&#39;i686-pc-linux-gnu-gcc&#39;, ldflags =&#39; -L/usr/local/lib&#39;
<br>
&nbsp; &nbsp; libpth=/usr/local/lib /lib /usr/lib
<br>
&nbsp; &nbsp; libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
<br>
&nbsp; &nbsp; perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
<br>
&nbsp; &nbsp; libc=/lib/<a href="http://libc-2.6.1.so" target="_blank">libc-2.6.1.so</a>, so=so, useshrplib=false, libperl=libperl.a
<br>
&nbsp; &nbsp; gnulibc_version=&#39;2.6.1&#39;
<br>
&nbsp; Dynamic Linking:
<br>
&nbsp; &nbsp; dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=&#39;-rdynamic&#39;
<br>
&nbsp; &nbsp; cccdlflags=&#39;-fPIC&#39;, lddlflags=&#39;-shared -L/usr/local/lib&#39;
<br>

<br>

<br>
Characteristics of this binary (from libperl):
<br>
&nbsp; Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
<br>
&nbsp; Built under linux
<br>
&nbsp; Compiled at Aug 30 2008 12:13:30
<br>
&nbsp; @INC:
<br>
&nbsp; &nbsp; /etc/perl
<br>
&nbsp; &nbsp; /usr/lib/perl5/vendor_perl/5.8.8/i686-linux
<br>
&nbsp; &nbsp; /usr/lib/perl5/vendor_perl/5.8.8
<br>
&nbsp; &nbsp; /usr/lib/perl5/vendor_perl/5.8.2
<br>
&nbsp; &nbsp; /usr/lib/perl5/vendor_perl/5.8.2/i686-linux
<br>
&nbsp; &nbsp; /usr/lib/perl5/vendor_perl
<br>
&nbsp; &nbsp; /usr/lib/perl5/site_perl/5.8.8/i686-linux
<br>
&nbsp; &nbsp; /usr/lib/perl5/site_perl/5.8.8
<br>
&nbsp; &nbsp; /usr/lib/perl5/site_perl/5.8.0
<br>
&nbsp; &nbsp; /usr/lib/perl5/site_perl/5.8.0/i686-linux
<br>
&nbsp; &nbsp; /usr/lib/perl5/site_perl
<br>
&nbsp; &nbsp; /usr/lib/perl5/5.8.8/i686-linux
<br>
&nbsp; &nbsp; /usr/lib/perl5/5.8.8
<br>
&nbsp; &nbsp; /usr/local/lib/site_perl
<br>
&nbsp; &nbsp; .
<br>
</td>        </tr></tbody></table><span>
<br>

<br>
File listing:
<br>
</span><table width="90%" align="center" border="0" cellpadding="3" cellspacing="1"><tbody><tr>           <td><span><b>Code:</b></span></td>        </tr>        <tr>          <td>
<br>
-r--r--r-- 1 mythtv root 1871 Aug 31 04:16 /usr/lib/perl5/vendor_perl/5.8.8/IO/Socket/INET/MythTV.pm
<br>
-r--r--r-- 1 mythtv root 33151 Aug 31 04:16 /usr/lib/perl5/vendor_perl/5.8.8/MythTV.pm
<br>
-r--r--r--&nbsp; 1 mythtv root&nbsp; 4372 Aug 31 04:16 /usr/lib/perl5/vendor_perl/5.8.8/MythTV/Channel.pm
<br>
-r--r--r--&nbsp; 1 mythtv root 20494 Aug 31 04:16 /usr/lib/perl5/vendor_perl/5.8.8/MythTV/Program.pm
<br>
-r--r--r--&nbsp; 1 mythtv root 23275 Aug 31 04:16 /usr/lib/perl5/vendor_perl/5.8.8/MythTV/Recording.pm
<br>
-r--r--r--&nbsp; 1 mythtv root&nbsp; 2601 Aug 31 04:16 /usr/lib/perl5/vendor_perl/5.8.8/MythTV/StorageGroup.pm
<br>
-rw-r--r-- 1 root root 612 Aug 31 05:01 /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/MythTV/.packlist
<br>
</td>        </tr></tbody></table><span>
<br>

<br>
I changed the owner to &#39;mythtv&#39; user, it was &#39;root&#39;.
<br>

<br>I also noticed I still have a couple old perl libs in
/usr/lib/perl5/5.8.0 and <a href="http://5.8.2." target="_blank">5.8.2.</a> Including a dir in vendor_per/<a href="http://5.8.2." target="_blank">5.8.2.</a>
Should I delete these old perl versions? I&#39;ve already run
&#39;perl-clearner all&#39;, it didn&#39;t help.
<br>

<br>
Any clues?  I can&#39;t figure this out for the life of me.
<br>

<br>
Thanks
<br>

<br>
EDIT: just upgraded to media-tv/mythtv-0.21_p18116 and dev-lang/perl-5.8.8-r5</span><br></div>
</blockquote></div><br>Wow, think I just fixed it.&nbsp; I just did what it said...copied a working ~/.mythtv/config from my frontend user to the home dir of the backend user and boom, the perl script started working.&nbsp; oh man.&nbsp; It was a long journey, hahaha.&nbsp; But, in my defense the way Gentoo sets up the backend user is without a shell or home dir, so I had to figure out all that first ;)<br>
<br>Hope this helps anyone else out there.<br><br></div>