MythTV-Setup v0.27 fails to launch

For discussion of topics specific to MythTV on OSX
Post Reply
razz
Newcomer
Posts: 4
Joined: Tue Mar 04, 2014 5:52 pm
Canada

MythTV-Setup v0.27 fails to launch

Post by razz »

Hi Folks,

I'm following this guid: http://www.mythtv.org/wiki/MythTV_on_Mac_OS_X#Backend. Everything is going well thus far until it asks to launch MythTV-Setup.app. The app tries to launch, but then it just quits, how do I know where it has failed? Is there any more troubleshooting steps I can take. I'm installing MythTV on a 2009 MAcBook, which is running OS 10.9.1 and has a DualCore Pentium chip in it.

Cheers,
User avatar
pvr4me
Senior
Posts: 764
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

Re: MythTV-Setup v0.27 fails to launch

Post by pvr4me »

You may find log messages in Console.app (Applications>Utilities) in the All Messages view, filter with 'myth'.

I'm biased, but why not use MacPorts to set up your backend?

Craig
Formerly the MacPorts guy.
User avatar
pvr4me
Senior
Posts: 764
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

Re: MythTV-Setup v0.27 fails to launch

Post by pvr4me »

Oh, and a minor point, a 2009 MacBook Pro has a Core2 Duo processor:

http://support.apple.com/kb/SP504?viewl ... cale=en_US

Craig
Formerly the MacPorts guy.
razz
Newcomer
Posts: 4
Joined: Tue Mar 04, 2014 5:52 pm
Canada

Re: MythTV-Setup v0.27 fails to launch

Post by razz »

pvr4me wrote:You may find log messages in Console.app (Applications>Utilities) in the All Messages view, filter with 'myth'.

I'm biased, but why not use MacPorts to set up your backend?

Craig
Does using MacPorts make it easier? Just seems like adding another software layer.

EDIT: Craig took you suggestion and trying it with MacPorts.
User avatar
pvr4me
Senior
Posts: 764
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

Re: MythTV-Setup v0.27 fails to launch

Post by pvr4me »

razz wrote:
pvr4me wrote:You may find log messages in Console.app (Applications>Utilities) in the All Messages view, filter with 'myth'.

I'm biased, but why not use MacPorts to set up your backend?

Craig
Does using MacPorts make it easier? Just seems like adding another software layer.

EDIT: Craig took you suggestion and trying it with MacPorts.
Cool. To prevent confusion, you should make sure you're only running one MySQL server on your backend--the MacPorts version. MySQL from the .dmg installer puts a control panel in System Preferences that you can use to stop that version of the database manager.

For background, the bundled applications produced with the official packaging script make it very easy to connect a Mac frontend to a Linux backend. The MacPorts distribution aims to make it simpler to install an OS X backend. I've included the Myth_Stop_Start applet that makes it trivial to run or kill the backend process. With the packaged apps, you have to make sure your launchd plist points to the right location for the mythbackend binary (deep inside a bundled app) and then get exactly the right syntax with launchctl to load/unload the mythbackend server process. The latter is certainly possible but I think the former is more 'Mac-like'. Etc.

Craig
Formerly the MacPorts guy.
razz
Newcomer
Posts: 4
Joined: Tue Mar 04, 2014 5:52 pm
Canada

Re: MythTV-Setup v0.27 fails to launch

Post by razz »

Yeap, indeed the build seems to have failed at mysql5 build, I did stop the existing SQL server via systems pane, but perhaps I have to remove the old SQL first.

sudo port install mythtv-core.27

Code: Select all

--->  Building mysql5
Error: org.macports.build for port mysql5 returned: command execution failed
Error: Failed to install mysql5
Please see the log file for port mysql5 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/main.log
Error: The following dependencies were not installed: p5.12-dbd-mysql mysql5 p5.12-dbi p5.12-clone p5.12-sql-statement p5.12-params-util p5.12-test-simple p5.12-http-request-ascgi p5.12-class-accessor p5.12-libwww-perl p5.12-encode-locale p5.12-file-listing p5.12-http-date p5.12-html-form p5.12-html-parser p5.12-html-tagset p5.12-http-message p5.12-lwp-mediatypes p5.12-uri p5.12-mime-base64 p5.12-http-cookies p5.12-http-daemon p5.12-http-negotiate p5.12-lwp-protocol-https p5.12-io-socket-ssl p5.12-net-libidn libidn p5.12-net-ssleay p5.12-mozilla-ca p5.12-net-http p5.12-www-robotrules p5.12-io-socket-inet6 p5.12-io p5.12-socket6 p5.12-lwp-useragent-determined p5.12-net-upnp pkgconfig py26-lxml libxslt python26 db46 db_select libedit python_select sqlite3 py26-mysql py26-urlgrabber py26-curl curl curl-ca-bundle qt4-mac-mysql5-plugin qt4-mac dbus jpeg libmng lcms tiff taglib x264 yasm
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port mythtv-core.27 failed
User avatar
pvr4me
Senior
Posts: 764
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

Re: MythTV-Setup v0.27 fails to launch

Post by pvr4me »

razz wrote:Yeap, indeed the build seems to have failed at mysql5 build, I did stop the existing SQL server via systems pane, but perhaps I have to remove the old SQL first.

sudo port install mythtv-core.27

Code: Select all

--->  Building mysql5
Error: org.macports.build for port mysql5 returned: command execution failed
Error: Failed to install mysql5
Please see the log file for port mysql5 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/main.log
Error: The following dependencies were not installed: p5.12-dbd-mysql mysql5 p5.12-dbi p5.12-clone p5.12-sql-statement p5.12-params-util p5.12-test-simple p5.12-http-request-ascgi p5.12-class-accessor p5.12-libwww-perl p5.12-encode-locale p5.12-file-listing p5.12-http-date p5.12-html-form p5.12-html-parser p5.12-html-tagset p5.12-http-message p5.12-lwp-mediatypes p5.12-uri p5.12-mime-base64 p5.12-http-cookies p5.12-http-daemon p5.12-http-negotiate p5.12-lwp-protocol-https p5.12-io-socket-ssl p5.12-net-libidn libidn p5.12-net-ssleay p5.12-mozilla-ca p5.12-net-http p5.12-www-robotrules p5.12-io-socket-inet6 p5.12-io p5.12-socket6 p5.12-lwp-useragent-determined p5.12-net-upnp pkgconfig py26-lxml libxslt python26 db46 db_select libedit python_select sqlite3 py26-mysql py26-urlgrabber py26-curl curl curl-ca-bundle qt4-mac-mysql5-plugin qt4-mac dbus jpeg libmng lcms tiff taglib x264 yasm
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port mythtv-core.27 failed
The existing copy of MySQL _shouldn't_ cause a problem but that's not a situation that the maintainer of the MySQL ports would normally test for. (I used to have both on a machine that was formerly my backend.) We need to see the log to find out what really happened:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/main.log

If you're using TextWrangler and have installed their command line tools, you can use (what the wrapping, all on one line):

Code: Select all

edit /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/main.log
to open the log file from the failed build.

Craig
Formerly the MacPorts guy.
razz
Newcomer
Posts: 4
Joined: Tue Mar 04, 2014 5:52 pm
Canada

Re: MythTV-Setup v0.27 fails to launch

Post by razz »

Well I'll have to do some more digging: but here is what's in the error log:

EDIT: a second scan though the log, appears Xcode license requires admin privileges. Just have to figure out how to run "please re-run as root via sudo.", I assume it is referring to Xcode.

Code: Select all

:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Tue Mar  4 22:06:25 EST 2014
:notice:build --->  Building mysql5
:debug:build Executing org.macports.build (mysql5)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.9'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72" && /usr/bin/make -j2 -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72" && /usr/bin/make -j2 -w all 
:info:build 
:info:build 
:info:build Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
:info:build 
:info:build 
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72" && /usr/bin/make -j2 -w all 
:info:build Exit code: 69
:error:build org.macports.build for port mysql5 returned: command execution failed
:debug:build Error code: CHILDSTATUS 1511 69
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for mysql5: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install mysql5
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:build Please see the log file for port mysql5 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/main.log
EDIT2: Appears I've never ran Xcode, so I did and accepted the license. dope :). Now trying to compile receive the following:

Code: Select all

:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Wed Mar  5 10:14:24 EST 2014
:notice:build --->  Building mysql5
:debug:build Executing org.macports.build (mysql5)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.9'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72" && /usr/bin/make -j2 -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72" && /usr/bin/make -j2 -w all 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72'
:info:build Making all in .
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72'
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make abi_headers="include/mysql/plugin.h include/mysql.h" do_abi_check
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72'
:info:build set -ex; \
:info:build 	for file in include/mysql/plugin.h include/mysql.h; do \
:info:build 	         /usr/bin/cc -E -nostdinc -dI -DMYSQL_ABI_CHECK \
:info:build 	                  -I./include \
:info:build 	                  -I./include/mysql \
:info:build 	                  -I./sql \
:info:build 	                  -I./include \
:info:build 	                  -I./include/mysql \
:info:build 	                  -I./sql \
:info:build 	                                 $file 2>/dev/null | \
:info:build 	                  /usr/bin/sed -e '/^# /d' \
:info:build 	                            -e '/^[ 	]*$/d' \
:info:build 	                            -e '/^#pragma GCC set_debug_pwd/d' \
:info:build 	                            -e '/^#ident/d' > \
:info:build 	                                       ./abi_check.out; \
:info:build 	                  /usr/bin/diff -w $file.pp ./abi_check.out; \
:info:build 	                  /bin/rm ./abi_check.out; \
:info:build 	done
:info:build + for file in include/mysql/plugin.h include/mysql.h
:info:build + /usr/bin/cc -E -nostdinc -dI -DMYSQL_ABI_CHECK -I./include -I./include/mysql -I./sql -I./include -I./include/mysql -I./sql include/mysql/plugin.h
:info:build + /usr/bin/sed -e '/^# /d' -e '/^[ 	]*$/d' -e '/^#pragma GCC set_debug_pwd/d' -e '/^#ident/d'
:info:build + /usr/bin/diff -w include/mysql/plugin.h.pp ./abi_check.out
:info:build + /bin/rm ./abi_check.out
:info:build + for file in include/mysql/plugin.h include/mysql.h
:info:build + /usr/bin/cc -E -nostdinc -dI -DMYSQL_ABI_CHECK -I./include -I./include/mysql -I./sql -I./include -I./include/mysql -I./sql include/mysql.h
:info:build + /usr/bin/sed -e '/^# /d' -e '/^[ 	]*$/d' -e '/^#pragma GCC set_debug_pwd/d' -e '/^#ident/d'
:info:build + /usr/bin/diff -w include/mysql.h.pp ./abi_check.out
:info:build 3,4d2
:info:build < #include "mysql_version.h"
:info:build < #include "mysql_com.h"
:info:build 148d145
:info:build < #include "mysql_time.h"
:info:build 161d157
:info:build < #include "my_list.h"
:info:build 202,203d197
:info:build < #include "typelib.h"
:info:build < #include "my_alloc.h"
:info:build 241d234
:info:build < #include "my_alloc.h"
:info:build make[2]: *** [do_abi_check] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72'
:info:build make[1]: *** [abi_check] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72'
:info:build make: *** [all-recursive] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/work/mysql-5.1.72" && /usr/bin/make -j2 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port mysql5 returned: command execution failed
:debug:build Error code: CHILDSTATUS 1971 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for mysql5: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install mysql5
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:build Please see the log file for port mysql5 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/main.log
User avatar
pvr4me
Senior
Posts: 764
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

Re: MythTV-Setup v0.27 fails to launch

Post by pvr4me »

Please ensure that you've also installed* the XCode "Command Line tools". (Going from memory) start up XCode 5 and open Preferences. In the tab Downloads, click the Command Line Tools entry. It will take some time to download and install the necessary bits.

Then, in case your failed attempts are clogging up the works, try:

Code: Select all

sudo port clean mysql5
then try to proceed with installing Myth.

Craig
(The next version of MacPorts is going check that the Command Line Tools are installed and that the licence has been accepted or give the user appropriate instructions. I know that doesn't help you, now.)

* ala http://www.macports.org/install.php
Formerly the MacPorts guy.
Post Reply