下載 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基本上就安裝完成了。
三、相關參考
1.GNU make中文手冊