Installing Wav2Json & Sox on EC2 Centos

May 09, 2016 by admin Category: Blog, Development 0 comments

To install wav2json run the code below

# install dependencies
sudo yum install boost-devel
wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.26.tar.gz

tar -zxvf libsndfile-1.0.26.tar.gz

./configure --prefix=/usr    \
            --disable-static \
            --docdir=/usr/share/doc/libsndfile-1.0.26 &&

make

make install
# clone repository
cd ~/
mkdir wave2json && cd wave2json/
git clone https://github.com/beschulz/wav2json.git

# build
cd wav2json/build/
make all

# install
mv ../bin/Linux/wav2json /usr/bin/

Now lets install sox

sudo yum install gcc-c++ libmad libmad-devel libid3tag libid3tag-devel lame lame-devel flac-devel libvorbis-devel
mkdir sox
cd sox
wget http://sourceforge.net/projects/sox/files/sox/14.4.2/sox-14.4.2.tar.gz
tar xvfz sox-14.4.2.tar.gz
cd sox-14.4.2
./configure
make -s
make install
export PATH=$PATH:/usr/local/bin
sudo ldconfig

Leave a Comment!

Your email address will not be published. Required fields are marked *