INTERACT FORUM

More => Old Versions => JRiver Media Center 23 for Linux => Topic started by: BryanC on July 11, 2017, 06:04:32 pm

Title: Set up JRiver Media Center 23 in Fedora
Post by: BryanC on July 11, 2017, 06:04:32 pm
README:
1. 64-bit only
2. This script will not point major upgrades (i.e. from v22 to v23) to the old library. It is recommended to first perform a library backup, install the new major version, and restore the library backup.

How to install:

1. Install dpkg and rpm-build (the script will attempt to do this automatically, but there appears to be an issue with the rpm database state in new Fedora releases):
Code: [Select]
sudo dnf install dpkg rpm-build
2. Download and extract install_MC_fedora.zip:
Code: [Select]
unzip install_MC_fedora.zip
3. Install or update MC (the script will ask for your sudo password to install packages):
Code: [Select]
./install_MC_fedora.sh 23.0.95 (where 23.0.95 is the current debian AMD64 version)

4. (Optional) Install your .mjr license:
Code: [Select]
mediacenter23 /RestoreFromFile YOURMEDIACENTER23MJRFILE.mjr

Changelog:
1. Added test for rpm-build package (and add if necessary) (20-FEB-2017)
2. Added test for rpmfusion repos (and add if necessary) (20-FEB-2017)
3. Script is now MC version agnostic and self-contained (20-FEB-2017)
4. Changed versioning system used in rpmbuild. MC point versions are now stored as the variation number. DNF may erroneously report a downgrade the first time the new package number is installed. (20-FEB-2017)
5. Check for RPMFusion repos before installing dpkg and rpm-build (27-APR-2017)
6. Fix dpkg check (31-MAY-2017)
7. Attempted fix for rpm-build check (21-JAN-2018)
Title: Re: Set up JRiver Media Center 23 in Fedora
Post by: JimH on July 11, 2017, 06:08:19 pm
Thanks, Bryan!
Title: Re: Set up JRiver Media Center 23 in Fedora
Post by: Awesome Donkey on August 14, 2017, 05:07:22 am
I'm currently testing this in a fresh Fedora 26 VM (going to install it as my main 4th OS if all goes well) and the script is failing to build the RPM.

Code: [Select]
Converting DEB to RPM...
Conversion Failed!

I assume this is related to rpmbuild not being automatically installed for whatever reason(s) even though it *should*. Doing sudo dnf install rpm-build manually fixes that issue though, but so far it's still failing to build. Still looking into it, will post workaround if I find one.

EDIT: Huh, after a few reboots it just started working on its own after installing google-chrome-stable. No clue why though as both rpmbuild and dpkg were both installed, oh well. I also made a fork of the script which installs the latest beta versions, which works good. :D

EDIT 2: Looks like rpmbuild got renamed to rpm-build. That'll explain it.
Title: Re: Set up JRiver Media Center 23 in Fedora
Post by: BryanC on August 21, 2017, 09:38:41 am
If anyone wants to use the test builds, the easiest route is to download the appropriate .deb file, place it in the SOURCES directory (autogenerated after first running the script) and then proceeding as normal. The script will always look in the SOURCES directory for the specified .deb file before trying to retrieve it online.

I assume this is related to rpmbuild not being automatically installed for whatever reason(s) even though it *should*. Doing sudo dnf install rpm-build manually fixes that issue though, but so far it's still failing to build. Still looking into it, will post workaround if I find one.

There's been users in past MC for Fedora threads that have had this issue (rpm-build not installing automatically). I've never been able to replicate it on my machine. Maybe the RPM database is reporting the wrong installation state of rpm-build on fresh Fedora releases?
Title: Re: Set up JRiver Media Center 23 in Fedora
Post by: ianp on January 25, 2018, 12:43:21 pm
I'm installing using this script onto a Fedora 26 server. I had to do the manual install of rpm-build.

The 23.0.95 .deb file is not available, so you understandably have to grab the 23.0.95-2 version, but I then got  an error when converting from .deb to .rpm when running ' sh ./install_MC_fedora.sh 23.0.95-2'

Quote
rpmbuild --define="%_topdir $builddir" --define="%_variation $variation" --define="%_tversion ${mversion}" --define="%_version ${version}" --define="%_libdir /usr/lib" -bb mediacenter.spec #> /dev/null 2>&1
+ rpmbuild '--define=%_topdir /home/jriver' '--define=%_variation 95-2' '--define=%_tversion 23' '--define=%_version 23.0.95-2' '--define=%_libdir /usr/lib' -bb mediacenter.spec
error: line 3: Illegal char '-' (0x2d) in: Release: 95-2.fc26

As a workaround rename the 23.0.95-2 to be 23.0.95.

Quote
mv SOURCES/MediaCenter-23.0.95-2-amd64.deb  SOURCES/MediaCenter-23.0.95-amd64.deb
 sh ./install_MC_fedora.sh 23.0.95

This then runs to completion - JRiver Media Center 23.0.95 installed successfully!