要在Linux下安装madplay 我安装了 libid3tag-0.15.1b.tar.gz ,libmad-0.15.1b.tar.gz , madplay-0.15.2b.tar.gz后
运行就出错了。希望帮我看看怎么样解决吧~~~越详细越好,谢谢了,在线等……
[root@localhost madplay-0.15.1b]# ./madplay 123.mp3
./madplay: error while loading shared libraries: libmad.so.0: cannot open shared object file: No such file or directory
[root@localhost madplay-0.15.1b]#
你们要的那个库在以下目录:/usr/local/lib/libmad.so.0
1)在PATH中加入相应的路径/usr/local/lib/
2)或在 /usr/lib 下创建一个软链接:
root@software-desktop:/usr/lib# ln -s /usr/local/lib/libmad.so.0 libmad.so.0
root@software-desktop:/usr/lib# ls -l libmad.so.0
lrwxrwxrwx 1 root root 26 2011-03-10 14:40 libmad.so.0 -> /usr/local/lib/libmad.so.0