RHEL5.5 installing rrdtool solves many Dependencies

Source: Internet
Author: User
Tags cairo rrdtool
In some monitoring software, you need to use rrdtool for plotting, and then often report errors when installing rrdtool. The following describes the installation steps (RHEL5.532bit ). 1. download and install pkg-configexportPREFIX =/usr/local/rrdtoolexportCFLAGS = "-O3-fPIC" in some monitoring software need to use rrdtool drawing, and then install rrdtool this drawing tool often reports an error, the following describes the installation procedure (RHEL5.5 32bit ).

1. Download and installPkg-config

 
 
  1. export PREFIX=/usr/local/rrdtool  
  2. export CFLAGS="-O3 -fPIC" 
  3. export LDFLAGS="-Wl,--rpath -Wl,${PREFIX}/lib" 
  4. export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig  
  5.  
  6. tar zxvf pkg-config-0.23.tar.gz  
  7. cd pkg-config-0.23  
  8. ./configure --prefix=$PREFIX  
  9. make && make install  
  10. cd .. 

2. Download and install zlib,Libpng,Freetype,Libxml2,Fontconfig

 
 
  1. tar zxvf zlib-1.2.3.tar.gz  
  2. cd zlib-1.2.3  
  3. ./configure --prefix=$PREFIX  
  4. make && make install  
  5. cd ..  
  6.  
  7. tar zxvf libpng-1.2.18.tar.gz  
  8. cd libpng-1.2.18  
  9. ./configure --prefix=$PREFIX  
  10. make && make install  
  11. cd ..  
  12.  
  13. tar zxvf freetype-2.3.5.tar.gz  
  14. cd freetype-2.3.5  
  15. ./configure --prefix=$PREFIX  
  16. make && make install  
  17. cd ..  
  18.  
  19. tar zxvf libxml2-2.6.3.tar.gz  
  20. cd libxml2-2.6.3  
  21. ./configure --prefix=$PREFIX  
  22. make && make install  
  23. cd ..  
  24.  
  25. tar zxvf fontconfig-2.4.2.tar.gz  
  26. cd fontconfig-2.4.2  
  27. ./configure --prefix=$PREFIX --with-freetype-config=$PREFIX/bin/freetype-config --with-expat-lib=/usr/lib  
  28. make && make install  
  29. cd .. 

3. Download and installPixman,Cairo,Glib,Pango

 
 
  1. tar zxvf pixman-0.10.0.tar.gz  
  2. cd pixman-0.10.0  
  3. ./configure --prefix=$PREFIX  
  4. make && make install  
  5. cd ..  
  6.  
  7. tar zxvf cairo-1.6.4.tar.gz  
  8. cd cairo-1.6.4  
  9. ./configure --prefix=$PREFIX --enable-xlib=no --enable-xlib-render=no --enable-win32=no  
  10. make && make install  
  11. cd ..  
  12.  
  13. tar zxvf glib-2.15.4.tar.gz  
  14. cd glib-2.15.4  
  15. ./configure --prefix=$PREFIX  
  16. make && make install  
  17. cd ..  
  18.  
  19. tar zxvf pango-1.21.1.tar.gz  
  20. cd pango-1.21.1  
  21. ./configure --prefix=$PREFIX --without-x  
  22. make && make install  
  23. cd .. 

4. Download and installRrdtool

 
 
  1. tar xzvf rrdtool-1.3.8.tar.gz  
  2. cd rrdtool-1.3.8  
  3. ./configure --prefix=$PREFIX  
  4. make && make install  
  5. cd .. 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.