INTERACT FORUM

Please login or register.

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

Author Topic: How do I build an rpm for Centos?  (Read 2099 times)

aeshva

  • Regular Member
  • Recent member
  • *
  • Posts: 28
How do I build an rpm for Centos?
« on: December 27, 2017, 04:27:10 pm »

My server runs Centos 7, and I would like to add JRiver as a media server. I have tried to use alien to convert the Deb file to an rpm, but my skills are meager. Naturally, the Fedora script won't create an rpm that CentOS can use, as the packages aren't as current on CentOS.

I would appreciate some guidance or assistance.

Thank you.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: How do I build an rpm for Centos?
« Reply #1 on: December 28, 2017, 12:21:07 am »

Here is a list of the dependencies:

Code: [Select]
dpkg rpm-build libnotify librtmp lame vorbis-tools alsa-lib
libX11 libX11-common libxcb libXau libXdmcp libuuid
gtk2 gtk2-engines mesa-libGL gnutls gtk2 lame

You will probably need to install the EPEL repos and possibly hunt some of the dependencies down individually.
Logged

aeshva

  • Regular Member
  • Recent member
  • *
  • Posts: 28
Re: How do I build an rpm for Centos?
« Reply #2 on: December 29, 2017, 05:37:16 pm »

First, thank you for your response.

This is the output I get:

sudo alien -r MediaCenter-23.0.84-amd64.deb
Warning: Skipping conversion of scripts in package mediacenter23: postinst           
Warning: Use the --scripts parameter to include the scripts.                                   
mediacenter23-23.0.84-2.x86_64.rpm generated                                                   


sudo yum install mediacenter23-23.0.84-2.x86_64.rpm           
Loaded plugins: fastestmirror, langpacks                                                                     
Examining mediacenter23-23.0.84-2.x86_64.rpm: mediacenter23-23.0.84-2.x86_64                                 
Marking mediacenter23-23.0.84-2.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mediacenter23.x86_64 0:23.0.84-2 will be installed
--> Processing Dependency: libhogweed.so.4(HOGWEED_4)(64bit) for package: mediacenter23-23.0.84-2.x86_64
Loading mirror speeds from cached hostfile
 * base: mirror.team-cymru.org
 * epel: mirror.steadfast.net
 * extras: repo.us.bigstepcloud.com
 * nux-dextop: mirror.li.nux.ro
 * updates: mirrordenver.fdcservers.net
--> Processing Dependency: libnettle.so.6(NETTLE_6)(64bit) for package: mediacenter23-23.0.84-2.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.8)(64bit) for package: mediacenter23-23.0.84-2.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.20)(64bit) for package: mediacenter23-23.0.84-2.x86_64
--> Processing Dependency: libhogweed.so.4()(64bit) for package: mediacenter23-23.0.84-2.x86_64
--> Processing Dependency: libnettle.so.6()(64bit) for package: mediacenter23-23.0.84-2.x86_64
--> Finished Dependency Resolution
Error: Package: mediacenter23-23.0.84-2.x86_64 (/mediacenter23-23.0.84-2.x86_64)
           Requires: libnettle.so.6(NETTLE_6)(64bit)
Error: Package: mediacenter23-23.0.84-2.x86_64 (/mediacenter23-23.0.84-2.x86_64)
           Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: mediacenter23-23.0.84-2.x86_64 (/mediacenter23-23.0.84-2.x86_64)
           Requires: libstdc++.so.6(CXXABI_1.3.8)(64bit)
Error: Package: mediacenter23-23.0.84-2.x86_64 (/mediacenter23-23.0.84-2.x86_64)
           Requires: libhogweed.so.4()(64bit)
Error: Package: mediacenter23-23.0.84-2.x86_64 (/mediacenter23-23.0.84-2.x86_64)
           Requires: libnettle.so.6()(64bit)
Error: Package: mediacenter23-23.0.84-2.x86_64 (/mediacenter23-23.0.84-2.x86_64)
           Requires: libhogweed.so.4(HOGWEED_4)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: How do I build an rpm for Centos?
« Reply #3 on: December 30, 2017, 01:20:26 am »

It appears that library is provided by the nettle package in the EPEL.
Logged

aeshva

  • Regular Member
  • Recent member
  • *
  • Posts: 28
Re: How do I build an rpm for Centos?
« Reply #4 on: December 31, 2017, 12:29:02 pm »

Since I have the EPEL repo active, shouldn't it just pull it and install it?
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: How do I build an rpm for Centos?
« Reply #5 on: December 31, 2017, 12:50:35 pm »

I'm not familiar with alien but my hunch is that it has not been tested extensively with CentOS and thus cannot resolve all of the dependencies automatically.
Logged
Pages: [1]   Go Up