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: 628
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: 628
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.

Post Reply