在使用mp3支持重新编译源代码后,sox仍然不支持mp3

时间:2012-05-30 22:11:43

标签: mp3 centos sox

我正在尝试在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

我在这里缺少什么?感谢。

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。

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

yum remove sox

下一步:

make uninstall
make clean
./configure
make
make install