Questions tagged [bzip2]

bzip2 is a Unix command used for compression and decompression of files. The main advantage of bzip2 is that it has a high compression ratio with reasonable speed.

bzip2 one of the most widely used free compression programs for the terminal.

It typically compresses files to within 10% to 15% of the best available techniques, whilst being around twice as fast at compression and six times faster at decompression.

The current version is 1.0.6, released 20 Sept 2010.

327 questions
0
votes
1 answer

Python3 x-bzip2 StreamingObject reading in chunks and processing out of memory

I am trying to read a x-bzip2 StreamingObject file. The file is large in size and does not fit in memory, meaning I need to unzip it, readlines and process in chunks. I have managed to read specified bytes (5MB, 10MB) of chunksize, however, I need…
Simas
  • 642
  • 8
  • 15
0
votes
2 answers

ruby - bzip files

I want to compress the files in ruby. for example I have file: base_1.txt base_2.txt base_3.txt I want these files compressed to base.bz How can I do it in ruby?
Sayuj
  • 7,464
  • 13
  • 59
  • 76
0
votes
1 answer

Is it possible to continue bzip2 decompressing?

Long story short: I have big (700+ GB) .tar.bz2 archive and I wanted to decompress it. It is stored on very slow HDD, so it took my computer about 110 hours nonstop working to get 92% of data. But then I accidentally close the terminal with…
superpupervlad
  • 122
  • 1
  • 8
0
votes
1 answer

no module named '_bz2' in virtualenv, python3

I'm using 'virtualenv' to manage different environments. (ubuntu 18.04) But when I workon an env with python3.7 and run the code(smpl-x from github) , it says "no module named '_bz2'". I tried these: sudo apt-get install libbz2-dev But it seems…
0
votes
0 answers

How to extract Bzip2 file in python

I am writing program which fetch extension of filename from string than download it and extract it, I am able to do it with Tar.gz and zip type of compression but while extracting Bz2 type of file i am able to read file and transfer data to new file…
aditya
  • 5
  • 2
0
votes
1 answer

Using bzlib in C on macOS Catalina - "ld: symbol(s) not found for architecture x86_64", "clang: error: linker command failed with exit code 1"

I am attempting to compile a C program on macOS Catalina. The program will make use of bzip2 decompression. My code includes the line #include and I am trying to call the function BZ2_bzBuffToBuffDecompress. However, when I run gcc…
Math Rules
  • 21
  • 7
0
votes
1 answer

Wikimedia pageview compression not working

I am trying to analyze monthly wikimedia pageview statistics. Their daily dumps are OK but monthly reports like the one from June 2021 (https://dumps.wikimedia.org/other/pageview_complete/monthly/2021/2021-06/pageviews-202106-user.bz2) seem…
Radim
  • 4,721
  • 1
  • 22
  • 25
0
votes
1 answer

How to unzip a BZIP2 file in flutter?

I have a Bzip2 file I want to decompress in Flutter But I did not find a way Of course, this is a package https://pub.flutter-io.cn/packages/archive/versions/2.0.11 But there is no example for Bzip2 Thank you for helping me
0
votes
1 answer

Which decompression algorithms are safe to use on attacker-supplied buffers?

I want to save network bandwidth by using compression, such as bzip2 or gzip. Attackers, as well as normal users, may send compressed messages. Are there sequences of bytes which will cause some decompression functions to become stuck in an infinite…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
0
votes
1 answer

BZip2 unzipping data that isn't a file without getting errors?

So I have this code that makes a series of bytes, but then zips it with bzip2. How could I unzip them? Plain(right-click) unzipping gives me corruption, probably because there are no file beginnings or ends. It needs to be done in some programming…
Boxmein
  • 11
  • 1
  • 2
0
votes
1 answer

What could be causing an unexpected_EOF error with libbzip2 readOpen function?

I'm following the bzip2 programming with libbzip2 instructions to make a script for compression/decompression, but I have run into issues with the reading step. Here's my code: int decode = (argv[4][0]=='d'); FILE* f = fopen( argv[2], "rb" ); if(…
0
votes
3 answers

compressing multiple files into bzip2

so i found this nice batch for window that would compress every file of the same extension in the same directory into bzip2 by dragging and dropping any of the files into it but i would like to take it further and make it that when i drag and drop a…
0
votes
2 answers

How can I link the 3rd party library bzip2 in my gcc compiler?

I'm a python developer new to C and developing C code on Windows that needs to work on Windows and Linux. To that end, I downloaded MSYS2 and used pacman to install gcc and bz2. My question is: How do I use bzip2 in my C code. When I try to compile…
CSStudent7782
  • 618
  • 1
  • 5
  • 21
0
votes
1 answer

Compile bzip2 for Android?

I'm trying to crosscompile Kenlm for Android from ubuntu 18.04. To do that i need to compile all its dependecies first. I succeeded in compiling boost for android but I don't find how to do that whith bzip2. When I use cmake to cross compile kenlm,…
0
votes
2 answers

Why Using "< /dev/null" with a program like "bzip2"?

bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,7- I saw this code in the LFS book, what is the purpose of the < /dev/null there? I know < /dev/null is used to prevent programs from waiting input by sending zeroes, but is it necessary…
PLSmA1
  • 23
  • 1
  • 4