Problem installing MythTV.28 on Sierra

For discussion of topics specific to MythTV on OSX
Post Reply
teddy
Newcomer
Posts: 2
Joined: Fri May 26, 2017 7:55 am
Australia

Problem installing MythTV.28 on Sierra

Post by teddy » Fri May 26, 2017 8:24 am

I am attempting to install MythTV on Mac OS Sierra 10.12.05. I am using the MacPort build instructions in https://www.mythtv.org/wiki/Building_My ... h_MacPorts since I already have a number of other MacPort installations on my MacMini. After the install ran for a long time, the first problem I ran into was the initial build command

Code: Select all

sudo port install mythtv.28 +mariadb+mariadb55+python27+perl5_24-x11+logrotate
The system complained about the fact that logrotate requires startup so I did the following in an attempt to reset and re-install

Code: Select all

sudo port uninstall --follow-dependencies mythtv.28
sudo port clean mythtv.28
sudo port install mythtv.28 +mariadb+mariadb55+python27+perl5_24-x11+startup+logrotate
The install restarts but fails quickly with a complaint about a checksum failure with mythtv-core.28. The mythtv-core.28 log is as follows

Code: Select all

version:1
:debug:main dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Executing org.macports.main (mythtv-core.28)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Fri May 26 15:46:32 AWST 2017
:msg:archivefetch --->  Fetching archive for mythtv-core.28
:debug:archivefetch Executing proc-pre-org.macports.archivefetch-archivefetch-0
:debug:archivefetch Active variants check for archivefetch-type install considers depends_lib depends_run: bzip2 exiv2 libass libbluray libcdio libdvdcss libiconv libxml2 fftw-3 fftw-3-single freetype lame openssl faac x264 x265 qt5-mysql-plugin qt5-qtscript qt5-qtwebkit taglib zlib py27-mysql py27-lxml py27-urlgrabber p5.24-dbd-mysql p5.24-http-request-ascgi p5.24-lwp-useragent-determined p5.24-io-socket-inet6 p5.24-datemanip p5.24-net-upnp qt5-qtbase logrotate dejavu-fonts
:debug:archivefetch qt5-mysql-plugin is installed with the following variants: +mariadb55
:debug:archivefetch   required: mariadb55, forbidden: mysql56
:debug:archivefetch   accepted
:debug:archivefetch p5.24-dbd-mysql is installed with the following variants: +mariadb
:debug:archivefetch   required: mariadb, forbidden: mariadb10_0 mariadb10_1 mysql4 mysql5 mysql51 mysql55 mysql56 mysql57 percona
:debug:archivefetch   accepted
:debug:archivefetch py27-mysql is installed with the following variants: +mariadb55
:debug:archivefetch   required: mariadb55, forbidden: mysql4 mysql51 mysql55 mysql56 percona55
:debug:archivefetch   accepted
:debug:archivefetch logrotate is installed with the following variants: +startupitem
:debug:archivefetch   required: startupitem, forbidden: 
:debug:archivefetch   accepted
:debug:archivefetch Executing org.macports.archivefetch (mythtv-core.28)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  mythtv-core.28-0.28.1-Fixes-20170315_1.darwin_16.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch mythtv-core.28-0.28.1-Fixes-20170315_1.darwin_16.x86_64.tbz2 from https://packages.macports.org/mythtv-core.28
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch mythtv-core.28-0.28.1-Fixes-20170315_1.darwin_16.x86_64.tbz2 from http://lil.fr.packages.macports.org/mythtv-core.28
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch mythtv-core.28-0.28.1-Fixes-20170315_1.darwin_16.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/mythtv-core.28
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Fri May 26 15:46:37 AWST 2017
:notice:fetch --->  Fetching distfiles for mythtv-core.28
:debug:fetch Executing proc-pre-org.macports.fetch-fetch-0
:debug:fetch Executing org.macports.fetch (mythtv-core.28)
:info:fetch --->  mythtv-0bd47303.tar.gz does not exist in /opt/local/var/macports/distfiles/mythtv-core.28
:notice:fetch --->  Attempting to fetch mythtv-0bd47303.tar.gz from https://distfiles.macports.org/mythtv-core.28
:debug:fetch Fetching distfile failed: The requested URL returned error: 404 Not Found
:notice:fetch --->  Attempting to fetch mythtv-0bd47303.tar.gz from http://lil.fr.distfiles.macports.org/mythtv-core.28
:debug:fetch Fetching distfile failed: The requested URL returned error: 404 Not Found
:notice:fetch --->  Attempting to fetch mythtv-0bd47303.tar.gz from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/mythtv-core.28
:debug:fetch Fetching distfile failed: The requested URL returned error: 404 Not Found
:notice:fetch --->  Attempting to fetch mythtv-0bd47303.tar.gz from http://osl.no.distfiles.macports.org/mythtv-core.28
:debug:fetch Fetching distfile failed: The requested URL returned error: 404 Not Found
:notice:fetch --->  Attempting to fetch mythtv-0bd47303.tar.gz from http://nue.de.distfiles.macports.org/mythtv-core.28
:debug:fetch Fetching distfile failed: The requested URL returned error: 404 Not Found
:notice:fetch --->  Attempting to fetch mythtv-0bd47303.tar.gz from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/mythtv-core.28
:debug:fetch Fetching distfile failed: The requested URL returned error: 404 Not Found
:notice:fetch --->  Attempting to fetch mythtv-0bd47303.tar.gz from https://github.com/MythTV/mythtv/tarball/0bd47303
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Fri May 26 15:48:24 AWST 2017
:notice:checksum --->  Verifying checksums for mythtv-core.28
:debug:checksum Executing org.macports.checksum (mythtv-core.28)
:info:checksum --->  Checksumming mythtv-0bd47303.tar.gz
:debug:checksum Calculated (rmd160) is f173231b09ce648182103673ad0f99b50c5f283c
:error:checksum Checksum (rmd160) mismatch for mythtv-0bd47303.tar.gz
:info:checksum Portfile checksum: mythtv-0bd47303.tar.gz rmd160 0e3665b02757340eebd1bcf126b772f6c5aec273
:info:checksum Distfile checksum: mythtv-0bd47303.tar.gz rmd160 f173231b09ce648182103673ad0f99b50c5f283c
:debug:checksum Calculated (sha256) is 8f829dfaaab5ba17c85810eeb3d57a0d10c317aa4b456eb1e86c171d071a8fa1
:error:checksum Checksum (sha256) mismatch for mythtv-0bd47303.tar.gz
:info:checksum Portfile checksum: mythtv-0bd47303.tar.gz sha256 8879e2e84fc25cfe275ae8214b094817e9ea0a04168612eab7c8c3be6c4f8c43
:info:checksum Distfile checksum: mythtv-0bd47303.tar.gz sha256 8f829dfaaab5ba17c85810eeb3d57a0d10c317aa4b456eb1e86c171d071a8fa1
:info:checksum The correct checksum line may be:
:info:checksum checksums           rmd160  f173231b09ce648182103673ad0f99b50c5f283c \
:info:checksum                     sha256  8f829dfaaab5ba17c85810eeb3d57a0d10c317aa4b456eb1e86c171d071a8fa1
:error:checksum Failed to checksum mythtv-core.28: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums
:debug:checksum     while executing
:debug:checksum "$procedure $targetname"
:debug:checksum Failed to locate 'lbzip2' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
:debug:checksum     while executing
:debug:checksum "error "$eMessage or at its MacPorts configuration time location, did you move it?""
:debug:checksum     invoked from within
:debug:checksum "try -pass_signal {
:debug:checksum             set cmd_path [macports::binaryInPath $prog]
:debug:checksum             return $cmd_path
:debug:checksum         } catch {{*} eCode eMessage} {
:debug:checksum        ..."
:debug:checksum     (procedure "macports::findBinary" line 5)
:error:checksum See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/main.log for details.
version:1
:debug:main dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Executing org.macports.main (mythtv-core.28)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (mythtv-core.28)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (mythtv-core.28)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Fri May 26 15:50:27 AWST 2017
:notice:checksum --->  Verifying checksums for mythtv-core.28
:debug:checksum Executing org.macports.checksum (mythtv-core.28)
:info:checksum --->  Checksumming mythtv-0bd47303.tar.gz
:debug:checksum Calculated (rmd160) is f173231b09ce648182103673ad0f99b50c5f283c
:error:checksum Checksum (rmd160) mismatch for mythtv-0bd47303.tar.gz
:info:checksum Portfile checksum: mythtv-0bd47303.tar.gz rmd160 0e3665b02757340eebd1bcf126b772f6c5aec273
:info:checksum Distfile checksum: mythtv-0bd47303.tar.gz rmd160 f173231b09ce648182103673ad0f99b50c5f283c
:debug:checksum Calculated (sha256) is 8f829dfaaab5ba17c85810eeb3d57a0d10c317aa4b456eb1e86c171d071a8fa1
:error:checksum Checksum (sha256) mismatch for mythtv-0bd47303.tar.gz
:info:checksum Portfile checksum: mythtv-0bd47303.tar.gz sha256 8879e2e84fc25cfe275ae8214b094817e9ea0a04168612eab7c8c3be6c4f8c43
:info:checksum Distfile checksum: mythtv-0bd47303.tar.gz sha256 8f829dfaaab5ba17c85810eeb3d57a0d10c317aa4b456eb1e86c171d071a8fa1
:info:checksum The correct checksum line may be:
:info:checksum checksums           rmd160  f173231b09ce648182103673ad0f99b50c5f283c \
:info:checksum                     sha256  8f829dfaaab5ba17c85810eeb3d57a0d10c317aa4b456eb1e86c171d071a8fa1
:error:checksum Failed to checksum mythtv-core.28: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums
:debug:checksum     while executing
:debug:checksum "$procedure $targetname"
:debug:checksum Failed to locate 'lbzip2' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
:debug:checksum     while executing
:debug:checksum "error "$eMessage or at its MacPorts configuration time location, did you move it?""
:debug:checksum     invoked from within
:debug:checksum "try -pass_signal {
:debug:checksum             set cmd_path [macports::binaryInPath $prog]
:debug:checksum             return $cmd_path
:debug:checksum         } catch {{*} eCode eMessage} {
:debug:checksum        ..."
:debug:checksum     (procedure "macports::findBinary" line 5)
:error:checksum See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/main.log for details.
I have forced a redownload of mythtv-0bd47303.tar.gz by doing "sudo port clean mythtv-core.28" but the problem persists.

What am I doing wrong? What else can I do to clean out the detritus of the failed install and try again? I cannot uninstall all my MacPorts installs because of other products installed previously.

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

Re: Problem installing MythTV.28 on Sierra

Post by pvr4me » Fri May 26, 2017 1:01 pm

Sorry you are having problems. The first was my mistake, the build instructions should say:

Code: Select all

sudo port install mythtv.28 +mariadb+mariadb55+python27+perl5_24-x11+startupitem
It is the logrotate port that needs to be built with the startupitem variant enabled. Anyway, you'd already gotten past that.

Regarding the mythtv-core.28 distfile, we sometimes have problems with the checksum changing due to a GitHub hook that the project uses. Give me an hour from the time I post this and I'll push an update. You will need to:

Code: Select all

sudo port clean mythtv-core.28 # just in case
sudo port selfupdate
sudo port install mythtv.28
BTW, for the future, you would have to do

Code: Select all

sudo port clean --dist mythtv-core.28
to remove the old/bad distfile. Without the --dist target, the command cleans all of the build files but leaves the distfile alone.

Craig
The MacPorts guy.

teddy
Newcomer
Posts: 2
Joined: Fri May 26, 2017 7:55 am
Australia

Re: Problem installing MythTV.28 on Sierra

Post by teddy » Sat May 27, 2017 3:22 pm

Many thanks for the prompt reply and action. Sorry it has taken so long to get back to you.

Your fix worked well. mythtv-core.28 passed the checksum test and the installation ground to a successful conclusion. It is not clear from the instructions just how much of the mysql part is configured automatically. I found by trial and error that mariadb/mysql was installed but not configured. I had to configure it manually (start the daemon, create the users and the mythconverg data base and configure it). After doing that, I was able to run mythtv-setup and currently the system appears to be OK but I haven't actually used it in any way. However based on my experience with MythTV on Ubuntu, I am optimistic.

Once again thanks for your help.

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

Re: Problem installing MythTV.28 on Sierra

Post by pvr4me » Sat May 27, 2017 3:41 pm

teddy wrote:Many thanks for the prompt reply and action. Sorry it has taken so long to get back to you.

Your fix worked well. mythtv-core.28 passed the checksum test and the installation ground to a successful conclusion. It is not clear from the instructions just how much of the mysql part is configured automatically. I found by trial and error that mariadb/mysql was installed but not configured. I had to configure it manually (start the daemon, create the users and the mythconverg data base and configure it). After doing that, I was able to run mythtv-setup and currently the system appears to be OK but I haven't actually used it in any way. However based on my experience with MythTV on Ubuntu, I am optimistic.
Glad things worked out.

Not too many people install Myth themselves with the 'port' command. I figure that those that do are generally pretty command-line savy and I haven't bothered to write up detailed instructions for configuring Myth. It is a wiki so if you want to add some notes while it is fresh in your mind, that would be great.

Craig
The MacPorts guy.

bcourbage
Newcomer
Posts: 8
Joined: Wed Jan 27, 2016 6:33 am
United States of America

Re: Problem installing MythTV.28 on Sierra

Post by bcourbage » Sun Feb 03, 2019 10:09 am

On Mojave (10.14), installing MythTV.28 via MacPorts fails with:

Code: Select all

:info:build ld: warning: directory not found for option '-L/opt/X11/lib'
:info:build ld: framework not found QuickTime
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [libmythtv-0.28.0.28.0.dylib] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-8238e839/mythtv/libs/libmythtv'
:info:build make[1]: *** [sub-libmythtv-make_first] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-8238e839/mythtv/libs'
:info:build make: *** [libs] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-8238e839/mythtv'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-8238e839/mythtv" && /usr/bin/make -j6 -w all 
:info:build Exit code: 2
:error:build Failed to build mythtv-core.28: command execution failed
:debug:build Error code: CHILDSTATUS 76290 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/main.log for details.
After performing a "normal" port-based installation, fixing some of the issues that came up along the way (like logrotate, etc.), I tried the suggestions above. The install still fails with the same error. Any thoughts would be greatly appreciated.

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

Re: Problem installing MythTV.28 on Sierra

Post by pvr4me » Sun Feb 03, 2019 1:39 pm

Please attach the full main.log -- compress if necessary.

Craig
The MacPorts guy.

bcourbage
Newcomer
Posts: 8
Joined: Wed Jan 27, 2016 6:33 am
United States of America

Re: Problem installing MythTV.28 on Sierra

Post by bcourbage » Sun Feb 03, 2019 5:01 pm

First Craig, I'd like to thank you for replying--much appreciated.

Second, for verification purposes, here's the command trail:

Code: Select all

bcourbage% sudo port clean mythtv.28 mythtv-core.28; sudo port selfupdate; sudo port upgrade outdated
--->  Cleaning mythtv.28
--->  Cleaning mythtv-core.28
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.5.4 installed,
MacPorts base version 2.5.4 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
Nothing to upgrade.
bcourbage% sudo port install mythtv.28 +mariadb+mariadb55+python27+perl5_24-x11+startupitem
--->  Computing dependencies for mythtv.28
The following dependencies will be installed: 
 mythtv-core.28
 mythtv-plugins.28
 mythweb.28
Continue? [Y/n]: 
--->  Fetching archive for mythtv-core.28
--->  Attempting to fetch mythtv-core.28-0.28.2-Fixes-20180201_5.darwin_18.x86_64.tbz2 from https://packages.macports.org/mythtv-core.28
--->  Attempting to fetch mythtv-core.28-0.28.2-Fixes-20180201_5.darwin_18.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/mythtv-core.28
--->  Attempting to fetch mythtv-core.28-0.28.2-Fixes-20180201_5.darwin_18.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/mythtv-core.28
--->  Fetching distfiles for mythtv-core.28
--->  Verifying checksums for mythtv-core.28
--->  Extracting mythtv-core.28
--->  Applying patches to mythtv-core.28
--->  Configuring mythtv-core.28
--->  Building mythtv-core.28
Error: Failed to build mythtv-core.28: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mythtv.28 failed
And third, as requested, I have attached the main.log file (gzipped):
main.log.gz
(132.32 KiB) Downloaded 4 times

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

Re: Problem installing MythTV.28 on Sierra

Post by pvr4me » Mon Feb 04, 2019 1:26 pm

I haven't done it myself, but give warpme's workaround a try:

viewtopic.php?f=26&t=2966

A MacPorts dev is working on a method of installing such framworks (Quicktime in this case). When he gets it implemented, I'll update mythtv-core.28 to use it.

Craig
The MacPorts guy.

bcourbage
Newcomer
Posts: 8
Joined: Wed Jan 27, 2016 6:33 am
United States of America

Re: Problem installing MythTV.28 on Sierra

Post by bcourbage » Tue Feb 05, 2019 5:56 am

Problem solved with @warpme's second suggestion. Once I symlinked the QuickTime.framework into the SDK, the port successfully built. Thanks for the help.

Post Reply