Install flvtool2, mediainfo and neroAacEnc on centos x86_64
Install flvtool2, mediainfo and neroAacEnc on centos x86_64
A client has requested a few days ago to have the binaries flvtool2, mediainfo and neroAacEnc installed on his dedicated server, well the first two of them were easy to install since these support centos x86_64 by default, and since the dedicated server has lots of ram there, it needed to be a 64 bits for it to read all its ram. The issue came across was that NeroAacEnc was a bit more restricted as in was developed to run only on 32 bits linux system. Have had a bit of a headache since I thought for sure that libs for 32 bits have already been installed, but was actually wrong. In any case, in this article I’m going to show you a nice little way to install Install flvtool2, mediainfo and neroAacEnc on centos x86_64, even with the limitation of the 32 bits on the last one.
We will start first with flvtool2
It seems like for this you need to install ruby, well in my case the client requested cpanel to be installed so it was easy to have ruby installed by running:
/scripts/installruby
But you can also manually install ruby from yum following the bellow commands:
1 2 3 4 5 6 7 |
yum install ruby yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel yum install ruby-rdoc ruby-devel yum install rubygems gem update gem update --system gem install rails |
I could go on to explain all these, but should be straight forward, basically you install ruby and some system dependencies if you don’t have them already, next install ruby-rdoc and ruby-devel and some ruby dependencies. Finally install the gems, update gems and install rails.
Now after we have ruby installed, we begin the FLVTool2 installation:
1 2 3 4 5 6 7 |
cd /usr/local/src/ wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz tar xvzf flvtool2-1.0.6.tgz cd flvtool2-1.0.6/ ruby setup.rb config ruby setup.rb setup ruby setup.rb install |
Installing mediainfo on centos x86_64
I found that this one was the easiest, just needed to download the rpm’s from original website and install them on your system
1 2 3 4 5 6 7 |
wget http://mediaarea.net/download/binary/libzen0/0.4.29/libzen0-0.4.29-1.x86_64.CentOS_6.rpm wget http://mediaarea.net/download/binary/libmediainfo0/0.7.64/libmediainfo0-0.7.64-1.x86_64.CentOS_6.rpm wget http://mediaarea.net/download/binary/mediainfo/0.7.64/mediainfo-0.7.64-1.x86_64.CentOS_6.rpm rpm -ivh libzen0-0.4.29-1.x86_64.CentOS_6.rpm rpm -ivh libmediainfo0-0.7.64-1.x86_64.CentOS_6.rpm rpm -ivh mediainfo-0.7.64-1.x86_64.CentOS_6.rpm |
Installing neroAacEnc on centos x86_64
This one was the trickiest here, this one particular tool has direct support for 32 bits only:
1 |
/usr/local/bin/neroAacEnc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped |
Well lets start installing it first:
1 2 3 4 5 |
cd /usr/local/src/ wget ftp://ftp6.nero.com/tools/NeroDigitalAudio.zip unzip NeroDigitalAudio.zip -d nero cd nero/linux sudo install -D -m755 neroAacEnc /usr/local/bin |
Unfortunately on 64 bits system you will have the following error:
1 |
/usr/bin/neroAacEnc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory |
Solutions for this is to install the 32 bits lib for it to work, this can be done on centos x86_64 using the following command:
1 |
yum install libstdc++.i686 |
Result would be:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
root@sv1 [/usr/local/src/nero/linux]# /usr/bin/neroAacEnc -help ************************************************************* * * * Nero AAC Encoder * * Copyright 2008 Nero AG * * All Rights Reserved Worldwide * * * * Package build date: Sep 17 2008 * * Package version: 1.3.3.0 * * * * See -help for a complete list of available parameters. * * * ************************************************************* |
So it is working now on 64 bits system also.
That is all, don’t forget to share and comment if you want to add something here.