2
我試圖在CentOS 5上重新編譯帶有mp3支持的sox源碼。注意sox-12.18.1-1.el5_5.1已安裝我的CentOS機器有一段時間了。sox在其源代碼重新編譯後支持mp3仍然不支持mp3支持
正在關注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 install的」 之後,發行
sox test.mp3 tmp1.mp3 reverse
回報
sox: Failed reading test.mp3: Do not understand format type: mp3
缺少什麼我在這裏?謝謝。
我知道這是舊的,但問題是,使安裝沒有安裝襪到你PATH上的一個目錄,所以你仍然使用版本12而不是版本14. –
這應該對你有幫助..在CentOS 5.x上安裝SoX w/MP3支持 http://techblog.netwater.com/? p = 4 :) – 2012-10-12 01:01:28