linux编译lame,linux 下安装lame以及tritonus-mp3enc

下载 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基本上就安装完成了。

三、相关参考

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值