bbc / audiowaveform

C++ program to generate waveform data and render waveform images from audio files
https://waveform.prototyping.bbc.co.uk
GNU General Public License v3.0
1.89k stars 241 forks source link

Compatibility with Centos8/RHEL8 #178

Closed dnoneill closed 1 year ago

dnoneill commented 1 year ago

Right now when I try to install on redhat8 I get the following errors:

 - nothing provides libboost_filesystem-mt.so.1.53.0()(64bit) needed by audiowaveform-1.6.0-1.x86_64
  - nothing provides libboost_program_options-mt.so.1.53.0()(64bit) needed by audiowaveform-1.6.0-1.x86_64
  - nothing provides libboost_regex-mt.so.1.53.0()(64bit) needed by audiowaveform-1.6.0-1.x86_64
  - nothing provides libboost_system-mt.so.1.53.0()(64bit) needed by audiowaveform-1.6.0-1.x86_64
  - nothing provides libgd.so.2()(64bit) needed by audiowaveform-1.6.0-1.x86_64

For refrence libboost on RHEL 8 is 1.66. https://rhel.pkgs.org/8/okey-x86_64/boost-filesystem-1.66.0-6.el8.x86_64.rpm.html

chrisn commented 1 year ago

What commands did you use to install?

dnoneill commented 1 year ago

@chrisn These don't work: sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo yum install -y --enablerepo=epel libmad-devel

libsndfile-devel doesn't install. Get No match for argument

So I do: sudo yum install -y redhat-lsb-core rpm-build wget \ git make cmake gcc-c++ libid3tag-devel gd-devel boost-devel sudo yum install -y epel-release sudo yum localinstall audiowaveform-1.6.0-1.el7.x86_64.rpm

chrisn commented 1 year ago

Thanks. Those rpm files are for Centos 7, which I expect won't work on Centos 8. At the time I released 1.6.0, I was unsuccessful in getting it to build on Centos 8 (using the script and Dockerfile in the rpm folder). I don't recall the detail, but you're welcome to give those a try and see if it now works.

chrisn commented 1 year ago

Centos 8 reached End Of Life on December 31, 2021. I found some information here, to use vault.centos.com. With that change in place I was able to build, so I have uploaded an rpm to the Releases page.

To install, as root:

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum install -y epel-release
yum localinstall audiowaveform-1.6.0-1.el8.x86_64.rpm
dnoneill commented 1 year ago

@chrisn Thank you

chrisn commented 1 year ago

I'm happy to help. Please let me know if it works!