INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Set up JRiver Media Center 23 in Fedora  (Read 5934 times)

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Set up JRiver Media Center 23 in Fedora
« 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)
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: Set up JRiver Media Center 23 in Fedora
« Reply #1 on: July 11, 2017, 06:08:19 pm »

Thanks, Bryan!
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7804
  • Autumn shade...
Re: Set up JRiver Media Center 23 in Fedora
« Reply #2 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.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: Set up JRiver Media Center 23 in Fedora
« Reply #3 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?
Logged

ianp

  • Recent member
  • *
  • Posts: 5
Re: Set up JRiver Media Center 23 in Fedora
« Reply #4 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!
Logged
Pages: [1]   Go Up