Thanks, Allen.

I checked the INSTALL doc in lzo-2.03 package. 

It's said to use './configure --enable-shared' command to build shared library. 
I followed that instruction and recompile / install the package.

But after that, still only .a, .la appear in /usr/local/lib.

-rw-r--r-- 1 root root   855742 Oct 10 10:50 liblzo2.a
-rwxr-xr-x 1 root root      740 Oct 10 10:50 liblzo2.la

How do I generate the liblzo2.so file?

--- On Fri, 10/10/08, Allen Wittenauer <[EMAIL PROTECTED]> wrote:

> From: Allen Wittenauer <[EMAIL PROTECTED]>
> Subject: Re: How to make LZO work?
> To: core-user@hadoop.apache.org
> Date: Friday, October 10, 2008, 7:44 AM
> On 10/9/08 6:46 PM, "Songting Chen"
> <[EMAIL PROTECTED]> wrote:
> > Does that mean I have to rebuild the native library?
> > 
> > Also, the LZO installation puts liblzo2.a and
> liblzo2.la under /usr/local/lib.
> > There is no liblzo2.so there. Do I need to rename them
> to liblzo2.so somehow?
> 
> 
>     You need to compile and install lzo2 as a shared
> library.  IIRC, this is
> not the default.
>    
> 
>     Also, the shared version (.so) will need to be part of
> your link path
> (LD_LIBRARY_PATH env var, /etc/ld.so.conf on Linux, runtime
> option (usually
> -R) to ld, ...) when you fire up the JVM so that Java can
> locate it when it
> needs it.

Reply via email to