⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 source of perl for linux application,
💻
字号:
                             Compress-Raw-Zlib                             Version 2.008                             2nd November 2007       Copyright (c) 2005-2007 Paul Marquess. All rights reserved.          This program is free software; you can redistribute it           and/or modify it under the same terms as Perl itself.              The directory zlib-src contains a subset of the              source files copied directly from zlib version 1.2.3.                  These files are Copyright(C) 1995-2005                     Jean-loup Gailly and Mark Adler.             Full source for the zlib library is available at                            http://www.zlib.orgDESCRIPTION-----------This module provides a Perl interface to the zlib compression library.  PREREQUISITES-------------Before you can build Compress-Raw-Zlib you need to have the followinginstalled on your system:    * A C compiler    * Perl 5.004 or better. By default, Compress-Raw-Zlib will build its own private copy of the zlib library. If you want to use a different version of zlib, follow the instructions in the section called "Controlling the version of zlib used by Compress-Raw-Zlib" later in this document.BUILDING THE MODULE-------------------Assuming you have met all the prerequisites, the module can now be builtusing this sequence of commands:    perl Makefile.PL    make    make testINSTALLATION------------To install Compress-Raw-Zlib, run the command below:    make installControlling the version of zlib used by Compress-Raw-Zlib ----------------------------------------------------------Compress-Raw-Zlib interfaces to the zlib compression library. Thereare three options available to control which version/instance of the zlib library is used:    1. Build a private copy of the zlib library using the        zlib library source that is included with this module.       This is the default and recommended option.    2. Build a private copy of the zlib library using a standard        zlib source distribution.    3. Use a pre-built zlib library.Note that if you intend to use either Option 2 or 3, you need to havezlib version 1.0.5 or better.The contents of the file config.in are used to control which of thethree options is actually used. This file is read during the    perl Makefile.PL step of the build, so remember to make any required changes to config.inbefore building this module.  Option 1  --------    For option 1, edit the file config.in and set the variables in it  as follows:        BUILD_ZLIB   = True      INCLUDE      = ./zlib-src      LIB          = ./zlib-src      OLD_ZLIB     = False      GZIP_OS_CODE = AUTO_DETECT      Option 2  --------    For option 2, fetch a copy of the zlib source distribution from  http://www.zlib.org and unpack it into the Compress-Raw-Zlib source   directory. Assuming you have fetched zlib 1.2.3,   it will create a directory called zlib-1.2.3.     Now set the variables in the file config.in as follows (if the version  you have fetched isn't 1.2.3, change the INCLUDE and LIB  variables appropriately):        BUILD_ZLIB   = True      INCLUDE      = ./zlib-1.2.3      LIB          = ./zlib-1.2.3      OLD_ZLIB     = False      GZIP_OS_CODE = AUTO_DETECT      Option 3  --------    For option 3, you need to find out where zlib is stored on your  system.  There are two parts to this.  First, find the directory where the zlib library is stored (some  common names for the library are libz.a and libz.so). Set the LIB variable  in the config.in file to that directory.    Secondly, find the directory where the file zlib.h is stored. Now set  the INCLUDE variable in the config.in file to that directory.    Next set BUILD_ZLIB to False.    Finally, if you are running zlib 1.0.5 or older, set the OLD_ZLIB  variable to True. Otherwise set it to False.  As an example, if the zlib library on your system is in  /usr/local/lib, zlib.h is in /usr/local/include and zlib is more  recent than version 1.0.5, the variables in config.in should be set as  follows:      BUILD_ZLIB   = False      INCLUDE      = /usr/local/include      LIB          = /usr/local/lib      OLD_ZLIB     = False      GZIP_OS_CODE = AUTO_DETECT  Setting the Gzip OS Code------------------------Every gzip stream stores a byte in its header to identify the OperatingSystem that was used to create the gzip stream. When you buildCompress-Raw-Zlib it will attempt to determine the value that is correct foryour Operating System. This will then be used by IO::Gzip as the defaultvalue for the OS byte in all gzip headers it creates.  The variable GZIP_OS_CODE in the config.in file controls the setting ofthis value when building Compress-Raw-Zlib. If GZIP_OS_CODE is set toAUTO_DETECT, Compress-Raw-Zlib will attempt to determine the correct value foryour Operating System.Alternatively, you can override auto-detection of the default OS code andexplicitly set it yourself. Set the GZIP_OS_CODE variable in the config.infile to be a number between 0 and 255. For example     GZIP_OS_CODE = 3See RFC 1952 for valid OS codes that can be used.If you are running one of the less popular Operating Systems, it ispossible that the default value picked by this module is incorrect or thedefault value (3) is used when there is a better value available. WhenCompress-Raw-Zlib cannot determine what operating system you are running, itwill use the default value 3 for the OS code.If you find you have to change this value, because you think the value autodetected is incorrect, please take a few moments to contact the author ofthis module.TROUBLESHOOTING---------------Solaris build fails with "language optional software package not installed"---------------------------------------------------------------------------If you are trying to build this module under Solaris and you get anerror message like this    /usr/ucb/cc: language optional software package not installedit means that Perl cannot find the C compiler on your system. The crypticmessage is just Sun's way of telling you that you haven't bought theirC compiler.When you build a Perl module that needs a C compiler, the Perl buildsystem tries to use the same C compiler that was used to build perlitself. In this case your Perl binary was built with a C compiler thatlived in /usr/ucb.To continue with building this module, you need to get a C compiler,or tell Perl where your C compiler is, if you already have one.Assuming you have now got a C compiler, what you do next will be dependenton what C compiler you have installed. If you have just installed Sun'sC compiler, you shouldn't have to do anything. Just try rebuildingthis module.If you have installed another C compiler, say gcc, you have to tell perlhow to use it instead of /usr/ucb/cc.This set of options seems to work if you want to use gcc. Your mileagemay vary.    perl Makefile.PL CC=gcc CCCDLFLAGS=-fPIC OPTIMIZE=" "    make testIf that doesn't work for you, it's time to make changes to the Makefileby hand. Good luck!Solaris build fails with "gcc: unrecognized option `-KPIC'"-----------------------------------------------------------You are running Solaris and you get an error like this when you try tobuild this Perl module    gcc: unrecognized option `-KPIC'This symptom usually means that you are using a Perl binary that has beenbuilt with the Sun C compiler, but you are using gcc to build this module.When Perl builds modules that need a C compiler, it will attempt to usethe same C compiler and command line options that was used to build perlitself. In this case "-KPIC" is a valid option for the Sun C compiler,but not for gcc. The equivalent option for gcc is "-fPIC".The solution is either:    1. Build both Perl and this module with the same C compiler, either       by using the Sun C compiler for both or gcc for both.    2. Try generating the Makefile for this module like this perl           perl Makefile.PL CC=gcc CCCDLFLAGS=-fPIC OPTIMIZE=" " LD=gcc           make test       This second option seems to work when mixing a Perl binary built       with the Sun C compiler and this module built with gcc. Your       mileage may vary.HP-UX Notes-----------I've had a report that when building Compress-Raw-Zlib under HP-UX that itis necessary to have first built the zlib library with the -fpicoption.Linux Notes-----------Although most Linux distributions already come with zlib, somepeople report getting this error when they try to build this module:$ makecp Zlib.pm blib/lib/Compress/Zlib.pmAutoSplitting blib/lib/Compress/Zlib.pm (blib/lib/auto/Compress/Zlib)/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap Zlib.xs > Zlib.xsc && mv Zlib.xsc Zlib.cgcc -c -I/usr/local/include -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -DVERSION=\"1.16\" -DXS_VERSION=\"1.16\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE  Zlib.cZlib.xs:25:19: zlib.h: No such file or directorymake: *** [Zlib.o] Error 1This usually means that you have not installed the development RPMfor zlib. Check for an RPM that start with "zlib-devel" in your Linuxdistribution.Win32 Notes-----------If you are running Activestate Perl (from http://www.activestate.com),it ships with a pre-compiled version of Compress-Raw-Zlib. To check if anewer version of Compress-Raw-Zlib is available run this from the commandprompt    C:\> ppm verify -upgrade Compress-ZlibIf you are not running Activestate Perl and you don't have accessto a C compiler, you will not be able to build and install this module.Win32 & Cygwin Notes--------------------It is not possible to install Compress-Raw-Zlib using the CPAN shell.This is because the Compress-Raw-Zlib DLL is itself used by the CPAN shelland it is impossible to remove a DLL while it is already loaded underWindows.The workaround is to install Compress-Raw-Zlib manually using theinstructions given at the start of this file.FEEDBACK--------How to report a problem with Compress-Raw-Zlib.To help me help you, I need all of the following information: 1. The Versions of everything relevant.    This includes:     a. The *complete* output from running this                 perl -V             Do not edit the output in any way.        Note, I want you to run "perl -V" and NOT "perl -v".             If your perl does not understand the "-V" option it is too        old. This module needs Perl version 5.004 or better.          b. The version of Compress-Raw-Zlib you have.         If you have successfully installed Compress-Raw-Zlib, this one-liner        will tell you:           perl -MCompress::Raw::Zlib -e 'print qq[ver $Compress::Raw::Zlib::VERSION\n]'        If you are  running windows use this           perl -MCompress::Raw::Zlib -e "print qq[ver $Compress::Raw::Zlib::VERSION\n]"        If you haven't installed Compress-Raw-Zlib then search Compress::Raw::Zlib.pm        for a line like this:          $VERSION = "2.008" ;     c. The version of zlib you have used.        If you have successfully installed Compress-Raw-Zlib, this one-liner        will tell you:          perl -MCompress::Raw::Zlib -e "print q[zlib ver ]. Compress::Raw::Zlib::ZLIB_VERSION.qq[\n]"         If not, look at the beginning of the file zlib.h.  2. If you are having problems building Compress-Raw-Zlib, send me a    complete log of what happened. Start by unpacking the Compress-Raw-Zlib    module into a fresh directory and keep a log of all the steps        [edit config.in, if necessary]        perl Makefile.PL        make        make test TEST_VERBOSE=1          Paul Marquess <pmqs@cpan.org>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -