{"id":19957568,"url":"https://github.com/pmqs/compress-raw-lzma","last_synced_at":"2025-05-03T21:30:32.987Z","repository":{"id":55601348,"uuid":"175998353","full_name":"pmqs/Compress-Raw-Lzma","owner":"pmqs","description":"Low-Level Perl Interface to lzma/xz compression library","archived":false,"fork":false,"pushed_at":"2024-04-27T12:49:31.000Z","size":439,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-08T18:47:31.679Z","etag":null,"topics":["compress","lzma","perl","perl-module","perl5","perl5-module","uncompress","xz"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmqs.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-16T16:47:53.000Z","updated_at":"2024-04-27T12:39:59.000Z","dependencies_parsed_at":"2022-08-15T04:10:15.344Z","dependency_job_id":"c567d2d2-54cc-494b-a321-24d5e0052b7f","html_url":"https://github.com/pmqs/Compress-Raw-Lzma","commit_stats":{"total_commits":187,"total_committers":3,"mean_commits":"62.333333333333336","dds":0.07486631016042777,"last_synced_commit":"9f322aea4c9daf5d4f56ec2a4627afa0914ac3a5"},"previous_names":[],"tags_count":74,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmqs%2FCompress-Raw-Lzma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmqs%2FCompress-Raw-Lzma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmqs%2FCompress-Raw-Lzma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmqs%2FCompress-Raw-Lzma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmqs","download_url":"https://codeload.github.com/pmqs/Compress-Raw-Lzma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252259297,"owners_count":21719658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compress","lzma","perl","perl-module","perl5","perl5-module","uncompress","xz"],"created_at":"2024-11-13T01:38:15.545Z","updated_at":"2025-05-03T21:30:32.404Z","avatar_url":"https://github.com/pmqs.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n                            Compress-Raw-Lzma\n\n                              Version 2.213\n\n                              28 August 2024\n\n        Copyright (c) 2009-2024 Paul Marquess. All rights reserved.\n          This program is free software; you can redistribute it\n           and/or modify it under the same terms as Perl itself.\n\nDESCRIPTION\n-----------\n\nThis module provides a Perl interface to allow reading and writing of lzma, lzip\nand xz files/buffers.\n\nPREREQUISITES\n-------------\n\nBefore you can build Compress-Raw-Lzma you need to have the following\ninstalled on your system:\n\n    * A C compiler\n\n    * Perl 5.006 or better.\n\n    * A copy of liblzma\n      liblzma is part of the XZ Utils which is available at\n\n            http://tukaani.org/xz/\n\nNext you must edit the file config.in that comes with this distribution.\nIf necessary, change the INCLUDE and LIB variable to the directories where\nliblzma and the lzma include file are installed.\n\nBUILDING THE MODULE\n-------------------\n\nAssuming you have met all the prerequisites, the module can now be built\nusing this sequence of commands:\n\n    perl Makefile.PL\n    make\n    make test\n\nINSTALLATION\n------------\n\nTo install Compress-Raw-Lzma, run the command below:\n\n    make install\n\nTROUBLESHOOTING\n---------------\n\nBuild fails on Debian/Ubuntu\n----------------------------\n\nIf you are running a Debian/Ubuntu derivative you need to install the\nliblzma-dev package.\n\nThere is a similarly named package called lzma-dev that will not work\nwith this code.\n\nYou will get this error if you have the wrong (or neither) package installed\n\n    Lzma.xs:18:10: fatal error: lzma.h: No such file or directory\n       18 | #include \"lzma.h\"\n          |          ^~~~~~~~\n    compilation terminated.\n\nInstall liblzma-dev by running\n\n    sudo apt install liblzma-dev\n\nTest harness fails with: Undefined symbol \"lzma_properties_size\"\n----------------------------------------------------------------\n\nIf the module appears to have built correctly, but the t/001version.t test\nharness fails with the error\n\n    Undefined symbol \"lzma_properties_size\"\n\nit means you have two libraries called liblzma installed on your system.\n\nThe version of liblzma used by this module comes from http://tukaani.org/xz/.\n\nThere is another distribution, that comes from\nhttp://tokyocabinet.sourceforge.net/misc/ that also builds a library called\nliblzma.  The tokyocabinet version of liblzma is not compatible with this\nmodule.  Note that the Perl module Compress-Lzma-Simple uses the\ntokyocabinet version of liblzma.\n\nThe solution is either:\n\n    1. Set the ZLIB_LIB variable in config.in to point to the directory where\n       the correct liblzma library is installed.\n\n    2. Remove the offending version of liblzma.\n\nSolaris build fails with \"language optional software package not installed\"\n---------------------------------------------------------------------------\n\nIf you are trying to build this module under Solaris and you get an\nerror message like this\n\n    /usr/ucb/cc: language optional software package not installed\n\nit means that Perl cannot find the C compiler on your system. The cryptic\nmessage is just Sun's way of telling you that you haven't bought their\nC compiler.\n\nWhen you build a Perl module that needs a C compiler, the Perl build\nsystem tries to use the same C compiler that was used to build perl\nitself. In this case your Perl binary was built with a C compiler that\nlived in /usr/ucb.\n\nTo continue with building this module, you need to get a C compiler,\nor tell Perl where your C compiler is, if you already have one.\n\nAssuming you have now got a C compiler, what you do next will be dependent\non what C compiler you have installed. If you have just installed Sun's\nC compiler, you shouldn't have to do anything. Just try rebuilding\nthis module.\n\nIf you have installed another C compiler, say gcc, you have to tell perl\nhow to use it instead of /usr/ucb/cc.\n\nThis set of options seems to work if you want to use gcc. Your mileage\nmay vary.\n\n    perl Makefile.PL CC=gcc CCCDLFLAGS=-fPIC OPTIMIZE=\" \"\n    make test\n\nIf that doesn't work for you, it's time to make changes to the Makefile\nby hand. Good luck!\n\nSolaris build fails with \"gcc: unrecognized option `-KPIC'\"\n-----------------------------------------------------------\n\nYou are running Solaris and you get an error like this when you try to\nbuild this Perl module\n\n    gcc: unrecognized option `-KPIC'\n\nThis symptom usually means that you are using a Perl binary that has been\nbuilt with the Sun C compiler, but you are using gcc to build this module.\n\nWhen Perl builds modules that need a C compiler, it will attempt to use\nthe same C compiler and command line options that was used to build perl\nitself. In this case \"-KPIC\" is a valid option for the Sun C compiler,\nbut not for gcc. The equivalent option for gcc is \"-fPIC\".\n\nThe solution is either:\n\n    1. Build both Perl and this module with the same C compiler, either\n       by using the Sun C compiler for both or gcc for both.\n\n    2. Try generating the Makefile for this module like this perl\n\n           perl Makefile.PL CC=gcc CCCDLFLAGS=-fPIC OPTIMIZE=\" \" LD=gcc\n           make test\n\n       This second option seems to work when mixing a Perl binary built\n       with the Sun C compiler and this module built with gcc. Your\n       mileage may vary.\n\nHP-UX Notes\n-----------\n\nI've had a report that when building Compress-Raw-Lzma under HP-UX that it\nis necessary to have first built the lzma library with the -fpic\noption.\n\nSUPPORT\n-------\n\nGeneral feedback/questions/bug reports should be sent to\nhttps://github.com/pmqs/Compress-Raw-Lzma/issues\n\nFEEDBACK\n--------\n\nHow to report a problem with Compress-Raw-Lzma.\n\nTo help me help you, I need all of the following information:\n\n 1. The Versions of everything relevant.\n    This includes:\n\n     a. The *complete* output from running this\n\n            perl -V\n\n        Do not edit the output in any way.\n        Note, I want you to run \"perl -V\" and NOT \"perl -v\".\n\n        If your perl does not understand the \"-V\" option it is too\n        old. This module needs Perl version 5.004 or better.\n\n     b. The version of Compress-Raw-Lzma you have.\n        If you have successfully installed Compress-Raw-Lzma, this one-liner\n        will tell you:\n\n           perl -MCompress::Raw::Lzma -e 'print qq[ver $Compress::Raw::Lzma::VERSION\\n]'\n\n        If you are  running windows use this\n\n           perl -MCompress::Raw::Lzma -e \"print qq[ver $Compress::Raw::Lzma::VERSION\\n]\"\n\n        If you haven't installed Compress-Raw-Lzma then search Compress::Raw::Lzma.pm\n        for a line like this:\n\n          $VERSION = \"2.213\" ;\n\n     c. The version of lzma you have used.\n        If you have successfully installed Compress-Raw-Lzma, this one-liner\n        will tell you:\n\n          perl -MCompress::Raw::Lzma -e \"print q[lzma ver ]. Compress::Raw::Lzma::ZLIB_VERSION.qq[\\n]\"\n\n        If not, look at the beginning of the file zlib.h.\n\n 2. If you are having problems building Compress-Raw-Lzma, send me a\n    complete log of what happened. Start by unpacking the Compress-Raw-Lzma\n    module into a fresh directory and keep a log of all the steps, including\n    the setting of configuration environment variables (if applicable).\n\n        [edit config.in or set environment varialbes, if necessary]\n        perl Makefile.PL\n        make\n        make test TEST_VERBOSE=1\n\nPaul Marquess \u003cpmqs@cpan.org\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmqs%2Fcompress-raw-lzma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmqs%2Fcompress-raw-lzma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmqs%2Fcompress-raw-lzma/lists"}