linux 下安裝lame以及tritonus-mp3enc__linux

來源:互聯網
上載者:User
下載 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中文手冊

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.