下载 tritonus-mp3enc,根据其中的readme.txt进行安装。
Installation of the mp3 encoder plugin on Linux/i386
----------------------------------------------------
1. Copy tritonus_mp3.jar, and tritonus_share.jar in
the Extension Directory (see below).
2. Copy liblametritonus.so in the Binary Extension
Directory.
3. Download LAME via CVS:
cvs -d:pserver:anonymous@cvs.lame.sourceforge.net:/cvsroot/lame login
(Password empty)
cvs -z3 -d:pserver:anonymous@cvs.lame.sourceforge.net:/cvsroot/lame co lame
This creates the directory "lame".
4. Installation of LAME:
Go in the "lame" directory and issue "./configure --enable-shared"
and "make".
As root, invoke "make install". This copies the lame library to
/usr/local/lib. You may need to include /usr/local/lib to
/etc/ld.so.conf and then run "ldconfig"
Linux directories
-----------------
You can find out the installation directory of the JDK by issuing
"which java". I get the follwing result:
/usr/local/java2/bin/java
which means that JDK home is /usr/local/java2. The existence of
the "jre" directory in JDK home usually means that you have installed
the JDK (rather than JRE).
Extension Directory:
For JDK: jre/lib/ext in JDK home,
e.g. /usr/local/java2/jre/lib/ext
For JRE: lib/ext in JRE home,
e.g. /usr/local/jre1.3.0_02/lib/ext
Alternatively, you may also place the jars in the classpath.
Then you can place them where ever you want:
export CLASSPATH=tritonus_share.jar:tritonus_mp3.jar:$CLASSPATH
Binary Extension Directory:
For JDK: jre/lib/i386 in JDK home,
e.g. ls /usr/local/java2/jre/lib/i386
For JRE: bin in JRE home,
e.g. ls /usr/local/jre1.3.0_02/lib/i386
二、Lame
可以使用configure,make,make install来编译和安装lame,要注意的是在执行configure命令时可能报错为:bad interpreter: No such file or directory,那么主要原因在于,configure的格式不是unix,很有可能是DOS方式,可以通过Vi的set ff?命令查看脚本格式还可以使用set ff=unix命令来修改configure格式。要注意的第二点是在执行以上三个命令时需要使用gc编译器。安装文成后我们会在/usr/local/lib 下看到lame的相关文件。之后按如下方法去做You may need to include /usr/local/lib to /etc/ld.so.conf and then run "ldconfig"。这样你的lame基本上就安装完成了。
三、相关参考