12 Responses

Page 1 of 1
  1. Arthur Debert
    Arthur Debert at |

    Thank you for the write up. This has just saved me a world of pain.
    You might want to remember folks to add “/usr/local/lib” to their ld.so.conf files.

    Best regards

  2. Phil
    Phil at |

    See the link below if you get an error like:

    madplay: error while loading shared libraries: libmad.so.0: cannot open


  3. dh
    dh at |

    These were helpful. I had to install on Centos5.6, i386, to convert between mp3s and Asterisk-friendly wav files.

    An update: yum install lame (at least via rpmforge) was not recognized by sox 14.3.2. Had to download and make lame, like the other mp3 dependencies, and then it worked fine.

    I second the lib conf, plus sudo /sbin/ldconfig

  4. Eric Schultz
    Eric Schultz at |

    Since this was the Number 1 result on google, I thought I’d help out and throw a comment on this.

    You do not have to manually install the dependancies. You just need to install the -devel packages. Typically I recommend install the rpmforge repo then doing a:

    yum install gcc-c++ libmad libmad-devel libid3tag libid3tag-devel lame lame-devel flac-devel libvorbis-devel

    once those are all installed you should be all set to do your ./configure, make -s && make install

  5. Markku
    Markku at |

    Thanks! Great stuff and it did what I needed for now. However, installing lame did not produce “lame…yes” for some reason and I cannot convert from * to mp3 (if I ever need to). Sox now converts from mp3 to ogg, however, which is what I need.

  6. Avaya Asterisk Logger « Kai
    Avaya Asterisk Logger « Kai at |

    [...] and ogg format is now supported if you compiled sox with mp3 and ogg supported. You can follow this guide if your are using CentOS. Edit the parameter al_cmdsoxmp3 when your unix path is different than the [...]

  7. Huw Davies
    Huw Davies at |

    I have an issue in that running sox still uses version 12, not the new version of 14.

    A post on stack overflow has explained the issue, in that sox hasn’t installed to PATH, but I don’t know what this means or how to fix it


  8. Huw Davies
    Huw Davies at |

    I have it working by running /usr/local/bin/sox rather than just sox

  9. Stéphan Schamp
    Stéphan Schamp at |

    The one-stop solution for CentOS 6.4 without mad or libid3tag (YMMV):

    yum install -y sox lame
    mkdir /usr/local/src/SoX
    cd /usr/local/src/SoX
    wget http://downloads.sourceforge.net/project/sox/sox/14.4.1/sox-14.4.1.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fsox%2Ffiles%2Fsox%2F14.4.1%2F&ts=1366019279&use_mirror=freefr
    tar -xvzf sox-14.4.1.tar.gz
    cd sox-14.4.1/
    make -s
    make install
    echo “include /usr/local/lib” >> /etc/ld.so.conf

  10. TrainingCity
    TrainingCity at |

    Thanks Stéphan Schamp, additon of centos 6.4 instructions was much appreciated!

  11. Vinayak
    Vinayak at |

    libmad Error Resolved

    — lib/libmad/libmad-0.15.1b/configure (revision 9007)
    +++ lib/libmad/libmad-0.15.1b/configure (working copy)
    @@ -19099,7 +19099,8 @@
    case “$optimize” in
    -O|”-O “*)
    – optimize=”$optimize -fforce-mem”
    + # this option had been removed from gcc 4.3
    + # optimize=”$optimize -fforce-mem”
    optimize=”$optimize -fforce-addr”
    : #x optimize=”$optimize -finline-functions”
    : #- optimize=”$optimize -fstrength-reduce”

  12. sFJALK
    sFJALK at |

    How do you recompile the tarballs I need to trim an MP3 through PHP on my CentOS server but I don’t know any linux programming, only PHP.

Leave a Reply