[root@hadoop001 tar]# wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz
[root@hadoop001 tar]# tar -zxvf lzo-2.10.tar.gz -C /home/hadoop/app/
[root@hadoop001 app]# chown -R hadoop:hadoop lzo-2.10
[root@hadoop001 app]# cd lzo-2.10/
[root@hadoop001 lzo-2.10]# ./configure
[root@hadoop001 lzo-2.10]# make install
make[1]: Entering directory `/home/hadoop/app/lzo-2.10'
/usr/bin/mkdir -p '/usr/local/lib'
/bin/sh ./libtool --mode=install /usr/bin/install -c src/liblzo2.la '/usr/local/lib'
libtool: install: /usr/bin/install -c src/.libs/liblzo2.lai /usr/local/lib/liblzo2.la
libtool: install: /usr/bin/install -c src/.libs/liblzo2.a /usr/local/lib/liblzo2.a
libtool: install: chmod 644 /usr/local/lib/liblzo2.a
libtool: install: ranlib /usr/local/lib/liblzo2.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/mkdir -p '/usr/local/share/doc/lzo'
/usr/bin/install -c -m 644 AUTHORS COPYING NEWS THANKS doc/LZO.FAQ doc/LZO.TXT doc/LZOAPI.TXT '/usr/local/share/doc/lzo'
/usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 lzo2.pc '/usr/local/lib/pkgconfig'
/usr/bin/mkdir -p '/usr/local/include/lzo'
/usr/bin/install -c -m 644 include/lzo/lzo1.h include/lzo/lzo1a.h include/lzo/lzo1b.h include/lzo/lzo1c.h include/lzo/lzo1f.h include/lzo/lzo1x.h include/lzo/lzo1y.h include/lzo/lzo1z.h include/lzo/lzo2a.h include/lzo/lzo_asm.h include/lzo/lzoconf.h include/lzo/lzodefs.h include/lzo/lzoutil.h '/usr/local/include/lzo'
make[1]: Leaving directory `/home/hadoop/app/lzo-2.10'
配置lzop
[root@hadoop001 tar]# wget http://www.lzop.org/download/lzop-1.04.tar.gz
[root@hadoop001 tar]# tar -zxvf lzop-1.04.tar.gz -C /home/hadoop/app/
[root@hadoop001 app]# cd lzop-1.04/
[root@hadoop001 lzop-1.04]# ./configure
。。。
Type `make' to build lzop. Type `make install' to install lzop.
After installing lzop, please read the accompanied documentation.
[root@hadoop001 lzop-1.04]# make && make install