[mythtv-users] Compiling latest SVN

Michael Rice mikerice1969 at gmail.com
Fri Nov 23 17:12:34 UTC 2007


On Nov 23, 2007 8:54 AM, Harry Devine <lifter89 at comcast.net> wrote:
>
> Michael Rice wrote:
> > On Nov 23, 2007 8:19 AM, Harry Devine <lifter89 at comcast.net> wrote:
> >
> >> I just did both steps, and got the same issues.  I ran "service
> >> mythbackend restart" and got an error stating "unrecognized service".
> >> Obviously something's missing, I just can't seem to figure out what.
> >>
> >
> > When you removed the ATRPMS package it probably took out the startup
> > script in /etc/init.d.
> >
> > What I did to upgrade to SVN from ATRPMS packages:
> >
> > 1. Build/install with --prefix=/usr/local
> > 2. Add to ld.so.conf as state above
> > 3. rm -f /usr/bin/myth* (and any other myth executables)
> > 4. rm -rf /usr/lib/libmyth (and any other myth stuff)
> >
> > Just make sure you have no myth files in /usr/bin and /usr/local and
> > try mythbackend from the command line.  If still getting an error
> > check permissions and check that /usr/local is in /etc/ld.so.conf.
> >
> >
>
> I did options 1 and 2 already as you suggested.  I don't see any myth
> files under /usr/bin or /usr/lib, but I do have myth files under
> /usr/local/bin since this is where I told the make install to go (via
> --prefix=/usr/local).  I still get those errors.  Also, my ld.so.conf
> has /usr/local/lib as the last line (as per suggestion 2 above).  As for
> permissions, I compiled and installed as root, so the files under
> /usr/local/bin are owned by root.  Should these be owned by the mythtv
> user and group?

I am not sure which errors you are getting now... the shared library
error or something else?

Here is what my installation looks like:

[root at masterbackend ~]# ldconfig -v | grep myth
        libmythavformat-0.20.so.0 -> libmythavformat-0.20.so.0.20.0
        libmythfreemheg-0.20.so.0 -> libmythfreemheg-0.20.so.0.20.0
        libmyth-0.20.so.0 -> libmyth-0.20.so.0.20.0
        libmythavcodec-0.20.so.0 -> libmythavcodec-0.20.so.0.20.0
        libmythlivemedia-0.20.so.0 -> libmythlivemedia-0.20.so.0.20.0
        libmythtv-0.20.so.0 -> libmythtv-0.20.so.0.20.0
        libmythui-0.20.so.0 -> libmythui-0.20.so.0.20.0
        libmythupnp-0.20.so.0 -> libmythupnp-0.20.so.0.20.0
        libmythavutil-0.20.so.0 -> libmythavutil-0.20.so.0.20.0

[root at mythfrontend2 ~]# ls -l /usr/local/bin/myth*
-rwxr-xr-x 1 root root  590882 2007-11-20 12:32 /usr/local/bin/mytharchivehelper
-rwxr-xr-x 1 root root 4430624 2007-11-20 12:32 /usr/local/bin/mythbackend
-rwxr-xr-x 1 root root 2957299 2007-11-20 12:32 /usr/local/bin/mythcommflag
-rwxr-xr-x 1 root root 1326798 2007-11-20 12:32 /usr/local/bin/mythfilldatabase
-rwxr-xr-x 1 root root 7369474 2007-11-20 12:32 /usr/local/bin/mythfrontend
-rwxr-xr-x 1 root root  149336 2007-11-20 12:32 /usr/local/bin/mythjobqueue
-rwxr-xr-x 1 root root 1008705 2007-11-20 12:32 /usr/local/bin/mythlcdserver
-rwxr-xr-x 1 root root  186891 2007-11-20 12:32 /usr/local/bin/mythreplex
-rwxr-xr-x 1 root root  221094 2007-11-20 12:32 /usr/local/bin/mythshutdown
-rwxr-xr-x 1 root root 1095766 2007-11-20 12:32 /usr/local/bin/mythtranscode
-rwxr-xr-x 1 root root  175043 2007-11-20 12:32 /usr/local/bin/mythtv
-rwxr-xr-x 1 root root   89710 2007-11-20 12:32 /usr/local/bin/mythtvosd
-rwxr-xr-x 1 root root  579256 2007-11-20 12:32 /usr/local/bin/mythtv-setup
-rwxr-xr-x 1 root root  688950 2007-11-20 12:32 /usr/local/bin/mythwelcome


[root at mythfrontend2 ~]# ls -l /usr/local/lib/libmyth*
lrwxrwxrwx 1 root root       22 2007-11-20 12:32
/usr/local/lib/libmyth-0.20.so -> libmyth-0.20.so.0.20.0
lrwxrwxrwx 1 root root       22 2007-11-20 12:32
/usr/local/lib/libmyth-0.20.so.0 -> libmyth-0.20.so.0.20.0
lrwxrwxrwx 1 root root       22 2007-11-20 12:32
/usr/local/lib/libmyth-0.20.so.0.20 -> libmyth-0.20.so.0.20.0
-rwxr-xr-x 1 root root 13895285 2007-11-20 12:32
/usr/local/lib/libmyth-0.20.so.0.20.0
lrwxrwxrwx 1 root root       29 2007-11-20 12:32
/usr/local/lib/libmythavcodec-0.20.so -> libmythavcodec-0.20.so.0.20.0
lrwxrwxrwx 1 root root       29 2007-11-20 12:32
/usr/local/lib/libmythavcodec-0.20.so.0 ->
libmythavcodec-0.20.so.0.20.0
lrwxrwxrwx 1 root root       29 2007-11-20 12:32
/usr/local/lib/libmythavcodec-0.20.so.0.20 ->
libmythavcodec-0.20.so.0.20.0
-rwxr-xr-x 1 root root  9900144 2007-11-20 12:32
/usr/local/lib/libmythavcodec-0.20.so.0.20.0
lrwxrwxrwx 1 root root       30 2007-11-20 12:32
/usr/local/lib/libmythavformat-0.20.so ->
libmythavformat-0.20.so.0.20.0
lrwxrwxrwx 1 root root       30 2007-11-20 12:32
/usr/local/lib/libmythavformat-0.20.so.0 ->
libmythavformat-0.20.so.0.20.0
lrwxrwxrwx 1 root root       30 2007-11-20 12:32
/usr/local/lib/libmythavformat-0.20.so.0.20 ->
libmythavformat-0.20.so.0.20.0
-rwxr-xr-x 1 root root  2950008 2007-11-20 12:32
/usr/local/lib/libmythavformat-0.20.so.0.20.0
lrwxrwxrwx 1 root root       28 2007-11-20 12:32
/usr/local/lib/libmythavutil-0.20.so -> libmythavutil-0.20.so.0.20.0
lrwxrwxrwx 1 root root       28 2007-11-20 12:32
/usr/local/lib/libmythavutil-0.20.so.0 -> libmythavutil-0.20.so.0.20.0
lrwxrwxrwx 1 root root       28 2007-11-20 12:32
/usr/local/lib/libmythavutil-0.20.so.0.20 ->
libmythavutil-0.20.so.0.20.0
-rwxr-xr-x 1 root root    86414 2007-11-20 12:32
/usr/local/lib/libmythavutil-0.20.so.0.20.0
-rw-r--r-- 1 root root   528180 2007-11-20 12:32
/usr/local/lib/libmythdvdnav-0.20.a
lrwxrwxrwx 1 root root       30 2007-11-20 12:32
/usr/local/lib/libmythfreemheg-0.20.so ->
libmythfreemheg-0.20.so.0.20.0
lrwxrwxrwx 1 root root       30 2007-11-20 12:32
/usr/local/lib/libmythfreemheg-0.20.so.0 ->
libmythfreemheg-0.20.so.0.20.0
lrwxrwxrwx 1 root root       30 2007-11-20 12:32
/usr/local/lib/libmythfreemheg-0.20.so.0.20 ->
libmythfreemheg-0.20.so.0.20.0
-rwxr-xr-x 1 root root  2615894 2007-11-20 12:32
/usr/local/lib/libmythfreemheg-0.20.so.0.20.0
lrwxrwxrwx 1 root root       31 2007-11-20 12:32
/usr/local/lib/libmythlivemedia-0.20.so ->
libmythlivemedia-0.20.so.0.20.0
lrwxrwxrwx 1 root root       31 2007-11-20 12:32
/usr/local/lib/libmythlivemedia-0.20.so.0 ->
libmythlivemedia-0.20.so.0.20.0
lrwxrwxrwx 1 root root       31 2007-11-20 12:32
/usr/local/lib/libmythlivemedia-0.20.so.0.20 ->
libmythlivemedia-0.20.so.0.20.0
-rwxr-xr-x 1 root root  2261003 2007-11-20 12:32
/usr/local/lib/libmythlivemedia-0.20.so.0.20.0
lrwxrwxrwx 1 root root       24 2007-11-20 12:32
/usr/local/lib/libmythtv-0.20.so -> libmythtv-0.20.so.0.20.0
lrwxrwxrwx 1 root root       24 2007-11-20 12:32
/usr/local/lib/libmythtv-0.20.so.0 -> libmythtv-0.20.so.0.20.0
lrwxrwxrwx 1 root root       24 2007-11-20 12:32
/usr/local/lib/libmythtv-0.20.so.0.20 -> libmythtv-0.20.so.0.20.0
-rwxr-xr-x 1 root root 50118846 2007-11-20 12:32
/usr/local/lib/libmythtv-0.20.so.0.20.0
lrwxrwxrwx 1 root root       24 2007-11-20 12:32
/usr/local/lib/libmythui-0.20.so -> libmythui-0.20.so.0.20.0
lrwxrwxrwx 1 root root       24 2007-11-20 12:32
/usr/local/lib/libmythui-0.20.so.0 -> libmythui-0.20.so.0.20.0
lrwxrwxrwx 1 root root       24 2007-11-20 12:32
/usr/local/lib/libmythui-0.20.so.0.20 -> libmythui-0.20.so.0.20.0
-rwxr-xr-x 1 root root  4129238 2007-11-20 12:32
/usr/local/lib/libmythui-0.20.so.0.20.0
lrwxrwxrwx 1 root root       26 2007-11-20 12:32
/usr/local/lib/libmythupnp-0.20.so -> libmythupnp-0.20.so.0.20.0
lrwxrwxrwx 1 root root       26 2007-11-20 12:32
/usr/local/lib/libmythupnp-0.20.so.0 -> libmythupnp-0.20.so.0.20.0
lrwxrwxrwx 1 root root       26 2007-11-20 12:32
/usr/local/lib/libmythupnp-0.20.so.0.20 -> libmythupnp-0.20.so.0.20.0
-rwxr-xr-x 1 root root  3281527 2007-11-20 12:32
/usr/local/lib/libmythupnp-0.20.so.0.20.0

[root at mythfrontend2 ~]# which mythbackend
/usr/local/bin/mythbackend

[root at mythfrontend2 ~]# echo $PATH
/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

[root at mythfrontend2 ~]# cat /etc/ld.so.conf
/usr/local/lib
include ld.so.conf.d/*.conf

If all that is similar and you are getting comething that says
"mythbackend: /usr/bin/mythbackend: no such file or directory" then it
sounds like some piece wasn't rebuilt and is still trying to use
/usr/bin.

In your SVN build directory does your config.log have?

./configure --prefix=/usr/local

If not you might try that and "make clean" and rebuild everything.


More information about the mythtv-users mailing list