Find the answer to your Linux question:
Results 1 to 5 of 5
How do I instal these on Fedora Core 4 1. ZLib 2. libJPEG 3. libPNG 4. Expat XML Parser 5. Freetype 6. LibXML and 7. LibXSLT How do I confirm ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Location
    Chennai, India
    Posts
    22

    Help: installing ZLib, libJPEG, libPNG, Expat XML Parser, Freetype, LibXML and LibXSLT on Fedora 4


    How do I instal these on Fedora Core 4
    1. ZLib
    2. libJPEG
    3. libPNG
    4. Expat XML Parser
    5. Freetype
    6. LibXML and
    7. LibXSLT

    How do I confirm if I have installed anything or not? I suspect that I have already installed libJPEG, libPNG and Freetype.. in which case I will need know their version and the directory in which I have installed them.

  2. #2
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    Odessa, FL
    Posts
    586

    Re: Help: installing ZLib, libJPEG, libPNG, Expat XML Parser, Freetype, LibXML and LibXSLT on Fedora

    try:
    Code:
    yum search <PKG>
    to see if that's the name yum sees it as and, if it is, whether or not you have it installed. if it's not, than try different variations of the name. yum should be your first choice when installing things in fedora core as it finds any other necessary things that will be needed for the package/program you are installing

  3. #3
    Linux User nalg0rath's Avatar
    Join Date
    Sep 2004
    Location
    Stockholm
    Posts
    303
    EDIT: Oh! That was late, odd that I missed the other post...

    To check if you have them installed and their versions:
    Code:
    # rpm -qa | grep -e zlib -e libjpeg -e libpng -e expat -e freetype -e libxml -e libxslt
    To see where the libs are installed you'll have to browse your library -directories. To find out where yor lib folders are at you can do either:
    Code:
    # echo $LIBPATH
    (might not work) or:
    Code:
    # find -type d -name 'lib' -print
    But most librarys are located in /usr/lib and /usr/local/lib...

    To install the packages, siply run.
    Code:
    # yum install zlib libjpeg libpng expat freetype libxml libxslt

  4. #4
    Just Joined!
    Join Date
    Aug 2005
    Location
    Chennai, India
    Posts
    22
    Seems like yum is not working for me:
    Code:
    &#91;root@wallace ~&#93;# yum search libpng
    Searching Packages&#58;
    Setting up repositories
    
    
    Exiting on user cancel
    &#91;root@wallace ~&#93;#
    It gets stuck at Setting up repositories. What could be the reason?

    Here are the results of your code.. Looks like I have got multiple versions of few things
    Code:
    &#91;root@wallace ~&#93;# rpm -qa | grep -e zlib -e libjpeg -e libpng -e expat -e freetype -e libxml -e libxslt
    zlib-devel-1.2.2.2-3
    libxslt-devel-1.1.14-2
    zlib-1.2.2.2-3
    libjpeg-6b-34
    libxml2-2.6.19-1
    freetype-2.1.9-2
    libpng-1.2.8-2
    perl-libxml-enno-1.02-31
    expat-1.95.8-6
    libxslt-1.1.14-2
    perl-libxml-perl-0.08-1
    libpng10-1.0.18-2
    expat-devel-1.95.8-6
    libpng-devel-1.2.8-2
    libpng10-devel-1.0.18-2
    libjpeg-devel-6b-34
    libxml2-python-2.6.19-1
    libxml2-devel-2.6.19-1
    freetype-devel-2.1.9-2
    jzlib-1.0.5-2jpp_1fc
    &#91;root@wallace ~&#93;# echo $LIBPATH
    
    &#91;root@wallace ~&#93;# find -type d -name 'lib' -print
    &#91;root@wallace ~&#93;#
    Here is a result of few whereis commands:
    Code:
    &#91;root@wallace ~&#93;# whereis freetype
    freetype&#58;
    &#91;root@wallace ~&#93;# whereis zlib
    zlib&#58; /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz
    &#91;root@wallace ~&#93;# whereis expat
    expat&#58; /usr/include/expat.h
    &#91;root@wallace ~&#93;# whereis libxml
    libxml&#58; /usr/lib/libxml2.so /usr/lib/libxml2.a /usr/share/man/man3/libxml.3.gz
    &#91;root@wallace ~&#93;# whereis libxslt
    libxslt&#58; /usr/lib/libxslt.a /usr/lib/libxslt.la /usr/lib/libxslt.so /usr/include /libxslt /usr/share/man/man3/libxslt.3.gz
    &#91;root@wallace ~&#93;# whereis apache
    apache&#58;
    &#91;root@wallace ~&#93;# whereis libjpeg
    libjpeg&#58; /usr/lib/libjpeg.a /usr/lib/libjpeg.la /usr/lib/libjpeg.so
    &#91;root@wallace ~&#93;# whereis libpng
    libpng&#58; /usr/lib/libpng10.so /usr/lib/libpng12.a /usr/lib/libpng.so /usr/lib/lib png10.a /usr/lib/libpng12.so /usr/lib/libpng.a /usr/include/libpng /usr/share/ma n/man3/libpng.3.gz
    &#91;root@wallace ~&#93;# whereis php
    php&#58; /usr/bin/php /etc/php.d /etc/php.ini /usr/lib/php /usr/share/man/man1/php.1 .gz
    I think my first priority towards installing PHP5 on FC4 should be to get yum working.

  5. #5
    Just Joined!
    Join Date
    Aug 2005
    Location
    Chennai, India
    Posts
    22
    Seems like yum is not working for me:
    Code:
    &#91;root@wallace ~&#93;# yum search libpng
    Searching Packages&#58;
    Setting up repositories
    
    
    Exiting on user cancel
    &#91;root@wallace ~&#93;#
    It gets stuck at Setting up repositories. What could be the reason?

    Here are the results of your code.. Looks like I have got multiple versions of few things
    Code:
    &#91;root@wallace ~&#93;# rpm -qa | grep -e zlib -e libjpeg -e libpng -e expat -e freetype -e libxml -e libxslt
    zlib-devel-1.2.2.2-3
    libxslt-devel-1.1.14-2
    zlib-1.2.2.2-3
    libjpeg-6b-34
    libxml2-2.6.19-1
    freetype-2.1.9-2
    libpng-1.2.8-2
    perl-libxml-enno-1.02-31
    expat-1.95.8-6
    libxslt-1.1.14-2
    perl-libxml-perl-0.08-1
    libpng10-1.0.18-2
    expat-devel-1.95.8-6
    libpng-devel-1.2.8-2
    libpng10-devel-1.0.18-2
    libjpeg-devel-6b-34
    libxml2-python-2.6.19-1
    libxml2-devel-2.6.19-1
    freetype-devel-2.1.9-2
    jzlib-1.0.5-2jpp_1fc
    &#91;root@wallace ~&#93;# echo $LIBPATH
    
    &#91;root@wallace ~&#93;# find -type d -name 'lib' -print
    &#91;root@wallace ~&#93;#
    Here is a result of few whereis commands:
    Code:
    &#91;root@wallace ~&#93;# whereis freetype
    freetype&#58;
    &#91;root@wallace ~&#93;# whereis zlib
    zlib&#58; /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz
    &#91;root@wallace ~&#93;# whereis expat
    expat&#58; /usr/include/expat.h
    &#91;root@wallace ~&#93;# whereis libxml
    libxml&#58; /usr/lib/libxml2.so /usr/lib/libxml2.a /usr/share/man/man3/libxml.3.gz
    &#91;root@wallace ~&#93;# whereis libxslt
    libxslt&#58; /usr/lib/libxslt.a /usr/lib/libxslt.la /usr/lib/libxslt.so /usr/include /libxslt /usr/share/man/man3/libxslt.3.gz
    &#91;root@wallace ~&#93;# whereis apache
    apache&#58;
    &#91;root@wallace ~&#93;# whereis libjpeg
    libjpeg&#58; /usr/lib/libjpeg.a /usr/lib/libjpeg.la /usr/lib/libjpeg.so
    &#91;root@wallace ~&#93;# whereis libpng
    libpng&#58; /usr/lib/libpng10.so /usr/lib/libpng12.a /usr/lib/libpng.so /usr/lib/lib png10.a /usr/lib/libpng12.so /usr/lib/libpng.a /usr/include/libpng /usr/share/ma n/man3/libpng.3.gz
    &#91;root@wallace ~&#93;# whereis php
    php&#58; /usr/bin/php /etc/php.d /etc/php.ini /usr/lib/php /usr/share/man/man1/php.1 .gz
    I think my first priority towards installing PHP5 on FC4 should be to get yum working.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •