Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Ubuntu 12.04 I installed sox with this command:

sudo apt-get install sox

Now if I use this command:

sox message.wav message.flac rate 16k

I get this:

bash: /usr/local/bin/sox: No such file or directory

If I use this command:

sox --version

I get this:

bash: /usr/local/bin/sox: No such file or directory

But if I use this command:

which sox

I get this:

/usr/bin/sox

So now what do I have to do in order to convert WAV to FLAC using sox?

share|improve this question

migrated from stackoverflow.com Mar 4 '13 at 16:07

This question came from our site for professional and enthusiast programmers.

    
Your usage seems to be correct, the real question is why you can't run sox. – washbow Mar 4 '13 at 16:30

It looks like your shell has cached the location of sox for some reason. You can work around the problem by giving the full path of the command:

/usr/bin/sox message.wav message.flac rate 16k

Try hash -r to clear your shell's command cache. Also try alias | grep sox in case you have an alias set to a bad location.

share|improve this answer
    
The problem got solved with a restart.But now I am getting this: john@john-System-Product-Name:~$ sox message.wav message.flac rate 16k sox WARN wav: Premature EOF on .wav input file sox WARN rate: rate clipped 4355 samples; decrease volume? sox WARN sox: `message.flac' output clipped 2309 samples; decrease volume? The conversion is getting done though. – Manojit Ghosh Mar 5 '13 at 12:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .