2

我正在尝试在 CentOS 5 上重新编译支持 mp3 的 sox 源代码。注意 sox-12.18.1-1.el5_5.1 已经在我的 CentOS 机器上安装了一段时间。

http://techblog.netwater.com/?p=4之后,我使用 yum 安装了以下软件包。

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

./configure 显示以下内容。

BUILD OPTIONS
Debugging build............no
Distro name ...............not specified!
Dynamic loading support....no
Pkg-config location........$(libdir)/pkgconfig
Play and rec symlinks......yes
Symlinks enabled...........yes

OPTIONAL DEVICE DRIVERS
ao (Xiph)..................no
alsa (Linux)...............no
coreaudio (Mac OS X).......no
sndio (OpenBSD)............no
oss........................yes
pulseaudio.................no
sunaudio...................no

OPTIONAL FILE FORMATS
amrnb......................no
amrwb......................no
ffmpeg.....................no
flac.......................yes
gsm........................yes (in-tree)
lpc10......................yes (in-tree)
mp3........................yes
 id3tag....................yes
 lame......................yes
 dlopen lame...............no
 mad.......................yes
 dlopen mad................no
oggvorbis..................yes
sndfile....................no
wavpack....................no

OTHER OPTIONS
ladspa effects.............no
magic support..............yes
png support................no
GOMP support...............yes

但是在执行“make && make install”之后,发出

sox test.mp3 tmp1.mp3 reverse

返回

sox: Failed reading test.mp3: Do not understand format type: mp3

我在这里想念什么?谢谢。

4

1 回答 1

0

我遇到过同样的问题。

确保服务器上没有安装其他 Sox:

yum remove sox

下一个:

make uninstall
make clean
./configure
make
make install
于 2014-12-18T21:41:07.503 回答